I admit to knowing nothing about it, but I was using Lolmer's big reactors script:
http://pastebin.com/fguScPBQ
Error: 273: attempt to call nil
Anyone mind taking a look at it? It's a great program.
It is caused by a change in the CC API. The term.restore was removed. You can fix it most places by replacing it with term.native, but you really should go get the new version of Lolmers script instead:
I admit to knowing nothing about it, but I was using Lolmer's big reactors script:
http://pastebin.com/fguScPBQ
Error: 273: attempt to call nil
Anyone mind taking a look at it? It's a great program.
Ahh so it is. Assumed you were talking about the 1.58 ->1.63 CC upgrade issue.That's the same one, is it not?
If you look at the part that caused the problem you would see why:I updated to CC 1.73. When I logged in the monitor was bonkered, and I tried redoing everything to no avail - so I assumed it was a CC API update that broke it.
local function termRestore()
local ccVersion = nil
ccVersion = os.version()
if ccVersion == "CraftOS 1.6" then
term.native()
elseif ccVersion == "CraftOS 1.5" then
term.restore()
else -- Default to older term.restore
printLog("Unsupported CraftOS found. Reported version is \""..ccVersion.."\".")
term.restore()
end -- if ccVersion
end -- function termRestore()
I updated to CC 1.73. When I logged in the monitor was bonkered, and I tried redoing everything to no avail - so I assumed it was a CC API update that broke it.
If you look at the part that caused the problem you would see why:
Simple fix would be to change the "Default to older" part to a term.native() I suppose and remove the "printLog....." that is causing problems.Code:local function termRestore() local ccVersion = nil ccVersion = os.version() if ccVersion == "CraftOS 1.6" then term.native() elseif ccVersion == "CraftOS 1.5" then term.restore() else -- Default to older term.restore printLog("Unsupported CraftOS found. Reported version is \""..ccVersion.."\".") term.restore() end -- if ccVersion end -- function termRestore()
Excellent.Just FYI, Lolmer's EZ-Nuke as of 0.3.16 supports ComputerCraft 1.7x.
Yeah, I had a typo in there, sorry. Also fixed in 0.3.16 above.
Excellent.
While you are here, would it be possible to request an option to alter the passive reactors temperature regulation range on screen? The size of the range could be fixed, but an option to increase/decrease the mean of the range would be awesome.
Sometimes you play a pack/in a situation where fuel is not an issue and you don't care that much about efficiency and just want power, other times you want as much power as you can out of your precious fuel. Would be nice not having to deal with having modified copies for each situation