Jump to content




startup on server?


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

#1 tyguy56

  • New Members
  • 3 posts

Posted 21 May 2012 - 02: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?

#2 MathManiac

  • Members
  • 60 posts
  • LocationWashington, United States

Posted 21 May 2012 - 02: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.

#3 tyguy56

  • New Members
  • 3 posts

Posted 21 May 2012 - 02:56 AM

thanks, worked great! :P/>

#4 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 07 September 2012 - 01: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.

#5 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 07 September 2012 - 04:16 PM

How do you get to your "acr" program?

#6 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 07 September 2012 - 04:23 PM

View Postcraniumkid22, on 07 September 2012 - 04:16 PM, said:

How do you get to your "acr" program?
That's not from me. The Server writes it in the file.

#7 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 22 September 2012 - 01:52 PM

Please can somebody help me?

#8 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 03 October 2012 - 08:30 AM

Plese can me help a pro?

#9 robhol

  • Members
  • 182 posts

Posted 03 October 2012 - 08: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.

#10 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 03 October 2012 - 08:40 AM

View PostSimGie13, on 07 September 2012 - 04:23 PM, said:

View Postcraniumkid22, on 07 September 2012 - 04:16 PM, said:

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.

#11 hego555

  • Members
  • 89 posts

Posted 04 October 2012 - 06:05 AM

I dont really understand the problem?

The startup file is not working?

#12 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 13 October 2012 - 10: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")
.

#13 Fatal_Exception

  • New Members
  • 105 posts

Posted 13 October 2012 - 10:17 AM

There's probably another program modifying your startup.

#14 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 13 October 2012 - 11:44 AM

View PostFatal_Exception, on 13 October 2012 - 10:17 AM, said:

There's probably another program modifying your startup.
But where is it?

#15 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 13 October 2012 - 11:47 AM

View PostSimGie13, on 13 October 2012 - 11:44 AM, said:

View PostFatal_Exception, on 13 October 2012 - 10:17 AM, said:

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

#16 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 13 October 2012 - 05:17 PM

View Postsidekick_, on 13 October 2012 - 11:47 AM, said:

View PostSimGie13, on 13 October 2012 - 11:44 AM, said:

View PostFatal_Exception, on 13 October 2012 - 10:17 AM, said:

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.

#17 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 14 October 2012 - 01:43 AM

I was assuming he hasn't labelled the computer.

#18 SimGie13

  • New Members
  • 7 posts
  • LocationGermany

Posted 14 October 2012 - 08:43 AM

Jeah!!! Now it works. I didn't made a Label. Thanks a Lot to all who helped me!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users