Openage: Game version detection fails for clean AoE II: HD + Forgotten Empires

Created on 18 Mar 2018  Â·  4Comments  Â·  Source: SFTtech/openage

The problem: when I ./run the game after a successful compilation I get this error:

Please select an Age of Kings installation directory.
Insert the index of one of the proposals, or any path:
(0) /d/msc/age2hd
> 0
converting from '/d/msc/age2hd'
WARN [py] You have installed incompatible game version(s):
WARN [py]  * Age of Empires 2: HD + Rise of the Rajas (Version 5.x)
WARN [py] You need at least one of:
WARN [py]  * Age of Empires 2: The Conquerors, Patch 1.0c
WARN [py]  * Age of Empires 2: Forgotten Empires
WARN [py]  * Age of Empires 2: HD Edition (Version 3.0+)
WARN [py]  * Age of Empires 2: HD + Forgotten Empires (Version 4.0+)
WARN [py]  * Age of Empires 2: HD + African Kingdoms (Version 4.7+)
 ERR [py] game asset conversion failed

Note that the version checker thinks that I have Age of Empires 2: HD + Rise of the Rajas (Version 5.x) but, in fact, I have only AoE 2: HD + Forgotten Empires, I do not currently own neither African Kingdoms nor Rise of the Rajas DLCs.

Workaround: there is a simple workaround, applying the following diff to openage/convert/game_versions.py "solves" the problem, forcing the module to identify my game as AoE 2: HD + FE.

https://pastebin.com/QGz9dRZV

Extra information: the below pastebin is the output of a find . on the directory $STEAM_HOME/resources/_packages/african-kingdoms, maybe a possible solution is to execute the same command on a full installation and try to compare them? I'd happily do that if someone could provide this info.

https://pastebin.com/25jigfVx

assets bug just do it python

Most helpful comment

IIRC the difference between those entries is actually the asset version, not really the expansion (v4.7 → v5.0). It's just that v5 was the release that also added Rise of the Rajas. So you're right about #788 being the core issue. If you have the Steam application installed you can switch to an older version using the Betas tab in the game's properties dialog. (4.3 works, not sure if they have any other versions listed.)

All 4 comments

Just a thought: if we fix #788 maybe we will fix this one too, and could condense some options in game_versions.py as AoE 2: HD + any DLC combination, as it seems that owning at least FE gives you the data for all other DLCs, simplifying the data conversion procedure.

IIRC the difference between those entries is actually the asset version, not really the expansion (v4.7 → v5.0). It's just that v5 was the release that also added Rise of the Rajas. So you're right about #788 being the core issue. If you have the Steam application installed you can switch to an older version using the Betas tab in the game's properties dialog. (4.3 works, not sure if they have any other versions listed.)

For future reference, there is some related work done in #989.

Any progress on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LeandroStanger picture LeandroStanger  Â·  9Comments

kevinmartinjos picture kevinmartinjos  Â·  4Comments

TakesTheBiscuit picture TakesTheBiscuit  Â·  12Comments

Vtec234 picture Vtec234  Â·  8Comments

heinezen picture heinezen  Â·  3Comments