Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Why this error?! Help!

My Window_Base script has an error in line 30 that makes me not able to use battle or shops. Although, I don't see a problem?!

29 # Dispose if window contents bit map is set
30 if self.contents != nil
31 self.contents.dispose

Looks fine. Is it possible that some other script is blocking it? Help!! Can't work on my game !
 
This depends entirely on what custom scripts you're using and what version of RM you're using.

1. Are you using RMXP or RMVX?
2. Give us links to all the custom scripts you're using.

We'll be able to solve your problem, but we need more information before we can tell you what's wrong. :wink:
 
It's rmxp.

All the scripts...
I'll write down the names, no idea where I got 'em. Don't know all of the names either.

Advanced Weather
SDK 1.5
AMS
A title script (Think It's called MOG something.
Ring Menu
Title Skip If No Save (That could be it by the way... maybe It can't skip the Title Script MOG?)
A cool timer (Also MOG)
Heal on level up
A battle script (just new bars)
And a shop script.

Thats 'em. Got like three others I don't know what they do too.

Thx a lot for the fast reply ^^
 
Hm...I'm not sure if I can help you too much in this department, but I'll try. My knowledge of scripts and how they operate is very basic.

First of all, this should be the entire Dispose function. Make sure it's all there. If you're missing an "end" or something it'll cause errors.
Code:
  #--------------------------------------------------------------------------

  # * Dispose

  #--------------------------------------------------------------------------

  def dispose

    # Dispose if window contents bit map is set

    if self.contents != nil

      self.contents.dispose

    end

    super

  end

 

The next step if that isn't the problem is to make a new game and see if you encounter the same problem. If you don't, you should be able to copy the "Scripts" data file from the new game into your game and fix the error. Then you could add the custom scripts one at a time (you should probably add them to the one that isn't your game for testing) and see when/if conflicts appear. Then you can take steps like contacting the maker(s) of the script(s) that don't work together to see if they can help you.

Can't Convert TrueClass Into Bitmap
I honestly have no idea what this means. 0_0 It might mean something to a scripter, but I've never encountered this problem before. On a guess based on the words, I'll have to say it might be a graphical error? Like you don't have a certain file you need or something in your resources. Although it shouldn't happen without any custom scripts...

I guess try those things and get back to us? I'm not the best troubleshooter in these situations, but it can't hurt to try different things.
 
It looks like the contents of the window is getting set to the boolean true somewhere along the lines. If you the above doesn't work, I'd be willing to take a look through your scripts and see if I can figure out what's going on:)
 
Hmm... I'll try... but isn't it easier to copy maps and events to a whole new game? Where do I find the data files anyway? This computer I'm on right now dosen't have rmxp, Haven't had it for a week. I'll try again at monday.
 
In the game folder, there should be a folder labeled "Data". In there, you'll find a bunch of files (i.e. Actors, Animations, Armor, etc.) that correspond to the editor data. You'll need to import all of your old custom files if you had any and then you can copy the data files you need into the "Data" folder of the new project.

The data files contain what you've done inside the editor, basically. For example, the "Actors" data file contains all of your actor data that you've edited/created in the "Actors" tab in the database editor. The map data files contain all of your maps, including the events on them and the tileset placement. You probably get the idea. Just make sure you have the right custom graphics, music, etc. in the Resource Manager before you import the data files. And don't import the "Scripts" data if you think that's the problem.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top