April 19, 2024, 05:16:21 AM
Broken Fonts
Read 6276 times

0 Members and 1 Guest are viewing this topic.

XNautPhD

  • Goblin
  • *
  • Posts5
Version 0.4 and 0.4.10 patched are completely unplayable. When I try to use the .exe, it immediately crashes Google Chrome(why is this even happening? What does Chrome have to do with anything?), then gives the following message.


Failed to initialize CaRpg!
Failed to load font 'Florence-Regular.otf' (2)!


When I try to run the file, it has a similar error, that it isn't a valid file. This happens for Sacramento-Regular.ttf as well. I tried downloading the fonts from an external website but those had the same error from every available source. Even more baffling is that every other font I could find worked perfectly, it's only the two fonts that happen to be used in this game that cause issues.

Minister of Death

  • Hero
  • ***
  • Posts217
That's odd. It'll need some investigating!

Tomashu

  • Administrator
  • *****
  • Posts439
This is a weird problem, probably connected to too long file paths.

Can you check if there are files in folder data/fonts? What is full path to otf file? For example 'C:\Users\Tomashui\Source\Repos\carpg\bin\data\fonts\Florence-Regular.otf'.. There is windows limit to ~250 characters.

XNautPhD

  • Goblin
  • *
  • Posts5
The fonts folder only has Florence-Regular.otf and Sacramento-Regular.ttf. The file path to Florence is...

C:\Users\secha_000\Desktop\Games\CaRPG\data\fonts\Florence-Regular.otf


Tomashu

  • Administrator
  • *****
  • Posts439
Here is something to try: https://www.dropbox.com/s/6wo7wovagflwauc/carpg_patch_4_11.zip?dl=0
Nothing realy changed since version 0.3 but there was error with checking number of fonts added (if more than 1 font was added it returned error).

If this helped post log.txt, I want to check what it returned :) Chrome still crashes?

If not post log.txt. And what system do you have? Can you open font by double click?

Thanks!

XNautPhD

  • Goblin
  • *
  • Posts5
That fixed the Chrome crashing issue, though I'm now getting a different error, reading the same first line as before, and the second line as "Engine: Failed to initialize FMOD system (60)!"
My OS is Windows 10, and I'm still unable to double-click open the two fonts in CaRPG.

Trying to open ANY .otf or .ttf file gives this error:
The requested file [entire file path] is not a valid font file.

Finally, here's my Log.txt
Code: [Select]
?20:57:55 INFO - CaRpg 0.4.11
20:57:55 INFO - Date: 2016-04-26
20:57:55 INFO - Build date: 2016-04-26 07:44:21
20:57:55 INFO - Process ID: 105240
20:57:55 INFO - Build type: release
20:57:55 INFO - Processor features: x64, MMX, SSE, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX, FMA3
20:57:55 INFO - Parsing command line.
20:57:55 INFO - Loading config file
20:57:55 INFO - Settings: crash_mode = normal
20:57:55 INFO - Settings: stream_log_mode = errors
20:57:55 INFO - Settings: Resolution 0x0.
20:57:55 INFO - Settings: Refresh rate 0 Hz.
20:57:55 INFO - Settings: Adapter 0.
20:57:55 INFO - Reading install scripts.
20:57:55 INFO - Random seed: 1461722275/0/0
20:57:55 INFO - Starting game engine.
20:57:55 INFO - Engine: Window created.
20:57:55 INFO - Engine: Adapters count: 1
20:57:55 INFO - Engine: Adapter 0: NVIDIA GeForce GTX 765M  , version 10.18.13.5362
20:57:55 INFO - Supported shader version vertex: 3.0, pixel: 3.0.
20:57:55 INFO - Using shader version 3.
20:57:55 INFO - Engine: Available multisampling: x2(1), x4(8), x8(4)
20:57:55 INFO - Engine: Available display modes:
   800x600 (60 Hz)
   1024x768 (60 Hz)
   1152x864 (60 Hz)
   1280x720 (60 Hz)
   1280x768 (60 Hz)
   1280x800 (60 Hz)
   1280x960 (60 Hz)
   1280x1024 (60 Hz)
   1366x768 (60 Hz)
   1600x900 (60 Hz)
   1600x1024 (60 Hz)
   1680x1050 (60 Hz)
   1920x1080 (60 Hz)
20:57:55 INFO - Engine: Defaulting resolution to 1024x768x (60 Hz).
20:57:55 INFO - Engine: Created direct3d device in hardware mode.
20:57:55 INFO - Engine: Directx device created.
20:57:55 INFO - Engine: Sound drivers (1):
20:57:55 INFO - Engine: Driver 0 - Speakers / Headphones (Realtek High Definition Audio)
20:57:55 INFO - Engine: Using driver 0 and output type 8.
20:57:55 INFO - Failed to initialize CaRpg!
Engine: Failed to initialize FMOD system (60)!
20:58:20 INFO - Engine: Cleanup.
20:58:20 INFO - Clearing game.
20:58:20 INFO - Leaving level.
20:58:20 INFO - *** End of log.


Tomashu

  • Administrator
  • *****
  • Posts439
Here is new version to try https://www.dropbox.com/s/n19ul299r9eh5nm/carpg_patch_4_12.zip?dl=0
I added that when sound failed to initialize it will turn off sound & music but will not crash.

For opening font try this: http://superuser.com/questions/957907/unable-to-install-fonts-on-windows-10
Maybe this will fix issue with adding font resource, maybe not. But it's stupid to turn firewall to start game. I added fallback to don't use this font file (it will use some default font like Arial).

Show your log, Thanks for checking :)

XNautPhD

  • Goblin
  • *
  • Posts5
I enabled Windows Firewall and everything suddenly works, in both 0.4.11 and 0.4.12 as well as the font files.
Problem solved, thanks for the tech support!

Tomashu

  • Administrator
  • *****
  • Posts439
Thats good but bad too :P It shouldn't require to turn on firewall to play game. I'll try to fix it in next versions.
Can you post log, I'm still curious about one thing. Thanks!

XNautPhD

  • Goblin
  • *
  • Posts5
Here's the log for a successful launch.

Code: [Select]
?23:38:56 INFO - CaRpg 0.4.11
23:38:56 INFO - Date: 2016-04-28
23:38:56 INFO - Build date: 2016-04-26 07:44:21
23:38:56 INFO - Process ID: 15728
23:38:56 INFO - Build type: release 
23:38:56 INFO - Processor features: x64, MMX, SSE, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX, FMA3
23:38:56 INFO - Parsing command line.
23:38:56 INFO - Loading config file
23:38:56 INFO - Settings: crash_mode = normal
23:38:56 INFO - Settings: stream_log_mode = errors
23:38:56 INFO - Settings: Resolution 1920x1080.
23:38:56 INFO - Settings: Refresh rate 60 Hz.
23:38:56 INFO - Settings: Adapter 0.
23:38:56 INFO - Reading install scripts.
23:38:56 INFO - Random seed: 1461904736/0/0
23:38:56 INFO - Starting game engine.
23:38:56 INFO - Engine: Window created.
23:38:56 INFO - Engine: Adapters count: 1
23:38:56 INFO - Engine: Adapter 0: NVIDIA GeForce GTX 765M  , version 10.18.13.5362
23:38:56 INFO - Supported shader version vertex: 3.0, pixel: 3.0.
23:38:56 INFO - Using shader version 3.
23:38:56 INFO - Engine: Available multisampling: x2(1), x4(8), x8(4)
23:38:56 INFO - Engine: Available display modes:
   800x600 (60 Hz)
   1024x768 (60 Hz)
   1152x864 (60 Hz)
   1280x720 (60 Hz)
   1280x768 (60 Hz)
   1280x800 (60 Hz)
   1280x960 (60 Hz)
   1280x1024 (60 Hz)
   1366x768 (60 Hz)
   1600x900 (60 Hz)
   1600x1024 (60 Hz)
   1680x1050 (60 Hz)
   1920x1080 (60 Hz)
23:38:56 INFO - Engine: Created direct3d device in hardware mode.
23:38:56 INFO - Engine: Directx device created.
23:38:56 INFO - Engine: Sound drivers (1):
23:38:56 INFO - Engine: Driver 0 - Speakers / Headphones (Realtek High Definition Audio)
23:38:56 INFO - Engine: Using driver 0 and output type 8.
23:38:56 INFO - Engine: FMOD system created
23:38:56 INFO - Engine: Bullet physics system created.
23:38:56 INFO - Compiling super shader: 0
23:38:56 INFO - Setting up super shader parameters.
23:38:56 INFO - Loaded items: 173 (crc A6773EDD).
23:38:56 INFO - Reading text file "system/lang/en/menu.txt".
23:38:56 INFO - Reading text file "system/lang/en/stats.txt".
23:38:56 INFO - Reading text file "system/lang/en/dialogs.txt".
23:38:56 INFO - Reading text file "system/lang/en/attribute.txt".
23:38:56 INFO - Reading text file "system/lang/en/skill.txt".
23:38:56 INFO - Reading text file "system/lang/en/class.txt".
23:38:56 INFO - Reading text file "system/lang/en/names.txt".
23:38:56 INFO - Reading text file "system/lang/en/items.txt".
23:38:56 INFO - Reading text file "system/lang/en/perks.txt".
23:38:56 INFO - Reading text file "system/lang/en/units.txt".
23:38:56 INFO - Creating list of files.
23:38:56 INFO - Preloading files.
23:38:57 INFO - Opening file 'data.pak'.
23:38:57 ERRO - Failed to load font 'Florence-Regular.otf' (2)!
23:39:06 INFO - Engine: Game initialized.
23:39:06 INFO - Checking CaRpg version.
23:39:07 INFO - You have newer version then available.
23:39:08 INFO - Game: Quit.
23:39:08 INFO - Clearing game.
23:39:08 INFO - Leaving level.
23:39:08 INFO - Engine: Started closing engine...
23:39:08 INFO - Engine: Cleanup.
23:39:08 INFO - *** End of log.


Tomashu

  • Administrator
  • *****
  • Posts439
Thanks!

There is now new version available, it contains this fix and some more :)

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 60 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Verification: