Open withmorten opened 3 years ago
the windows stuff is very untested, I don't have windows unfortunately.
it seems like voobly might be changing the installation path set in the registry?
but it should pop up a (very ugly) file dialog asking you to set the path manually, does that work?
I should probably have made it check in the folder it is running from too, though, I feel a bit dumb for not doing that :p
This is still broken. I believe it works with wine when using a linux-style path
/home/user/.wine/c_drive/captialization matters
but does not work with Windows style
C:\Program Files (x86)\CaPiTaLization does not matter\AOE2
Also, the registry locations are incorrect, at least on 64-bit Windows 10
Failed to open registry group SOFTWARE\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0 (getRegistryString C:\projects\freeaoe\src\global\Config.cpp:58)
The correct location:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\DirectPlay\Applications\Age of Empires II - The Conquerors Expansion Trial\Path
I would also recommend leveraging Steam's Registry for the 2013 HD version:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 221380\InstallLocation
Now I might be stupid, but even though I'm running it in my aoe2 folder, it won't accept it as a valid installation, and complains about no Data Path being set ...
←[01;33mFailed to get key InstallationDirectory from SOFTWARE\Microsoft\Microsoft Games\Age of Empires II: The Conquerors Expansion\1.0 ←[0m←[2;37m(getRegistryString C:\projects\freeaoe\src\global\Config.cpp:69)←[0m ←[01;33mFailed to resolve game path '' ←[0m←[2;37m(Config::setValue C:\projects\freeaoe\src\global\Config.cpp:363)←[0m ←[01;33mFailed to resolve game path 'G:\Program Files\age2\Voobly' ←[0m←[2;37m(Config::setValue C:\projects\freeaoe\src\global\Config.cpp:363)←[0m ←[01;33mfailed to load: No data path set No error ←[0m←[2;37m(main C:\projects\freeaoe\src\main.cpp:216)←[0m
This is the log output ... which tries to pull something out of my voobly aoe2 dir? Which still doesn't work, even if I put the exe in there.
Any ideas?