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.

no implicit conversion from nil to integer?

zchin

Sponsor

I need help with the "CRAFTING PROGRAM written by Deke" can be found here
It gives me the error

I am also using the tankentai battle system with the add-on, overdrive I am also using the
Destruction Engine by Rataime
Advanced Message System by Dubealex

Thank you and have a nice day!
 
It looks like $fontsize & $defaultfontsize don't have a value.
Put these 2 lines before line 402 to test...

print $fontsize
print $defaultfontsize

then playtest

If the print dialogs come up empty or nil, you can set the $defaultfontsize at the top of the main method, or just change the line to:

self.contents.font.size = $fontsize.is_a?(Integer) ? $fontsize : 22

Be Well
 

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