The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: skaraflame on January 27, 2013, 04:48:50 PM

Title: A bit of a problem?
Post by: skaraflame on January 27, 2013, 04:48:50 PM
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=f3918bec175db07caf8e690e2de226b55aa90503)
How do I fix this?
Title: Re: A bit of a problem?
Post by: 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?
Title: Re: A bit of a problem?
Post by: skaraflame on January 28, 2013, 01:54:51 PM
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.
Title: Re: A bit of a problem?
Post by: modern algebra on January 28, 2013, 10:10:03 PM
Well, the line to which you are referring is:

Code: [Select]
    @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:

Code: [Select]
    msgbox(path)

The method will look like this:

Code: [Select]
  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.
Title: Re: A bit of a problem?
Post by: skaraflame on January 29, 2013, 10:55:08 PM
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.