Basically, I've only just been able to start using my laptop since yesterday, and I had to move my project to an external hard drive, then back onto the laptop. Now I get an error thing.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F11qu4wh.png&hash=a1870e7e775ef65544f733607a533c837456b12f)
How do I fix this?
Well, my guess is that you are loading a picture in an unreadable format, likely one of the title graphics if that is where the error is occurring.
Maybe you were editing and saved it as a .pdn or something?
Quote from: modern algebra on January 28, 2013, 12:28:11 AM
Well, my guess is that you are loading a picture in an unreadable format, likely one of the title graphics if that is where the error is occurring.
Maybe you were editing and saved it as a .pdn or something?
I haven't edited anything though. And it comes up when I select either "Start Adventure" or "Resume Adventure" from the menu, so it loads the title screen fine then tells me that.
Well, the line to which you are referring is:
@cache[path] = Bitmap.new(path) unless include?(path)
It would throw a type error if path weren't a string, and it would tell you the file wasn't found if it was a missing file, so my best guess is still that it is an unreadable file. Maybe something corrupted a file when you did the move, even if there was no editing?
For now, try putting the following line directly above the previous mentioned line:
msgbox(path)
The method will look like this:
def self.normal_bitmap(path)
msgbox(path)
@cache[path] = Bitmap.new(path) unless include?(path)
@cache[path]
end
Now run the game. You should get a couple message boxes popping up with the location and names of files being loaded. You can ignore all of them except the box that immediately precedes the error.
It will give you something like:
Graphics/Folder/Picture
Open up that folder and make sure that (a) there is only one copy of Picture; and (b) that it is a .png.
Once you've fixed it, you can delete the msgbox line.
I'll try that. Also, upon looking into it, a lot of the graphics appear to have been lost. Maybe my laptop is more shoddy than I thought.