Main Menu
  • Welcome to The RPG Maker Resource Kit.

A bit of a problem?

Started by skaraflame, January 27, 2013, 04:48:50 PM

0 Members and 1 Guest are viewing this topic.

skaraflame

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.

How do I fix this?


modern algebra

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?

skaraflame

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.


modern algebra

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.

skaraflame

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.