xgamexfreakx
Member
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..
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:
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
Edit: Sorry about that..I was in a rush to go so I forgot to put what the error said....ehehe..
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