Jump to content




Computers Reset When Move


  • You cannot reply to this topic
23 replies to this topic

#21 GammaPaladin

  • Members
  • 10 posts

Posted 21 September 2013 - 04:33 PM

Um, that IS all my code. There is no turtle involved.

The computer is being moved by a third party mod item. I know that the move is completed instantly on the server side, but that's not to say that too many of those moves in rapid succession with no delay between them won't affect the functioning of the computer's tileentity in some way.

All I know for certain is that it works with the delay, and won't without. The code works fine, but the computer never loads it after the first time, unless there's a delay between iterations.

#22 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 21 September 2013 - 05:05 PM

View PostGammaPaladin, on 21 September 2013 - 04:33 PM, said:

Um, that IS all my code.
there are api calls you make to a file named carriage to move things.

View PostGammaPaladin, on 21 September 2013 - 04:33 PM, said:

There is no turtle involved.
Well since you didn't specify, I had to speculate

View PostGammaPaladin, on 21 September 2013 - 04:33 PM, said:

The computer is being moved by a third party mod item. I know that the move is completed instantly on the server side, but that's not to say that too many of those moves in rapid succession with no delay between them won't affect the functioning of the computer's tileentity in some way.
Redstone in Motion?

View PostGammaPaladin, on 21 September 2013 - 04:33 PM, said:

All I know for certain is that it works with the delay, and won't without. The code works fine, but the computer never loads it after the first time, unless there's a delay between iterations.
The smallest delay possible to do is 0.8 seconds, its the speed of block movement, like gravel/sand falling, etc.

#23 GammaPaladin

  • Members
  • 10 posts

Posted 21 September 2013 - 11:58 PM

It's not an API call. It's a peripheral call. Did you notice the line:
local carriage = peripheral.wrap("bottom")

Yes, the third party mod is Redstone In Motion, which is what the thread's original poster was talking about. As I said, I'm using the structure carriage frames and a carriage controller, which is the peripheral being accessed. The carriage controller has one function, "move", which takes a numeric direction (0-5), a boolean which represents whether to only test the movement to see if it's possible, and a boolean that tells it whether the controller should stay anchored in place rather than moving with the carriage frames.

As I want it to actually move, the first boolean is false, and as I want the carriage controller to come along (Because otherwise I'm going to be stuck after the first movement), the second boolean is also false.

#24 frostthejack

  • Members
  • 16 posts

Posted 25 September 2013 - 12:21 PM

there has to be a minimum of 0.8 second delay at the top of the startup script and you have to have a startup script that points to your program. I have a working program that that moves frames in the direction you want the number of blocks you want.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users