Jump to content




startup


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

#1 ssalogel

  • Members
  • 5 posts

Posted 17 January 2013 - 02:49 PM

Hi!

I wrote a little program that prints a couple of lines, which I name startup and placed in "minecraft\mods\ComputerCraft1.481.zip\lua\rom\programs\"

(note, ComputerCraft is still in a zip (which is a pain to work with, did I miss something?)

however, the turtles I place do not run it automatically. it works if I call startup though.

Is this the right way to make a "default" startup?



(I did succesfully made individual start up programs for my labelled turtles (is there a way to make a program in lua which return the label?)

#2 ChunLing

  • Members
  • 2,027 posts

Posted 17 January 2013 - 06:43 PM

I believe that you should put a program you want as a default startup for all computers to be in /rom/autorun/ (which doesn't exist by default). You can put multiple files in autorun, they should be run according to their alphabetical order (anyone confirm this? I don't want to mess up my rom just to check).

#3 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 17 January 2013 - 06:49 PM

View PostChunLing, on 17 January 2013 - 06:43 PM, said:

I believe that you should put a program you want as a default startup for all computers to be in /rom/autorun/ (which doesn't exist by default). You can put multiple files in autorun, they should be run according to their alphabetical order (anyone confirm this? I don't want to mess up my rom just to check).
I can confirm the multiple files, I can confirm that the folder doesn't exist initially... And I can confirm that the table is sorted before running the programs, so alphabetical it is ;)

#4 ssalogel

  • Members
  • 5 posts

Posted 18 January 2013 - 10:27 AM

thank you both :)





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users