Menu

#1 Doesn´t work when run outside game directory

open
nobody
None
5
2007-06-01
2007-06-01
No

Description, reproduction and output:
The game does not start when it´s being launched outside the game directory. For example by running ¨./iteam/iteam¨ in the CLI or by dubble clicking it in gnome/kde.

It display´s the following error after initializing gp2d:
terminate called after throwing an instance of ¨std::runtime_error¨
what(): FT_New_Face failed (there is problably a problem with your font file)
Aborted (core dumped)

Solution:
The solution might be to not load sprites/fonts/etc by calling ¨data/sprites/sprite.png¨ but by ¨application_Directory() + /data/sprites/sprite.png¨. Where the function returns the directory where the application is at. This or a simmilar function is not yet in the gp2d engine.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB