Page 1 of 1

[0.13/0.14] Font path wrong in mods (example code provided)

Posted: Wed Aug 31, 2016 4:11 am
by aubergine18
I'm trying to add a font in a mod, with this path specified in /locale/en/font.cfg:

Code: Select all

[font]
glyph=__Glyph__/fonts/glyph.ttf

-- I also tried:
[font]
glyph=fonts/glyph.ttf
However, Factorio treats it as a subfolder of the main install folder, rather than my mod folder, giving this error message as a result:
Apple Mac wrote: Error when opening /Users/*****/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data/core/__Glyph__/fonts/glyph.ttf for reading: No such file or directory
This error goes unnoticed in the 'core' mod that's bundled with factorio, but makes it impossible for mods to add their own fonts.

Hopefully this is relatively easy to fix.

Related:
* info from Rseding91 about custom fonts
* older report of this error in modding forums - same bug on Windows

Re: [0.13/0.14] Font path wrong in mods (example code provided)

Posted: Thu Sep 01, 2016 2:25 pm
by Oxyd
Looks like this never worked in the first place. Fixed in 0.14.3.

Re: [0.13/0.14] Font path wrong in mods (example code provided)

Posted: Sun Sep 04, 2016 6:26 pm
by aubergine18
Thank you!!! :D