Modding Effects.xs raises error unless mod includes dat file

:play_button: GAME INFORMATION

  • GAME BUILD #: 101.103.48086.0 (#179158)(1.1.1RC1) 23798925
  • GAME PLATFORM: Steam
  • OPERATING SYSTEM: Mac

:play_button: ISSUE EXPERIENCED

If a mod includes the file Effects.xs (with whatever code, as far as I can tell), and I try to start a game using it as a Data Mod, the game fails to start with the error message shown in the screenshot and returns to the main menu.

Games start normally if the mod also contains empires2_x2_p1.dat. But if a mod does not contain a dat file, the game should just use the base game one. Including it adds unnecessarily to mod size, and when the dat file gets updated in the future the mod will then not automatically use the new version.

:play_button: FREQUENCY OF ISSUE

  • 100% of the time / matches I play (ALWAYS)

:play_button: REPRODUCTION STEPS

  1. Create a local mod with resources/_common/xs/Effects.xs, e.g. the original file.
    (It can also contain some other xs code or even be empty. The mod can also contain some other files, but not resources/_common/dat/empires2_x2_p1.dat.)

  2. Import local mods.

  3. Single player → skirmish → choose the mod above as data mod → start game.

:play_button: EXPECTED RESULT

The game should start, using Effects.xs from the mod and empires2_x2_p1.dat from the base game.

:play_button: IMAGE

:play_button: GAME FILES (SAVE / RECORDING)

NA.