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.
Condor2Nav for Condor2
Re: Condor2Nav for Condor2
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
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
Re: Condor2Nav for Condor2
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 )
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 )
CN: MPT — CondorUTill webpage: https://condorutill.fr/