I've got a problem with missing UI elements when people try to play my mod on Complete Edition and this is known to be caused by missing windows reg key which is in Beyond the Sword but not in Complete Edition. This got me thinking that my problem might be solved with modified CvPath.py file which is used to find different assets folders for mods. There's section:
but I think this doesn't work if player has Civ 4 Complete Edition. So could any python guru provide me code how to set subkey value correctly if player has just normal BtS or if he has Complete Edition. Sseems simple, I just don't know what to check and I don't know what the correct path name would be for Complete Edition.
This CvPath.py file is used on other mods too and those have had same problem. People have modified their windows registry to solve this problem but that's dangerous if you don't know what you're doing. So with fixed CvPath.py file we might get a easy fix for them for this problem.
Code:
def _getInstallDir():
subkey = r"Software\Firaxis Games\Sid Meier's Civilization 4 - Beyond the Sword"
return __getRegValue(_winreg.HKEY_LOCAL_MACHINE, subkey, "INSTALLDIR")
but I think this doesn't work if player has Civ 4 Complete Edition. So could any python guru provide me code how to set subkey value correctly if player has just normal BtS or if he has Complete Edition. Sseems simple, I just don't know what to check and I don't know what the correct path name would be for Complete Edition.
Code:
def _getInstallDir():
if ( normal BtS == true )
subkey = x
return...
else if ( complete edition == true )
subkey = y
return...
This CvPath.py file is used on other mods too and those have had same problem. People have modified their windows registry to solve this problem but that's dangerous if you don't know what you're doing. So with fixed CvPath.py file we might get a easy fix for them for this problem.