pjasicek / OpenClaw

Reimplementation of Captain Claw (1997) platformer
GNU General Public License v3.0
338 stars 39 forks source link

ERROR: [InitializeFont] Failed to load TTF font #132

Closed McSaks closed 5 years ago

McSaks commented 5 years ago

./openclaw:

WARN: [RunGameEngine] Failed to set high priority class to this process
INFO: Looking for: /home/mcsaks/.config/openclaw/config.xml
INFO: Expecting config.xml in path: /home/mcsaks/.config/openclaw/config.xml
WARN: [LoadGameOptions] Configuration file: /home/mcsaks/.config/openclaw/config.xml not found - creating default configuration
INFO: Loaded with:
        Config File: /home/mcsaks/.config/openclaw/config.xml
        Saves File: /home/mcsaks/.config/openclaw/SAVES.XML
INFO: >>>>> Initializing display...
INFO: Display successfully initialized.
INFO: >>>>> Initializing audio...
INFO: Audio successfully initialized.
INFO: >>>>> Initializing font...
ERROR: [InitializeFont] Failed to load TTF font
ERROR: [RunGameEngine] Failed to initialize. Exiting.

screenfetch:

                          ./+o+-       mcsaks@mcsaks-dell
                  yyyyy- -yyyyyy+      OS: Ubuntu 16.04 xenial
               ://+//////-yyyyyyo      Kernel: x86_64 Linux 4.4.0-137-generic
           .++ .:/++++++/-.+sss/`      Uptime: 15d 6m
         .:++o:  /++++++++/:--:/-      Packages: 3324
        o:+o+:++.`..```.-/oo+++++/     Shell: zsh 5.1.1
       .:+o:+o/.          `+sssoo+/    Resolution: 1920x1080
  .++/+:+oo+o:`             /sssooo.   WM: GNOME Shell
 /+++//+:`oo+o               /::--:.   WM Theme: Paper
 \+/+o+++`o++o               ++////.   GTK Theme: Breeze [GTK2]
  .++.o+++oo+:`             /dddhhh.   Icon Theme: breeze
       .+.o+oo:.          `oddhhhh+    Font: Noto Sans Regular 10
        \+.++o+o``-````.:ohdhhhhh+     CPU: Intel Core i7-7500U CPU @ 3.5GHz
         `:o+++ `ohhhhhhhhyo++os:      RAM: 4993MiB / 7881MiB
           .o:`.syhhhhhhh/.oo++o`     
               /osyyyyyyo++ooo+++/    
                   ````` +oo+++o\:    
                          `oo++.
pjasicek commented 5 years ago

How are you running the game ? Do you build it and then run it from Build_Release folder (I suppose not) or are you using the build from the apt package ?

McSaks commented 5 years ago

I build and run it as suggested:

cd build
cmake ..
make -j4
cd ../Build_Release
./openclaw
pjasicek commented 5 years ago

Hmmm. Really make sure that you are in the "Build_Release" folder when you run ./openclaw.

Also make sure that in the Build_Release folder is file "config.xml" - there should be one as it is in this repository.

McSaks commented 5 years ago

Oops... I accidentally deleted this folder.

SOLVED. Thank you!

pjasicek commented 5 years ago

No problem, happy to help ;)