This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
startup on server?
Started by tyguy56, 21 May 2012 - 01:49 AMPosted 21 May 2012 - 03:49 AM
i have recently joined a server with my friends that has computercraft on it but when ever the server is turned off and then back on the computers go back to the default screen which isn't so good when you spend an hour on a perfect door lock and then suddenly it is completely useless. so my question is can you change the startup file for a computer on a server?
Posted 21 May 2012 - 03:53 AM
Problem: You want a program to stay on.
Context: You made computer lock program, but it restarts every server restart.
Solution: Change the file name to "startup" and keep it in the root folder. To change the name, go to the terminal (default screen) and type:
Explanation: When the server restarts, all the computers are reset because the chunk that contains the computer is unloaded. This causes the computer(s) to restart itself when the chunk is reloaded. Whenever a computer restarts, it checks to see if a file name "startup" is in the root directory. If it exists, the computer runs the file.
Also, can you share the server information? I would love to share my programs with other people, but can't find a computercraft server that's online.
Context: You made computer lock program, but it restarts every server restart.
Solution: Change the file name to "startup" and keep it in the root folder. To change the name, go to the terminal (default screen) and type:
move <program name> startup
Explanation: When the server restarts, all the computers are reset because the chunk that contains the computer is unloaded. This causes the computer(s) to restart itself when the chunk is reloaded. Whenever a computer restarts, it checks to see if a file name "startup" is in the root directory. If it exists, the computer runs the file.
Also, can you share the server information? I would love to share my programs with other people, but can't find a computercraft server that's online.
Posted 21 May 2012 - 03:56 AM
thanks, worked great! :P/>/>
Posted 07 September 2012 - 02:32 PM
I need help.
I did everything as it says here.
But if I restart the server the startup file was edided to that:
I did everything as it says here.
But if I restart the server the startup file was edided to that:
shell.run("acr")
Please help me.Posted 07 September 2012 - 05:16 PM
How do you get to your "acr" program?
Posted 07 September 2012 - 05:23 PM
That's not from me. The Server writes it in the file.How do you get to your "acr" program?
Posted 22 September 2012 - 02:52 PM
Please can somebody help me?
Posted 03 October 2012 - 09:30 AM
Plese can me help a pro?
Posted 03 October 2012 - 09:37 AM
Put shell.run("programname") in your startup file.
If it still gets overwritten by the server, you need to take it up with your admins because that makes NO sense.
You might try a disk drive - make a disk and put the program on that, the startup file on a disk has higher priority than the computer's.
If it still gets overwritten by the server, you need to take it up with your admins because that makes NO sense.
You might try a disk drive - make a disk and put the program on that, the startup file on a disk has higher priority than the computer's.
Posted 03 October 2012 - 09:40 AM
That's not from me. The Server writes it in the file.How do you get to your "acr" program?
What do you mean by the server writes it in the file? Is that not the code that you put in the startup file? If not either A) you were hacked and another player changed the code B ) theres a virus on the computer that is changing it or C) an admin changed it.
Posted 04 October 2012 - 07:05 AM
I dont really understand the problem?
The startup file is not working?
The startup file is not working?
Posted 13 October 2012 - 11:07 AM
Sorry for my bad English, but I'm German.
I'm the server Operator.
Now the problem: I wrote a program and after that I named it startup and put it into the folder of the computer. And after I reloaded the Server there stands:
I'm the server Operator.
Now the problem: I wrote a program and after that I named it startup and put it into the folder of the computer. And after I reloaded the Server there stands:
shell.run("acr")
.Posted 13 October 2012 - 11:17 AM
There's probably another program modifying your startup.
Posted 13 October 2012 - 12:44 PM
But where is it?There's probably another program modifying your startup.
Posted 13 October 2012 - 12:47 PM
Just break the PC and put it back so it has a fresh directory and then put the file as startup on the pc using pastebin get <id> startupBut where is it?There's probably another program modifying your startup.
Posted 13 October 2012 - 06:17 PM
Just break the PC and put it back so it has a fresh directory and then put the file as startup on the pc using pastebin get <id> startupBut where is it?There's probably another program modifying your startup.
This only happens if the computer is not labelled.
Posted 14 October 2012 - 02:43 AM
I was assuming he hasn't labelled the computer.
Posted 14 October 2012 - 09:43 AM
Jeah!!! Now it works. I didn't made a Label. Thanks a Lot to all who helped me!