Can someone fix my strange symbols?

Hi all,


I'm currently using a custom font in-game, which occasionally displays a strange symbol


instead of an arrow = "->"


I have obtained a script snippet to fix the error, it fixes the strange symbol in a couple of areas, but I would also like to fix it in my Items list.


I think this is a fairly easy fix, but I can't seem to figure it out.

Spoiler
# Add function for temporarily switching a window's current drawing font.


class Font


def use( window )


old_font = window.contents.font.dup


window.contents.font = self


yield


window.contents.font = old_font


end


end


# Fixes the arrow character (→) used in places in the UI


# since custom font does not support that character


module Mez


module ArrowFix


FONT = Font.new(["VL Gothic", "Arial"]) # This is the font used for the arrows, checked in order.


end


end


# For Actor Equip Window


class Window_EquipStatus


alias mez_wes_dra draw_right_arrow


def draw_right_arrow(x, y)


Mez::ArrowFix::FONT.use(self) do


mez_wes_dra(x, y)


end


end


end


# For Yanfly Victory Aftermath - remove if not using that script


class Window_VictoryLevelUp


alias mez_wvlu_da draw_arrows


def draw_arrows


Mez::ArrowFix::FONT.use(self) do


mez_wvlu_da


end


end


end
Any help fixing this one would be fantastic!


Thanks guys,


EDIT>


It is also displaying a strange symbol in my Items, Equipment and Skills lists.


You can access the Item menu by pressing insert.


Then using right arrow to move to the equipment list


and right arrow again to move to Skill list.


These are the menus that display the symbol.


Again, any help would be great!


As you can see in the attached image,


Scrolling through to the right menus (Equipment, skills) also displays


the box instead of the arrow.

Untitled.png
It means your font doesn't have the symbols/letters for some of the things that ur using... better find a new font that has them or stop using the symbols/letters that are not on your font
The default script does not have an arrow in this position. Are you using a custom script?


Try using the custom font junk symbol fix.
The default script does not have an arrow in this position. Are you using a custom script?


Try using the custom font junk symbol fix.
Thanks for the advice, I tried Lone Wolfs snippet on here but it didn't fix the item, equipment or skills Menu.


I'd be happy if the box was replaced with an arrow or a + sign or nothing.


And yes I'm using a few custom scripts 😉
you need to change to a different font or complete your font file - you have a font with an incomplete number of letters, and without knowing exactly what symbols are missing it'll be a lot of work to fix the problem.


If you still want to use that font, temporarily changew back to the original font, record which letter/symbols are displayed there with the original font.


Then open the font files for both the original and the new font with a font editor and check the "missing symbols" in your new font - and create or copy those missing letters into the new font's file.
you need to change to a different font or complete your font file - you have a font with an incomplete number of letters, and without knowing exactly what symbols are missing it'll be a lot of work to fix the problem.


If you still want to use that font, temporarily changew back to the original font, record which letter/symbols are displayed there with the original font.


Then open the font files for both the original and the new font with a font editor and check the "missing symbols" in your new font - and create or copy those missing letters into the new font's file.
Thanks Andar!


I'll try this,


Can you recommend any font editors?
It's actually an "X" that should be displayed where the junk symbol currently is,


i.e potion "x" 10


Does anyone know where I can alter this symbol to something else??


I assume it's somewhere in window_itemlist but I cant find it there.
Just edit the script. The 'x' is not really the 'x' of the alphabet, but a symbol. Change it to be the alphabet letter.


When I asked if you were using additional scripts, I actually meant a custom script for that particular screen 😉
Just edit the script. The 'x' is not really the 'x' of the alphabet, but a symbol. Change it to be the alphabet letter.


When I asked if you were using additional scripts, I actually meant a custom script for that particular screen 😉
Thanks Shaz,


ahh, actually you know, i dont think I am using a custom script for that particular screen,


So with that in mind, where could i change that symbol as you suggest?
Well, my script has an : there, not an x. So I can't be sure if it'll be in the same place or not. However, look at Window_ItemList in the draw_item_number method.


Mine has this line:

Code:
draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)
Yours might have this line:
Code:
draw_text(rect, sprintf("×%2d", $game_party.item_number(item)), 2)
Change the × to x
Ok found a fix with some help from Shaz and others here.

I was using Yanflys Ace Core Engine.

There is a section that allows you to modify the symbol displayed in your item menus, i.e "×" 10 potion.
Some fonts don't support this symbol and so we may wish to change the symbol to something else,

If anyone else comes across this error, they can update the Yanfly Ace Core Engine Script as shown in the spoiler below, this provides a fix, removing the junk symbol and allowing you to replace it with a supported symbol within your chosen font.

This spoiler shows the section of the Yanfly Ace Engine that allows you to modify the item menu symbol,

Spoiler
 #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # - System Text Options -
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    # Here, you can adjust the transparency used for disabled items, the %
    # needed for HP and MP to enter "crisis" mode.
    #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    TRANSPARENCY = 160   # Adjusts transparency of disabled items. Default: 160
    HP_CRISIS = 0.25     # When HP is considered critical. Default: 0.25
    MP_CRISIS = 0.25     # When MP is considered critical. Default: 0.25
    ITEM_AMOUNT = "×%s"  # The prefix used for item amounts.
    
  end # CORE
end # YEA
This second spoiler tells you what to change,

Spoiler
The above script/section will, as standard, have ITEM_AMOUNT = "×%s" simply changing the × to a standard X or alternative font supported symbol,

e.g ITEM_AMOUNT = "X%s" 

This should fix junk character in your chosen fonts for Yanfly Ace Core Engine menus for item, skill and equipment!

Another tip, if you want to find the "×" symbol, you can bring it up on your keyboard with ALT + 0215
Thanks yall,

Thanks Shaz 😉
Thanks for posting the comments here. Let's hope anybody else using the same script does a search 😉


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/can-someone-fix-my-strange-symbols.25496/