Item menu Issues...

Okay. First off, I'm making a horror adventure game and as such have tinkered around with the menu scripts, cutting out a lot of commands and the gold window. This is what my menu normally looks like:

menu.png

However, when I go into my item menu after obtaining an item (and properly adding it through an event), I get this problem:

Itemmenuissue.png

The problem's that weird little symbol or whatever where the number should be. I've looked through my script and nothing looks off, but maybe I accidentally deleted a line of code? If you have any ideas as to how to fix it, give me a buzz. I don't think it's a font error, since the "30" on the main status screen display fine, but I'm open to suggestion.

(And if I put this in the wrong spot again, I'm sorry! I'm new to the forum concept and it's difficult to get things right. Please bear with me!)
http://forums.rpgmakerweb.com/index.php?/topic/1131-rgss3-unofficial-bugfix-snippets/


Third issue - Custom Font Junk Symbol Fix
It looks like it's saying "01" as your number.  As in, you have one of them.  I suggest maybe looking into your font?  Maybe that's the issue?
I tried that, but it doesn't seem to work...still comes up. Any other ideas?

It looks like it's saying "01" as your number.  As in, you have one of them.  I suggest maybe looking into your font?  Maybe that's the issue?
It might look like that, but if you look at the first picture, you'll see that the 0 in "30" under HP looks different.
Upon closer inspection, the junk symbol appears to be replacing an "x" as in "x1". Anyone have any ideas to clear it out?
ShiningBlade, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Ah, it's not an x. What SHOULD go there is a colon : and it appears that your font doesn't have the glyph for it.


In your scripts, go to Window_ItemList, and line 101 (assuming you are using the default script), and change this:

Code:
draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)
to this:
Code:
draw_text(rect, sprintf(" %2d", $game_party.item_number(item)), 2)
Or you could replace the : with any other character you want it to use instead. Maybe -
ShiningBlade, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

Ah, it's not an x. What SHOULD go there is a colon : and it appears that your font doesn't have the glyph for it.

In your scripts, go to Window_ItemList, and line 101 (assuming you are using the default script), and change this:

draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)to this:
Code:
draw_text(rect, sprintf(" %2d", $game_party.item_number(item)), 2)
Or you could replace the : with any other character you want it to use instead. Maybe -
It didn't work...ugh this is so frustrating. I even tried to take out the part in the "" and it still came up with the weird box. Should I just try using a different font?
Try it and see.

Are you using any custom menu scripts?  Do a search for $game_party.item_number throughout your scripts (Ctrl+Shift+F) and see if another script uses it somewhere in a draw_text.

Also, you don't need to quote my entire post when you post immediately after 🙂
If you're using a different font than the original, switch back and check which letter appears in the place of the strange symbol. That letter is missing in your new font, and you'll need a font that contains it or using a font editor to add it.


If the strange symbol is there on the default font, then try the fix linked in post #2.


If that also doesn't work, then you need to find the script that replaces the custom message/text display and look for the bug in there.
i believe yanfly's uses a custom symbol to show the number of items if you're using yanfly's core script
ARE you using custom scripts? If so, that would have been useful information to include in your first post (along with links to said scripts).
ARE you using custom scripts? If so, that would have been useful information to include in your first post (along with links to said scripts).
Aah! Sorry! I have been using Yanfly's message system, but I've been using it for so long I forgot to mention it.  😮

i believe yanfly's uses a custom symbol to show the number of items if you're using yanfly's core script

If you're using a different font than the original, switch back and check which letter appears in the place of the strange symbol. That letter is missing in your new font, and you'll need a font that contains it or using a font editor to add it.

If the strange symbol is there on the default font, then try the fix linked in post #2.

If that also doesn't work, then you need to find the script that replaces the custom message/text display and look for the bug in there.
Thanks everyone! That fixed it!

P.S. -- Shaz, sorry again. I'm still new at this and you've been very helpful and very patient. A-ri-ga-tou!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/item-menu-issues.15784/