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.

[RESOLVED]Cannot convert nil into string??

Ares

Member

Hey, I'm using 'Hermes Extends Rmxp MEssage System' and Blizzard's Tons of Add-ons,
and when I try to playtest I get an error saying: 'Script: Addons line 1397 TypeError occured. cannot convert nil into String.
when I remove the script, it gives the same error for Hermes. The error is in the lines:
Add-ons:
Code:
draw_text_shaded_text_later(x, y, w, h, text, a)
Hermes:
Code:
old_bitmap_dt(now_x, now_y, *args)

I really don't get this, especially because I didn't enable the shaded text at all.

please help  :sad:
 
text variable is equal to nil. You have to assign it previously
or change with:
Code:
draw_text_shaded_text_later(x, y, w, h, text, a) if !text.nil?
but text will not be displayed
 

Ares

Member

berka":4wo22g17 said:
text variable is equal to nil. You have to assign it previously
or change with:
Code:
draw_text_shaded_text_later(x, y, w, h, text, a) if !text.nil?
but text will not be displayed
Well that doesn't matter, I wasn't planning on using shaded text anyway.
Thanks!
 

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