how to recover a computer that is stuck

Started by GlitchGod42, Dec 24, 2025, 02:44 PM

Previous topic - Next topic

GlitchGod42

to recover a pc that is stuck and you cant do anything all you do is this
print("saved")
fs.delete("startup")

NeonKatVT

That is a way, however there is other methods, including yours I will mention.

1. Removing the file within the world files

Simply, by going to your minecraft version's data folder in your world, there's a folder called "computercraft". In there, you can edit your data for your computer, removing the pesky startup file. If you're on a server, considering contacting the admin of it to fix the issue. (I still develop for ComputerCraft even though I am developing OpenComputers as well, so I might make some tools to help it out on my upcoming OS)

2. Using a floppy drive (not recommended)

This is not recommended as some servers disable it in mod options. When ComputerCraft computers detect a floppy disk with the startup file inside of it, it'll run that instead of the startup file inside the computer.

3. Rewriting the startup file to delete itself

This is basically rewriting the whole startup file to one line. It'll remove itself and the file won't be there again, you can use my one liner version that removes and backs up the startup file.

f = shell.getRunningProgram(); fs.copy(f, "/backups/startup.bak"); fs.delete(f); print("Backed up and removed startup successfully!");



Hope this helps!

NeonKatVT
See my website! - A veteran of CC with expertise in the Lua programming language