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

[Lua][ERROR] Error Resuming bios.lua

Started by wookiederk, 09 April 2013 - 08:01 AM
wookiederk #1
Posted 09 April 2013 - 10:01 AM
Error resuming bios.lua. Check you have installed computercraft correctly…. That's the error message that I am getting from my code. It is just driving me insane. I've been trying to check my code for hours now trying to find the cause but I cannot seem to find it. It took me a few times to get this screenshot because my program would freeze and it was instantly flash up and the computer would shutdown. My code is long, but if you need to see it I will post it. What causes this type of error? Help Please :/
SuicidalSTDz #2
Posted 09 April 2013 - 10:06 AM
Redownload ComputerCraft with the recommended version of FML (Forge Mod Loader)

Just make sure to save your work/computers or they will be lost (in your recycle bin actually)
wookiederk #3
Posted 09 April 2013 - 10:14 AM
Redownload ComputerCraft with the recommended version of FML (Forge Mod Loader)

Just make sure to save your work/computers or they will be lost (in your recycle bin actually)
That's not it. I have installed computercraft correctly because ive been using it for the past week with no problems…I've written a lot of other codes than this one that worked just fine. Edit: I think it happens when I call this function
 function examine()
 if currentLevel[currentY][currentX] == colors.lime then
  background = paintutils.loadImage("limebg")
  paintutils.drawImage(background, 1, 1)
  term.setCursorPos(1, 18)
 else if currentLevel[currentY][currentX] == colors.yellow then
  background = paintutils.loadImage("yellowbg")
  paintutils.drawImage(background, 1, 1)
  term.setCursorPos(1, 18)
  term.setBackgroundColor(colors.black)
  term.clear()
 else if currentLevel[currentY][currentX] == colors.brown then
  background = paintutils.loadImage("brownbg")
  paintutils.drawImage(background, 1, 1)
  term.setCursorPos(1, 18)
 else
  isExamining = false
  isPlaying = true
  term.clear()
  updateTick()
  term.setCursorPos(1, 18)
  print("There is nothing to see")
  end
  end
  end
 end 
The else part of the code works. But I get the error upon paintutils.drawImage(background, 1, 1)
SuicidalSTDz #4
Posted 09 April 2013 - 10:32 AM
What version (CC and Minecraft) are you on?
wookiederk #5
Posted 09 April 2013 - 10:34 AM
CC 1.52, forge #624…… I just rewrote my code and it works now. But that is really weird :P/>
Imque #6
Posted 10 April 2013 - 01:50 AM
Next time can please post the error and your code because in the BIOS it contain functions that if not used correctly will return errors.
theoriginalbit #7
Posted 10 April 2013 - 01:54 AM
Next time can please post the error and your code because in the BIOS it contain functions that if not used correctly will return errors.
He did post the error… this is the error:
Error resuming bios.lua. Check you have installed computercraft correctly…
he says directly after that, that its the error message he is getting. Please read OPs more carefully next time.
PixelToast #8
Posted 10 April 2013 - 01:59 AM
full code would be nice
also, try renaming/deleting the CC folder in mods, if there exists one
Imque #9
Posted 10 April 2013 - 02:26 AM
Next time can please post the error and your code because in the BIOS it contain functions that if not used correctly will return errors.
He did post the error… this is the error:
Error resuming bios.lua. Check you have installed computercraft correctly…
he says directly after that, that its the error message he is getting. Please read OPs more carefully next time.


sorry.. I honestly thought he was having an error like: bios.lua:66: attempt to call a nil value