Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How do I get it to accept my aoe2 installation? :D #7

Open
withmorten opened this issue Dec 22, 2020 · 3 comments
Open

How do I get it to accept my aoe2 installation? :D #7

withmorten opened this issue Dec 22, 2020 · 3 comments

Comments

@withmorten
Copy link

withmorten commented Dec 22, 2020

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?

@sandsmark
Copy link
Owner

sandsmark commented Jan 23, 2021

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?

@sandsmark
Copy link
Owner

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

sandsmark added a commit that referenced this issue Jan 23, 2021
@Lyamc
Copy link

Lyamc commented Jun 19, 2022

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants