Eli Bitmap Font - Use bitmap fonts into your game!

Having an unfortunate issue.

I have the pro version, and have been using it for a while. When I put one single font in the "Structure List", it works fine. However, I have been starting to use two fonts for this project, but I have just replaced it during development for testing, rather than using both on the list and switching like I should be.

However, I have learned that when I put both fonts on the list, it bugs out. Keep in mind, I said they work individually if there's only one on the Structure List. Just not if both are.

When I have both of them on the list, I get two errors, each depending on their placement on the list.

When I have it in one order, the font is messed up, it's visually corrupted. If I swap the order of the fonts, I just get "Script Error" when I try to boot it up, which again, is very strange that if I just use one font on the list both fonts work perfectly fine...

This is obviously problematic because I want to switch between the font using events.
Hi there!

But if you like to try on your side, let me know:
- Are you using MV or MZ?
- What are the versions of the Bitmap Font Pro and Eli Book?
- You only have enabled the Bitmap Font Pro or do you have both the Free and Pro versions ON?

But here is some things I can think that could be the problem:
- The "Build Bitmap File" parameter is set to false, when it should be set to true whathever you add/remove/ or change the font order on the structure:
1687489948721.png


- The fonts have the same font face name. They should have different font face names, because it works like an ID. Must be unique for each entry:
1687490008251.png


If when it is only one font on the structure list, both fonts work fine, I guess the problem is does not lies on the "All Characters" not matching the font files.

If you make the changes above, and it still does not work, I would have to ask you to sent me a PM, with the link of a sample project replicating the issue, so i could take a look.
‎
Oh my god, it was the font face!! Thank you haha.
Nice!! Have fun! ^^
1705298144258.png

Disregard: I had to make the spacing between characters an even number.
Isolated the plugin to just the required ones and it still causes this issue.
View attachment 291897
Disregard: I had to make the spacing between characters an even number.
Isolated the plugin to just the required ones and it still causes this issue.
Hi!

The space between characters is not the problem. With only this screenshot, I guess the problem lies on the bitmap.png file itself. Somehow you created it wrong.

I think some letters may be out of their grid.

Or you put too many characters on the plugin parameters and the png file does not have the same amount of characters.

Take a look at my free sample project on my itch io page and see how a bitmap font is made inside the img/system folder.
Hi there! I'm enjoying making a looooong PNG of characters. Fun!

I am trying to follow your directions to use the demo in MV and I've constructed the following plugin command so far:

BitmapFont [Assign] [Scene] [???] [???]

Forgive my dumb question but in the Bitmap Font document you wrote:

Font Index The bitmap font index or the bitmap font face.
What would be examples of this? The name of the PNG? Like [example-font.png] ?

You wrote:
Container The name of the Window or scene you want to perform the operation. It is case-sensitive, and you can assign multiple ones.
What would be a name that would work?
If I wrote a [Assign] [Window] [Font.png] [Dim] [Transparent] would it apply to all Dim and Transparent windows?

What if I am using GALV's Message Styles? Can I target Window1, Window2, Window3, etc.?

And if I were to tackle it the 'scene' way instead of the 'window' way, how do I find the name of my scene? What are some examples? "Main Menu"? "Map"? "Battle"? Which ones does the plugin recognize?

What can I do to assign the bitmap font to the opening main menu splash screen, since I'm not sure how to call a plugin command at that initial scene?

Sorry for my numerous ignorant questions, and thank you again for trying to get us all some wonderful pixely goodness in our games.
Hi @unikadas !

Forgive my dumb question but in the Bitmap Font document you wrote:

What would be examples of this? The name of the PNG? Like [example-font.png] ?
1 - There are examples on the sample project. Open the Bitmap Font Map and check the events. Some of them are using the plugin commands. Font Index is the number of the font you created on the plugin parameter. The first font you create will be number 0. The second font you create will be number 1. And so on.
The Font Face is like an ID that you MUST fill in when creating the font inside the plugin parameters.
1709514229001.png


You wrote:
What would be a name that would work?
If I wrote a [Assign] [Window] [Font.png] [Dim] [Transparent] would it apply to all Dim and Transparent windows?
2 - This has nothing to do with the image filename. On the plugin parameters, you can find all the names of the default scenes and windows. This is an example of the scenes(but there is also a list of the windows):
1709514392862.png


What if I am using GALV's Message Styles? Can I target Window1, Window2, Window3, etc.?
3 - I don't about that. I guess the Galv Plugin only changes the Window image, not relative to the window constructor name.

And if I were to tackle it the 'scene' way instead of the 'window' way, how do I find the name of my scene? What are some examples? "Main Menu"? "Map"? "Battle"? Which ones does the plugin recognize?
4 - Answered on 2.

What can I do to assign the bitmap font to the opening main menu splash screen, since I'm not sure how to call a plugin command at that initial scene?
5 - Just create a font on the plugin parameters and assign the Scene_Title to it.
Thank you so much, I will play with it some more knowing all this, now!
Is it possible to change the color of the text with color codes? I tried the default \C[x]phrase\C but it no longer seems to change the text color.
Hi!

Is it possible to change the color of the text with color codes? I tried the default \C[x]phrase\C but it no longer seems to change the text color.
Only on the Pro Version:
1710234472432.png
Hi!


Only on the Pro Version:
I have the pro version. Could you walk me through the codes how to do that?
1710260077360.png


Screenshots showing errors in Edit spoiler below.
Spoiler: Edit
Edit:
I changed this from disable to ffffff(white) and some glitchy things started happening.
1710261546495.png

1710261727996.png

I do not know why there is a blue G and black letters. The boxes are also darker than they should be.
1710261785459.png

This should be white, not black.
1710261813705.png



1710261667000.png


This one is correct.
1710261857804.png

This one is not color coded so I do not know why it is colored partly below as well as a black color as well.
1710261892399.png

The next one has even more black letters. It is as though the black letters are replacing the color coded ones.
1710261968576.png

This one is correct.
1710262018971.png

I then walk over to a show choice event which has no color codes and this appears in all the colors from previous selections.
1710262088430.png

1710262113972.png

My default color is white also. Should it not just go back to white after the color code is finished?

I tried your sample project using the cyborgsister 20 font and the same issue arises(I had to copy paste the pro plugin and remove the blank one that rests inside the sample project). Some of the other cyborgsister fonts(cyborgsister 10 for example) when loaded show a canvas error but cyborg 20 functions albeit with the black letters and colors not returning to normal as they should error.
I have the pro version. Could you walk me through the codes how to do that?
View attachment 298134

Screenshots showing errors in Edit spoiler below.
Spoiler: Edit
Edit:
I changed this from disable to ffffff(white) and some glitchy things started happening.
View attachment 298138
View attachment 298140
I do not know why there is a blue G and black letters. The boxes are also darker than they should be.
View attachment 298142
This should be white, not black.
View attachment 298143


View attachment 298139

This one is correct.
View attachment 298144
This one is not color coded so I do not know why it is colored partly below as well as a black color as well.
View attachment 298146
The next one has even more black letters. It is as though the black letters are replacing the color coded ones.
View attachment 298147
This one is correct.
View attachment 298148
I then walk over to a show choice event which has no color codes and this appears in all the colors from previous selections.
View attachment 298149
View attachment 298150
My default color is white also. Should it not just go back to white after the color code is finished?

I tried your sample project using the cyborgsister 20 font and the same issue arises(I had to copy paste the pro plugin and remove the blank one that rests inside the sample project). Some of the other cyborgsister fonts(cyborgsister 10 for example) when loaded show a canvas error but cyborg 20 functions albeit with the black letters and colors not returning to normal as they should error.
I can see two things that you should change:
1 - You are forgetting the # before ffffff. It should be #ffffff on the plugin parameters.

2 - To cancel a color, you should use \C[0], not just \c

Now, If fixing the above still didn't manage to make the plugin work properly, I will need a screenshot of your Bitmap file, just for me to see what color you put on the file.

And also, if you are using some other plugins, try disabling them and leave only Eli Book and Bitmap font On for we to check if it is a compatibility issue.

If still does not work, send me a sample project replicating the issue on a private message here on the forum.
I can see two things that you should change:
1 - You are forgetting the # before ffffff. It should be #ffffff on the plugin parameters.

2 - To cancel a color, you should use \C[0], not just \c

Now, If fixing the above still didn't manage to make the plugin work properly, I will need a screenshot of your Bitmap file, just for me to see what color you put on the file.

And also, if you are using some other plugins, try disabling them and leave only Eli Book and Bitmap font On for we to check if it is a compatibility issue.

If still does not work, send me a sample project replicating the issue on a private message here on the forum.
Thanks! It worked. All I had to do was put a # before the ffffff code. I had no Idea I needed to do that. I did not put \C[0] but left it as is and it still worked as normal. You are a lifesaver and I will buy more of your plugins!

I will add that your plugin is very easy to setup which I like. All I did was make the letters in gimp, follow the explanation, add the font to the plugin parameters and adjust a few numerical values.
Thanks! It worked. All I had to do was put a # before the ffffff code. I had no Idea I needed to do that. I did not put \C[0] but left it as is and it still worked as normal. You are a lifesaver and I will buy more of your plugins!

I will add that your plugin is very easy to setup which I like. All I did was make the letters in gimp, follow the explanation, add the font to the plugin parameters and adjust a few numerical values.
Thanks friend!
Glad it is working fine now ^^
Have fun!! 🙂
The text color change on the pro version doesn't seem to work with UIs. On messages it's fine. I'm guessing it's because the color change only seems to work with text itself and not texts drawn as sprites as indicated by code with this.bitmap.drawText.

UPDATE: I was able to block out line # 1017 (bitmap.textColor = font.textColor) in Sprite_Damage. It doesn't seem to work for the others.
The text color change on the pro version doesn't seem to work with UIs. On messages it's fine. I'm guessing it's because the color change only seems to work with text itself and not texts drawn as sprites as indicated by code with this.bitmap.drawText.

UPDATE: I was able to block out line # 1017 (bitmap.textColor = font.textColor) in Sprite_Damage. It doesn't seem to work for the others.
By default, with or without my plugin, the text codes only works on texts that are drawn by a method/function of a window, not sprites.

To use text codes in sprites, you need a plugin/custom code for that. Otherwise you have to manually change their colors with code.
Wasn’t referring to that. I mean the text considered as sprites (damage, battle character name, gauge and label text) do not normally change color as they are instructed to within the plug-in code itself and not the text code. For example without my modification, the damage/healing text (Sprite_Damage) remains the color.

Likewise the crisisHP (ie HP below a certain percentage change the text color) doesn't seem to work.
Wasn’t referring to that. I mean the text considered as sprites (damage, battle character name, gauge and label text) do not normally change color as they are instructed to within the plug-in code itself and not the text code. For example without my modification, the damage/healing text (Sprite_Damage) remains the color.

Likewise the crisisHP (ie HP below a certain percentage change the text color) doesn't seem to work.
Ohhhh! I understood what you mean now!
Nice catch! I will fix this!
Is it possible to switch between 2 fonts? I see there is an option to change for scenes and windows but I am looking to change it in general for dialogue, common events, on screen text etc. A larger font at one time and then a smaller font at a different time.
Is it possible to switch between 2 fonts? I see there is an option to change for scenes and windows but I am looking to change it in general for dialogue, common events, on screen text etc. A larger font at one time and then a smaller font at a different time.
Hi
Yes it is possible. Just read the help file. You can do with plugin commands or with escape codes(Using my message action plugin)

Original thread: https://forums.rpgmakerweb.com/threads/eli-bitmap-font-use-bitmap-fonts-into-your-game.137644/