BMFont Demo (exe and source) don't work

Started by
4 comments, last by WitchLord 9 years, 10 months ago

Hi,

I tried to run demo and compile code downloaded from

http://www.angelcode.com/dev/bmfonts/

Demo exe says "failed to initialize".

log.txt:

...

acgfx_font.cpp | 933|Unrecognized format for 'data/comic24.fnt'

application.cpp| 42|Failed to initialize font 'data/comic24.fnt' (-1)

acframe_applica| 160|Application specific init failed (-1)

Source code had an error (VS 2010) but it was easy to correct (by declaring int n outside of "for"). However, when built, application also failed to initialize.

Log:

...

acgfx_graphics.| 342|Available render target format: L16

acgfx_graphics.| 633|Effect file 'data/font.fx' failed to compile (0x88760B59)

acgfx_font.cpp | 135|Failed to load 'data/font.fx' (-1)

application.cpp| 40|Failed to initialize font 'data/arial24.fnt' (-1)

acframe_applica| 160|Application specific init failed (-1)

Advertisement

I already informed Andreas Jonsson about this. :)

Here is what he said yesterday:

"Thanks for letting me know about the problem with 'bitmapfonts.exe'. It's been ages since I updated that sample. I'll need to revisit it to update it to support the current file format."

OK, thanks!

That demo is very important to me, because I want to learn how to use bitmap fonts, not how to create them. :)

I've updated the demo now. Download the file again, and let me know if it is still causing any problems for you.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

1. It works well. Thank you, Andreas.

Maybe only some glitch, when we resize a column narrow enough (see pic).

2. I managed *.sln to be opened in VS 2010, changing two upper lines:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop

to

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio Express 2010 for Windows Desktop

And set "Property Pages" - "VC++ Directories" - "Platform Toolset" to "v100", to find all include files.

3. Now I can think how to make letters look outstanding. (In my future epic programs).

With some coloring and shading of edges, probably.

I thought of some tags to change colors inline, like <#RRGGBB> or <#RRGGBBAA>, but likely it's better not to make things complex and let the program make separate calls for different colors.

Thanks. It must be a minor bug in my font drawing class. I'll look into it.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement