CC: Tweaked

CC: Tweaked

65M Downloads

shell.openTab() in and on Startup Makes Computer Unusable

Closed this issue ยท 2 comments

commented

Minecraft Version

1.20.1

Version

1.115.1

Details

Out of my ignorance in how the shell.openTab() function worked,
I mistakenly included it IN the file it is set to open, as well as naming the file startup,

So upon startup, tabs start infinitely opening until I receive an error saying I "installed computercraft incorrectly."

Being an advance computer, I cannot reset it by breaking it, and I cannot terminate fast enough to stop the spiral. And so this error results in an unusable computer. I can see this being exploited to potentially break advanced computers, but otherwise pretty avoidable. If this is an unknown issue, I feel proud that I could break a mod!

commented

You should be able to either break the computer (they retain data) and stick it in disk drive, then read contents of it using another computer, or make a floppy disk with startup.lua file using another computer and stick said floppy into disk drive next to your computer to make it boot from floppy instead of drive.

commented

Thanks for the report!

I'm afraid I'm going to close this as wontfix. For better or worse, there's lots of ways to soft-brick a computer (the easiest being putting os.shutdown() in the startup file). I think as long as its recoverable (as Wojbie mentions, you can mount a computer in a drive) and doesn't affect other computers, I don't think this is exploitable.

It would be nice to handle this in a more graceful way, but I'm not quite sure how that should work. You could possibly rate limit openTab, but that feels a bit clumsy. If people have suggestions, definitely happy to look at implementing them.