Condor2Nav for Condor2

Moderators: Uros, Tom, OXO

Post Reply
J27Alpha
Posts: 5
Joined: Sun Jan 10, 2016 9:26 pm

Condor2Nav for Condor2

Post by J27Alpha » Fri Mar 27, 2020 3:22 pm

Hi All,

Has anyone managed to get Condor2Nav working with Condor2? I would like to import condor tasks into XCSoar.

Error I get when running the GUI is: "ERROR: Condor Installation not found!!!"

Any advice or alternate ways to convert condor to xcsoar tasks. :D

User avatar
wickid
Posts: 2442
Joined: Mon Dec 04, 2006 7:32 pm
Location: Venlo, NL
Contact:

Re: Condor2Nav for Condor2

Post by wickid » Fri Mar 27, 2020 3:58 pm

PH-1504, KOE

xpecttrum
Posts: 1
Joined: Sun May 03, 2020 3:55 am

Re: Condor2Nav for Condor2

Post by xpecttrum » Wed Jun 10, 2020 4:02 am

ERROR: Condor installation not found !

That was happening with me and I realized that it happens when you have only Condor2 and not Condor1 installed.

Found the issue in condor2nav code, as it looks into registry to find the installdir:

bfs::path condor2nav::condor::InstallPath()
{
HKEY hTestKey;
if((RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\Condor", 0, KEY_READ, &hTestKey)) == ERROR_SUCCESS) {
DWORD bufferSize = 0;
RegQueryValueEx(hTestKey, "InstallDir", nullptr, nullptr, nullptr, &bufferSize);
auto buffer = std::make_unique<char[]>(bufferSize);
RegQueryValueEx(hTestKey, "InstallDir", nullptr, nullptr, reinterpret_cast<BYTE *>(buffer.get()), &bufferSize);
bfs::path condorPath{buffer.get()};
RegCloseKey(hTestKey);
return condorPath;
}
else
throw EOperationFailed{"ERROR: Condor installation not found!!!"};
}

----
For me the solution was to execute "regedit" and manually add an entry in:

HKEY_CURRENT_USER -> Software -> Condor (new keymanually created) ->InstallDir (new REG_SZ)

---> right click in "Software" then "NEW" then "KEY" to create Condor
---> right click in Condor new key chain (valor de cadeia) name it InstallDir and give a new value to where your Condor2 is. Ex.: C:\Condor2



Hope it helps

User avatar
Bre901
Posts: 1800
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: Condor2Nav for Condor2

Post by Bre901 » Wed Jun 10, 2020 7:48 am

That may solve one issue, but as condor2nav hasn't been updated since 2012, you will have to update by yourself all the .csv files needed
See there :
viewtopic.php?f=19&t=10510&p=155882&hil ... av#p155882
viewtopic.php?f=29&t=17709&p=155360&hil ... av#p155360

I would forget about condor2nav and follow wickid's suggestion above (please note that my opinion is biased as I'm the author :wink: )
CN: MPT — CondorUTill webpage: https://condorutill.fr/

Post Reply