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.

ADB Menu Error

I just started using the ADB system and the menu wont work. It works in the demo, but when I copy it into my game it wont work. It is a brand new project so there is no other custom scripts. (almost!) the only other script that is not default is an addon to the title scene. All it does is show another window and ask you whether you want to play easy or hard mode (passive or active on the ADB). I've tried taking this script out and seeing if the menu would work but unfortunaly it wont. Could anybody help???? If you need, I can post the difficulty script and the ADB demo. Thanks!

Edit: Sorry about that..I was in a rush to go so I forgot to put what the error said....ehehe.. :eek:
anyways. When you try to go into the menu, you get an error that says,

Script 'ADB - FFXII Menu' line 1286: Type Error occurred.
no implicit conversion from nil to interger

http://img2.freeimagehosting.net/uploads/99321fb0e5.jpg[/img]

that is what it says. The code it is talking about is as follows:

Code:
  #--------------------------------------------------------------------------
  # - Startup of Objects
  #--------------------------------------------------------------------------
  
  def initialize
    super(0, 0, 160, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
        self.contents.font.name = $fontface
    self.contents.font.size = $fontsize
    refresh
  end
 

There is a lot more of the actual code but this is what it is talking about. If anyone could help me out here, it would be greatly appreciated!!!! Thanks
 
sometimes these lines causes more problems than anything else... self.contents.font.name = $fontface &    self.contents.font.size = $fontsize.
let me ask you something. It's a very common question, actually. Do you use the postality knight's maker? or any other translation in Spanish, Portuguese or whatever?
regarding the script itself, you may remove those variables $fontface and $fontsize and replace them with a name for the fontface 'Arial' and a value like 22.
 
No, I paid the full $60 for the program. It is the full English legal version of the game. The ADB system however, came from a different language. It was translated by someone before being put out though. It is still in the original language though.
However, I tried what you said and got it to work! Thanks a lot!
 

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