This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Sewbacca's profile picture

Funny CC error through easy script

Started by Sewbacca, 30 May 2019 - 07:38 PM
Sewbacca #1
Posted 30 May 2019 - 09:38 PM
Hello guys,

I found out, how to smash a CC computer, so it is unuseable, unless you rebuild it (if labled) or untill you reload your map (i actually don't know how it would react on a server).

However, don't use this script, if you have important data on your CC computer, unless you are in full control of your computer.

I don't think that the code is malicious, cause it will just freeze your CC PC and it won't delete anything, but be carefully while testing it.
Code

local function smashCC ()
	parallel.waitForAll(
		function()
			while true do sleep(1) end
		end, smashCC)
end
smashCC()



Some questions:
Why on earth is it working?
Why on earth is it telling me, that theres an issue resuming bios.lua?
Why on earth cannot i restart the computer?

Is this issue working for you?
My game hung up for a few seconds, untill this error arises (i think 10).

EDIT:
I tested this code a few times and on other PCs:
- Same PC I don't know why, but after i rebuild the PC, i get a too long without yielding
- Another PC I can restart the computer
Edited on 30 May 2019 - 07:49 PM
EveryOS #2
Posted 30 May 2019 - 10:43 PM
Ha! I'm immune!
Lupus590 #3
Posted 31 May 2019 - 07:51 AM
What version of cc is this?