Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mandatory "Fonts" folder in Included Files #5

Closed
glitchroy opened this issue Mar 16, 2019 · 2 comments
Closed

Mandatory "Fonts" folder in Included Files #5

glitchroy opened this issue Mar 16, 2019 · 2 comments
Labels
bug 😅 Juju did a bad thing

Comments

@glitchroy
Copy link

With scribble_init_start(), a font directory needs to be specified, even if only sprite fonts are ever used. Furthermore, the directory has to contain at least one file.
The given error (Line 22 in scribble_init_start()) outputs an unrelated and, at least on my system, not existing folder in AppData as the problem (using game_save_id).

I solved this error temporarily by adding a "Fonts" folder and a dummy file to my included files.

Specs: GMS2 v2.2.1.375, Runtime 2.2.1.287, Windows 10 1809

@JujuAdams
Copy link
Owner

JujuAdams commented Mar 25, 2019

Probably an over-eager check for the directory's existence on my behalf; "...the directory has to contain at least one file" is likely GM not creating the directory when running the game if the directory contains no included files. Simple enough fix - shall address this later today with any luck.

@JujuAdams
Copy link
Owner

Fix was to change a forced error to a warning message instead. This warning message, combined with file existence checks in scribble_init_end(), will suffice to warn the developer if the directory is missing.

Fix is available in dev branch, or you can manually implement the two-line fix yourself: 807946e

@JujuAdams JujuAdams added the bug 😅 Juju did a bad thing label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 😅 Juju did a bad thing
Projects
None yet
Development

No branches or pull requests

2 participants