Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

BMFont Demo (exe and source) don't work


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 zendo   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 June 2014 - 03:40 PM

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)



Sponsor:

#2 Ogli   Members   -  Reputation: 137

Like
1Likes
Like

Posted 12 June 2014 - 04:14 PM

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."



#3 zendo   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 June 2014 - 05:39 PM

OK, thanks!

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



#4 Andreas Jonsson   Moderators   -  Reputation: 3293

Like
1Likes
Like

Posted 12 June 2014 - 06:06 PM

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

#5 zendo   Members   -  Reputation: 105

Like
0Likes
Like

Posted 12 June 2014 - 08:23 PM

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.

Attached Thumbnails

  • bmfont-demo-bug.jpg


#6 Andreas Jonsson   Moderators   -  Reputation: 3293

Like
0Likes
Like

Posted 12 June 2014 - 08:29 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS