Skip to content

Fatal Error if SMALLFONT isn't defined #24

@zhs2

Description

@zhs2

Twilight Town: A Cyberpunk FPS does not define a SMALLFONT font, which causes this mod to throw an error in \zscript\handlers\aas_logger.zs, line 78. I was able to bandaid this by making the following edit:

override void f1(String s) { Console.MidPrint(Font.FindFont("smallfont"), s, true); } // previously Console.MidPrint("smallfont", s, true);

Of course, this likely just makes the intended feature silently fail instead, so you might want to look into some checking for available fonts for use with Console.MidPrint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions