This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
tyguy56's profile picture

startup on server?

Started by tyguy56, 21 May 2012 - 01:49 AM
tyguy56 #1
Posted 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?
MathManiac #2
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:
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.
tyguy56 #3
Posted 21 May 2012 - 03:56 AM
thanks, worked great! :P/>/>
SimGie13 #4
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:

shell.run("acr")
Please help me.
Cranium #5
Posted 07 September 2012 - 05:16 PM
How do you get to your "acr" program?
SimGie13 #6
Posted 07 September 2012 - 05:23 PM
How do you get to your "acr" program?
That's not from me. The Server writes it in the file.
SimGie13 #7
Posted 22 September 2012 - 02:52 PM
Please can somebody help me?
SimGie13 #8
Posted 03 October 2012 - 09:30 AM
Plese can me help a pro?
robhol #9
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.
Luanub #10
Posted 03 October 2012 - 09:40 AM
How do you get to your "acr" program?
That's not from me. The Server writes it in the file.

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.
hego555 #11
Posted 04 October 2012 - 07:05 AM
I dont really understand the problem?

The startup file is not working?
SimGie13 #12
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:

shell.run("acr")
.
Fatal_Exception #13
Posted 13 October 2012 - 11:17 AM
There's probably another program modifying your startup.
SimGie13 #14
Posted 13 October 2012 - 12:44 PM
There's probably another program modifying your startup.
But where is it?
remiX #15
Posted 13 October 2012 - 12:47 PM
There's probably another program modifying your startup.
But where is it?
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> startup
Lyqyd #16
Posted 13 October 2012 - 06:17 PM
There's probably another program modifying your startup.
But where is it?
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> startup

This only happens if the computer is not labelled.
remiX #17
Posted 14 October 2012 - 02:43 AM
I was assuming he hasn't labelled the computer.
SimGie13 #18
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!