How to fix those text squares?

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Well, I've changed the text font in my project and now it shows a square instead of some punctuation marks and numbers. It happens with every font now. How can I fix this?
 

Attachments

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA

I've moved this thread to ACE Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
basically the square means that the program tries to display a symbol that is not included in the font used. As such there are very few ways to solve this:
1) modify the fontfile to include the missing symbol
2) switch back to a font that already includes the missing symbols
3) search through the engine code until you have found the place where the symbol is in the strings and replace that symbol with one that is included in the new font.

a lot of people go with option 3, but that means you'll have to be able to find the places in the engine code that needs to be changed.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
basically the square means that the program tries to display a symbol that is not included in the font used. As such there are very few ways to solve this:
1) modify the fontfile to include the missing symbol
2) switch back to a font that already includes the missing symbols
3) search through the engine code until you have found the place where the symbol is in the strings and replace that symbol with one that is included in the new font.

a lot of people go with option 3, but that means you'll have to be able to find the places in the engine code that needs to be changed.
Actually, it happens with every single font, including the one I used before, so it is not about any missing symbol. And the problem is... I dont know how to do any of those 3 options.
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
287
Reaction score
71
First Language
English
Primarily Uses
RMXP
Then it could be an encoding issue. The Maker uses UTF-8 only. Some websites don't adhere to such encoding but use Western or Latin-1 or JIS if Japanese.
If you know what kind of characters they're supposed to be, replace them yourself.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Then it could be an encoding issue. The Maker uses UTF-8 only. Some websites don't adhere to such encoding but use Western or Latin-1 or JIS if Japanese.
If you know what kind of characters they're supposed to be, replace them yourself.
I don't even know how to replace those characters, I know nothing about coding...
But I dont think thats the problem, cause it happens with every singles font, even the one I used before this happened.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Im not sure if anyone is going to see this, but this bug is not because of any missing symbol. This only happens on battles.
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
287
Reaction score
71
First Language
English
Primarily Uses
RMXP
Well, @Dannygs90, that's what YOU think. Sadly, the maker doesn't agree with you.
So a missing symbol here might also mean "unknown" or not supposed to be used by humans. LF or CR and the like are used by machines. Usually you'd only get such an error if you edited a script with a different encoding. Perhaps you didn't, but I suspect you had the names of your heroes and foes written on some TXT file or word document. Probably you carried those invisible symbols along after pasting them on the database editor.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Well, @Dannygs90, that's what YOU think. Sadly, the maker doesn't agree with you.
So a missing symbol here might also mean "unknown" or not supposed to be used by humans. LF or CR and the like are used by machines. Usually you'd only get such an error if you edited a script with a different encoding. Perhaps you didn't, but I suspect you had the names of your heroes and foes written on some TXT file or word document. Probably you carried those invisible symbols along after pasting them on the database editor.
I didn't carry anything, I wrote everything myself, even the battlers and enemies names. Those blank spaces are just everywhere, not just in names.
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
Guys, the missing characters are the A, B, C, etc to distinguish the different enemies. Game_Troop defines those letters as:
Code:
  LETTER_TABLE_HALF = [' A',' B',' C',' D',' E',' F',' G',' H',' I',' J',
                       ' K',' L',' M',' N',' O',' P',' Q',' R',' S',' T',
                       ' U',' V',' W',' X',' Y',' Z']
  LETTER_TABLE_FULL = ['A','B','C','D','E','F','G','H','I','J',
                       'K','L','M','N','O','P','Q','R','S','T',
                       'U','V','W','X','Y','Z']
It uses LETTER_TABLE_FULL if $game_system.japanese? is true. So we can come to the conclusion that Danny's game is made with the Japanese version of VXA and the font file being used does not support those specific characters.

An easy work-around would be to Game_System, find def japanese? and replace it with
Code:
  def japanese?
    false
  end
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Guys, the missing characters are the A, B, C, etc to distinguish the different enemies. Game_Troop defines those letters as:
Code:
  LETTER_TABLE_HALF = [' A',' B',' C',' D',' E',' F',' G',' H',' I',' J',
                       ' K',' L',' M',' N',' O',' P',' Q',' R',' S',' T',
                       ' U',' V',' W',' X',' Y',' Z']
  LETTER_TABLE_FULL = ['A','B','C','D','E','F','G','H','I','J',
                       'K','L','M','N','O','P','Q','R','S','T',
                       'U','V','W','X','Y','Z']
It uses LETTER_TABLE_FULL if $game_system.japanese? is true. So we can come to the conclusion that Danny's game is made with the Japanese version of VXA and the font file being used does not support those specific characters.

An easy work-around would be to Game_System, find def japanese? and replace it with
Code:
  def japanese?
    false
  end
Actually, I already did all of that, and the letters are not the only problem.
1598117432284.png
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
Again, your font file doesn't support the characters.
In your Vocab section
Code:
EnemyDamage = "¡%s ha perdido %s PV!"
That last exclamation point is different from this: !
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Again, your font file doesn't support the characters.
In your Vocab section
Code:
EnemyDamage = "¡%s ha perdido %s PV!"
That last exclamation point is different from this: !
Ummmm...
1598119471380.png
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
What? It's up to you to go fix them all.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
What? It's up to you to go fix them all.
OOOOOK I REPLACED EVERY SINGLE EXCLAMATION MARK AND NOW IT WORKS. I didn't know those weren't actually exclamation marks, that's so weird... But the only missing symbol now are those arrows. Any idea on how to fix those?
1598119914163.png
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
281
Reaction score
106
First Language
English
Primarily Uses
RMXP
Window_EquipStatus
Code:
  def draw_right_arrow(x, y)
    change_color(system_color)
    draw_text(x, y, 22, line_height, "→", 1)
  end
Update the arrow character to whatever your font supports.
 

Dannygs90

Villager
Member
Joined
Jan 5, 2020
Messages
23
Reaction score
0
First Language
Spanish
Primarily Uses
RMVXA
Window_EquipStatus
Code:
  def draw_right_arrow(x, y)
    change_color(system_color)
    draw_text(x, y, 22, line_height, "→", 1)
  end
Update the arrow character to whatever your font supports.
Ok, just replaced it with a dash and now it works perfectly. Thanks a lot!!
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
287
Reaction score
71
First Language
English
Primarily Uses
RMXP
Then your font gotta be really botched if it can't show up exclamation symbols at all. What's the font name so we don't use it in the near future. :D
And even if you say you didn't copy scripts from external sources, one of your latests screenshot gives you away. It's that or your (automatic) copy of those strings in Spanish was flawed.
Why don't you test it on a new project to see if this was a one time event? Otherwise you'd need to repeat the same process all over again every time you want to start making a new game.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top