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.

Random Errors

Dark

Member

hi all :)

after a few days of inputting scripts (28 in total :$) i encounter random errors when i used the transfer player command
i remade the event and it worked fine for 3 times or so and after that i get random errors again
i tried starting over again and only input the scripts that i would seriously need but i still get the random errors
so reinstalled rpg maker xp and and started over again
i only inputted tiberians bank script and i keep getting the random error

i get these errors:
script 'window_bankitem' line 74: typerror occured
no implicit conversion from nil to integer
(i have copied the code perfectly fomr the demo project and the script on the page)

or:

nameerror occured while running script
uninitialized constant interpreter::scene_monsterbook

i have searched every script for monsterbook and monster but there aint such a thing in my scripts :(

im rly desperate, finaly i have found a prog wich is 1000 times better then rpg toolkit and this happens

so anyone knows whats going on?
 
First, you should only use scripts you seriously need... dispose of the rest, as it'll not only summon compatibility errors but also stuffs your game with unnecessary stuff.

Then, to make us able to help, post the line the error occurs in, in your case line 74. I can tell you you have to put a
Code:
.to_i
somewhere to convert the value into an integer (like number.to_i), but without you posting the line, I can't tell you where exactly, of course.

For your other error, you apparently forgot to copy the class Scene_monsterbook from your source project.

Overall, it's never the program that is to blame (unless it's a bug, of course, but I don't think RMXP has any scripting-related ones).
 

Dark

Member

Code:
   if @item_max > 0
      self.contents = Bitmap.new(width - 32, row_max * 32)
      self.contents.font.name = $defaultfonttype
      self.contents.font.size = $defaultfontsize  #this is line 74
      for i in 0...@item_max - 1
        draw_item(i)
      end
      draw_gold
thats the piece (i made a comment on the line :)

For your other error, you apparently forgot to copy the class Scene_monsterbook from your source project.
but i dont have anything with a monsterbook
 
That's is because you are using an old script writed for the japanese (and illegal) version. You can just drop the following lines:
Code:
      self.contents.font.name = $defaultfonttype
      self.contents.font.size = $defaultfontsize  #this is line 74
 
For the monsterbook thing, search your script file (Shift+Ctrl+F or right-click in the script list > find, or serach, or however it's called XD ) for 'Scene_monsterbook'. There has to be a reference somewhere, like '$scene = Scene_monsterbook'. if you don't need it, delete it.
 

Dark

Member

okies it works :)
thnx people

but what about the other error? whats the casue and/or solution?

EDIT: i tried searching for monsterbook but it can be found anywhere
 

Dark

Member

but i used the search for alls scripts and search each script seperatly
i searched for the exact string, monsterbook and monster and couldnt find anything

edit: nevermind, i started over and carefully tested each script and it works now, no more mr. monsterbook error
but anyway, thnx everyone who helped me (especialy tibuda who actualy fixed the bank script :p)
hope i dont have to visit this section ever :p (you know, then i dont have errors XD)

so thank you to all :)
 

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