Create

Create

86M Downloads

Computercraft Compatability with Sequenced Gearshift and Rotation Speed Controller is broken

CatsAndSecrets opened this issue ยท 5 comments

commented

Describe the Bug

when attempting to control shafts or cogs through lua via computercraft, it doesnt work. when trying to use the sequenced gearshift with it, it even shows the expected rotation on the bit of the shaft on the gearshift but it doesnt affect anything you have that connected to.

i tested it on 1.20.1 and 1.19.2

Reproduction Steps

  1. have computercraft and create
  2. have a computercraft computer with a sequenced gearshift next to it
  3. write a program making use of the sequencedgearshift.rotate() function
  4. run it
    ...

Expected Result

the shaft in front of the gearshift would move with the one in the gearshift, rather than whats in the picture

Screenshots and Videos

2024-04-10_18 05 20

Crash Report or Log

No response

Operating System

windows 11

Mod Version

0.5.1f

Minecraft Version

1.20.1

Forge Version

47.2.17

Other Mods

computercraft

Additional Context

No response

commented

I cannot reproduce this on 1.20.1, can you upload your latest.log file here?

commented

And show your lua code

commented

latest.log

and my lua code

gearshift = peripheral.wrap("right")
i = 1
while i == 1 do
gearshift.rotate(1)
end

commented

Ok - the problem is that when you are rotating it one degree at a time, you are sending orders to the gearshift too quickly, so the kinetic network can't cope. You can put a sleep(0.2) after your order, but this is janky, and might not work for your use case. What are you trying to achieve? There is probably a better way to do it.

commented

Thanks for helping,
In retrospect, just rotating by how much I want is definitely better, I just managed to be a bit more stupid than I would've liked.