Jump to content

How to stop ComputerCraft from reseting on server restarts ?


Recommended Posts

As far as I know, no. When I need a computer to run continuously, I design my code to save crucial runtime data to a file and then just reload it whenever the computer (or the server) restarts. That way, it continues where it left off as if nothing had happened. :P

Link to comment
Share on other sites

I see well that ruins my use for it then, I was using a big screen to display a message of the day followed by user selection of help topic for those who never read the join text it was displayed on a large screen in front of them when they joined as well, as some vital commands that take them to information about Towny and other things, :( looks like I will just have to forget about that.

Link to comment
Share on other sites

Add a startup program and call your display program with shell.run()

http://computercraft.info/wiki/index.php?title=Shell_%28API%29

Interesting idea for a spawn. You could setup a play button or pressure switch and 5 Exit buttons. Play starts the presentation, and near the end display what exit button is the correct one for that playthrough. If they just ignore the presentation and try one at random, dunk em in lava.

Use a randomizer so it changes the exit with every play through.

Link to comment
Share on other sites

Thanks for the reply's guys. @Neowulf I will give this a go seems like a cool idea.

I also wondered if it was possible to add color to the text, or is always white ?, I know I can change the entire computers color via its mod config but I was wondering if you could make color appear for different things on the screen.

Link to comment
Share on other sites

Thanks for the reply's guys. @Neowulf I will give this a go seems like a cool idea.

I also wondered if it was possible to add color to the text, or is always white ?, I know I can change the entire computers color via its mod config but I was wondering if you could make color appear for different things on the screen.

If you can do it on the computer itself, the screen can display it as well. Yes, colors are possible.

Link to comment
Share on other sites

If you mod the server to support colored text in CC then everyone who joins your server will have to use the mod too.

Color is one of the most popular suggestions over on the CC forums, and yet not a word from dan on it, just forum regulars telling people it's been suggested before.

Link to comment
Share on other sites

If you mod the server to support colored text in CC then everyone who joins your server will have to use the mod too.

Color is one of the most popular suggestions over on the CC forums, and yet not a word from dan on it, just forum regulars telling people it's been suggested before.

Which mod? CC has an API for it: http://computercraft.info/wiki/index.php?title=Color_(API)

EDIT: Whoops, that outputs only the binary data. Derp... XD Anyway, @ any Moderator: I just received an update message. Is there really an update? I like to know that before I apply it, because I've to reinstall some things then. I can remember that not long ago back in 2.1.1 I had also an update message which didn't do anything except actually reinstalling Tekkit and it's settings. I don't want that happening again for no reason.

Link to comment
Share on other sites

Yeah, the color API is used for colored parsing bundled cables easier.

Output of colored text was in at one point but dan removed it due to string length issues. He never went back to fix the problem leading some to believe he prefers monochrome.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...