Skip to content

Incorrect font/mix loading order when using with Ares 3.0p1 #1951

@SadPencil

Description

@SadPencil

Description

This is actually an Ares bug. Whether attaching Phobos or not does not have an influence of this issue but I still reported the issue here because:
(a) since Phobos requires a modified font, one might encounter this issue choosing to directly replacing the game.fnt files in language.mix/langmd.mix file for a cleaner folder structure. It wasted me about 2 to 3 hours so I don't hope others' time being wasted like this too
(b) since this is related with MIX loading order issue, ignoring such an issue might preventing other files (like a rules file) from loading correctly in the future, or being utilized for possible cheating
(c) I hope maybe there is a way to fix this issue via Phobos.

In the community Simplified Chinese translation of RA2/YR https://github.com/Translate-with-LOVE/Ra2-zh_hans-main/, there is an additional font file placed at language.mix file:

  1. ra2.mix -> local.mix -> game.fnt
  2. language.mix (langmd.mix) -> game.fnt

For original game executable, the second font has a higher priority than the first font. After Ares 3.0p1 is applied, the first font has a higher priority.

Phobos Version

Tried the following two versions

  • DevBuild#48

  • Release0.4-RC2.

Conditions to reproduce

  1. ares_3.0p1
  2. syringe_0.7.3.0_yr

INI code

Steps to reproduce

  1. Prepare a fresh YR copy. Make sure there is no game.fnt file in game directory or other unofficial mix files.
  2. Download and replace langmd.mix language.mix file from https://github.com/Translate-with-LOVE/Ra2-zh_hans-main/releases -- a Simplified Chinese translation
  3. Directly run ra2(md).exe. There should be no missing characters that looks like in the main menu
  4. Apply ares_3.0p1 and syringe_0.7.3.0_yr. Optionally apply Phobos.
  5. Run RunAres.bat. There are missing characters that looks like in the main menu
  6. Manually remove game.fnt from ra2.mix -> local.mix. Run RunAres.bat. There should be no missing characters that looks like in the main menu

Expected behaviour

The font file should be loaded in the same order with the original game

Actual behaviour

The font file is loaded in a different order with the original game

Additional context

This screenshot indicates a wrong font order. The font file in ra2.mix is loaded (which is not supposed to)
Image

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions