Jump to content




Script is not starting


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

#1 Crash129

  • Members
  • 3 posts

Posted 25 September 2014 - 03:52 PM

Hi,

After I restarted my server the computer with this reactor script isnt starting it anymore. Without an error it just gets aborted.
http://pastebin.com/2G4DNvqk

Is there any mistake in the script?

#2 SGunner2014

  • Members
  • 113 posts
  • LocationMaidstone, UK

Posted 25 September 2014 - 04:17 PM

I think that the problem here is that you're using local variables before the while loop. Try either using global variables or putting the variables inside of the loop.

However, I may be wrong.

#3 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 25 September 2014 - 04:26 PM

Defining local variables outside a loop and then using them inside the loop should not be causing any problems. Putting them inside the loop would only make this program re-wrap the peripherals each 5 sec, which is not needed.

To OP:
Does the computer start but not run the program? Are you sure that the program is named 'startup' and isn't misspelled (for ex.: 'stratup')?

#4 Crash129

  • Members
  • 3 posts

Posted 25 September 2014 - 04:44 PM

Even if I try to start it manually it just starts and stops without an error. The startup is not the problem, the script is not starting. Even if I rename it or rebuild the computer or replace it with an empty computer. The peripherals are named right.

#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 25 September 2014 - 05:41 PM

Hmm, very strange. Could you put some debug prints in different places in the code (for example: print("starting loop") or print("printing information") or print("gathering energy"), etc..).

#6 Crash129

  • Members
  • 3 posts

Posted 25 September 2014 - 06:46 PM

I think it was because one of the monitors wasn't in the chunk loader and didnt got loaded after I quit. After I replaced the monitor in the permanently loaded chunk it worked again.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users