Unable to load rpgfont_wider.png!

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
zeeli
Peon
Peon
Posts: 20
Joined: 07 Jan 2008, 17:09
Location: Finland

Unable to load rpgfont_wider.png!

Post by zeeli » 28 Oct 2008, 18:42

Hello.

I tried using Forge's extended XP indication script with erroneous results.

I can't get my client started anymore, as it shuts down when loading file rpgfont_wider.png

Here is the contents of my log file
[17:21:59.41] Starting The Mana World Version 0.0.26
[17:21:59.41] Initializing SDL...
[17:21:59.44] Initializing resource manager...
[17:21:59.44] Adding to PhysicsFS: /home/eeli//.tmw
[17:21:59.44] Adding to PhysicsFS: data
[17:21:59.44] Error: File not found
[17:21:59.44] Adding to PhysicsFS: /usr/local/share/tmw/data
[17:21:59.44] Initializing configuration...
[17:21:59.44] Setting video mode 800x600 windowed
[17:21:59.48] Using video driver: x11
[17:21:59.48] Possible to create hardware surfaces: no
[17:21:59.48] Window manager available: yes
[17:21:59.48] Accelerated hardware to hardware blits: no
[17:21:59.48] Accelerated hardware to hardware colorkey blits: no
[17:21:59.48] Accelerated hardware to hardware alpha blits: no
[17:21:59.48] Accelerated software to hardware blits: no
[17:21:59.48] Accelerated software to hardware colorkey blits: no
[17:21:59.48] Accelerated software to hardware alpha blits: no
[17:21:59.48] Accelerated color fills: no
[17:21:59.48] Available video memory: 0
[17:21:59.48] Initializing GUI...
[17:21:59.48] Loaded /usr/local/share/tmw/data/graphics/gui/sansserif8.png
[17:21:59.86] Loaded /usr/local/share/tmw/data/graphics/gui/rpgfont_wider.png
[17:21:59.89] Error: Unable to load rpgfont_wider.png!
Sources for the Forge's XP indication extension:
--- a/data/graphics/gui/Makefile.in Fri Aug 08 17:59:23 2008 +0200
+++ b/data/graphics/gui/Makefile.in Sat Aug 09 22:17:56 2008 +0200
@@ -156,6 +156,8 @@
hits_blue.png \
hits_red.png \
hits_yellow.png \
+ hits_green.png \
+ hits_orange.png \
hscroll_left_default.png \
hscroll_left_highlight.png \
hscroll_left_pressed.png \
diff -r 3df214f65f57 data/graphics/gui/hits_green.png
Binary file data/graphics/gui/hits_green.png has changed
diff -r 3df214f65f57 data/graphics/gui/hits_orange.png
Binary file data/graphics/gui/hits_orange.png has changed
diff -r 3df214f65f57 src/gui/gui.cpp
--- a/src/gui/gui.cpp Fri Aug 08 17:59:23 2008 +0200
+++ b/src/gui/gui.cpp Sat Aug 09 22:17:56 2008 +0200
@@ -53,6 +53,8 @@
gcn::Font *hitRedFont;
gcn::Font *hitBlueFont;
gcn::Font *hitYellowFont;
+gcn::Font *hitGreenFont;
+gcn::Font *hitOrangeFont;
// Font used to display speech and player names
gcn::Font *speechFont;

@@ -138,6 +140,10 @@
"0123456789");
hitYellowFont = new gcn::ImageFont("graphics/gui/hits_yellow.png",
"0123456789misxp ");
+ hitOrangeFont = new gcn::ImageFont("graphics/gui/hits_orange.png",
+ "0123456789misxp ");
+ hitGreenFont = new gcn::ImageFont("graphics/gui/hits_green.png",
+ "0123456789misxp ");
}
catch (gcn::Exception e)
{
@@ -165,6 +171,8 @@
delete hitRedFont;
delete hitBlueFont;
delete hitYellowFont;
+ delete hitOrangeFont;
+ delete hitGreenFont;

if (mMouseCursors) {
mMouseCursors->decRef();
diff -r 3df214f65f57 src/gui/gui.h
--- a/src/gui/gui.h Fri Aug 08 17:59:23 2008 +0200
+++ b/src/gui/gui.h Sat Aug 09 22:17:56 2008 +0200
@@ -114,6 +114,8 @@
extern gcn::Font *hitRedFont;
extern gcn::Font *hitBlueFont;
extern gcn::Font *hitYellowFont;
+extern gcn::Font *hitGreenFont;
+extern gcn::Font *hitOrangeFont;
/**
* Font used to display speech and player names
*/
diff -r 3df214f65f57 src/localplayer.cpp
--- a/src/localplayer.cpp Fri Aug 08 17:59:23 2008 +0200
+++ b/src/localplayer.cpp Sat Aug 09 22:17:56 2008 +0200
@@ -38,6 +38,7 @@
#include "net/protocol.h"

#include "utils/tostring.h"
+#include <math.h>

LocalPlayer *player_node = NULL;

@@ -435,6 +436,17 @@
// Show XP number
particleEngine->addTextRiseFadeOutEffect(text, hitYellowFont,
mPx + 16, mPy - 16);
+ const std::string text2 = toString((mXpForNextLevel-xp)/(xp - mXp));
+ particleEngine->addTextRiseFadeOutEffect(text2, hitOrangeFont,
+ mPx + 16, mPy - 32);
+ double nperc=100.0-100.0*xp/mXpForNextLevel;
+ nperc-=floor(nperc);
+ nperc*=mXpForNextLevel/100.0;
+ const std::string text3 = toString((long)(nperc)/(xp-mXp));
+ particleEngine->addTextRiseFadeOutEffect(text3, hitGreenFont,
+ mPx + 16, mPy );
+
+
}
mXp = xp;
}
What might be wrong?


Regards,
zEeLi
User avatar
Forge
Peon
Peon
Posts: 28
Joined: 02 Mar 2008, 19:21
Location: France

Re: Unable to load rpgfont_wider.png!

Post by Forge » 04 Nov 2008, 14:02

<Removed Content>
Removed Content on 6 May 2009.
Thanks.
Post Reply