CC: Tweaked

CC: Tweaked

65M Downloads

freeze upon logging in with a computer doing things

Xplodin opened this issue · 6 comments

commented

Minecraft Version

1.21.x

Version

1.113.1

Details

https://gist.github.com/Xplodin/c01cae8bfc5b6d07913bc2c75881470c

game has a huge computer script that I deleted. However beforehand it would cause my game to entirely lock up and not crash or work.

commented

Thanks for the report! Would you be able to upload the problematic script, as well as anything else I'll need to run it (other files, screenshots/building instructions of the setup, etc...).

commented

I havent been able to save the script but it was resolved by deleting the computer, and effectively downloading the config off the server and placing it in the clients config. The lua script was huge and called MasterMiner.lua
Ill see if I can find it
https://gist.github.com/Xplodin/82577615dca2c6b0b7395d1857516958
^found the script that was on the computer

commented

huh, you can try add some delay in the script loop and see if that helps.
you can also try increase computer_threads in computercraft-server.toml

commented

If, by "deleting the computer", you mean just breaking the block, the file will still exist. CC stores its data in your world folder, and it does not throw anything away. Assuming you're at the root of your mc server (where your server.jar is), it should be something like worldname/computercraft/computer/<ID>

It's just a matter of remembering the ID of the computer that was there, or if you can remember the filename, using a tool to search all subdirectories for the filename.

Edit: Woops, didn't see your edit, looks like you already found it.

commented

I deleted the computer by the files inside of the world/computercraft/
Not sure if this is the best method, but it solved it (I think)

commented

I'm afraid I've not been able to reproduce this, so going to close this. If anyone else hits this, please comment — it would be useful to probe this properly, so we can see where world startup is getting stuck.