TAfirehawk
WoC Team Manager
And the Source Code for v2.10 is on the ViSa Website for those interested 

I'm not 100% sure why the registry settings are needed as they seem to just contain the location of the VISA directory and a version string. Given that you can easily find out the location of that directory from the module level special variable __file__ in a Python script, i.e. in say CvPath.pyTAfirehawk said:This was a question point we had and didn't get to fully test because of the 11th hour issues with the MSI updater.
I was hoping people could still install say v1.20 full and then the v2.10 patch without needing any registry settings, but if that isn't the case I just need to pull down v1.20 full and force new people to install v2.00 full.
from os.path import abspath, join, normpath
def _getInstallDir():
try:
ViSaDir = __getRegValue(_winreg.HKEY_LOCAL_MACHINE,
r"SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Warlords\VISA", "AppDir")
except EnvironmentError:
ViSaDir = normpath(join(abspath(__file__), "../../.."))
## civ4Dir = os.path.join(civ4Dir,"Warlords")
return ViSaDir
spiralx said:I'm not 100% sure why the registry settings are needed as they seem to just contain the location of the VISA directory and a version string. Given that you can easily find out the location of that directory from the module level special variable __file__ in a Python script, i.e. in say CvPath.py
Code:from os.path import abspath, join, normpath def _getInstallDir(): try: ViSaDir = __getRegValue(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Firaxis Games\Sid Meier's Civilization 4 - Warlords\VISA", "AppDir") except EnvironmentError: ViSaDir = normpath(join(abspath(__file__), "../../..")) ## civ4Dir = os.path.join(civ4Dir,"Warlords") return ViSaDir
would provide a working default for people without the registry key. You could probably add the AppDir key to the registry if the exception is thrown in fact, it's probably a good idea if you plan to use the registry for anything more later on.
PS. I've not tested that code rigourously, should work though![]()
The Swede said:The Man on my Deer Rider is pink...
spiralx said:Ah well, I didn't use the installer as I was getting 17kb/sec from the main visa site and 300kb/sec from the alternative download site which just had the RAR versions of v1.20 and v2.10
Anyway, enjoying the mod so far! It's definitely more interesting at the start as you need to hope that your initial city doesn't have any resources because you can't see them yet, not because it's actually rubbish![]()
TAfirehawk said:And the Source Code for v2.10 is on the ViSa Website for those interested![]()
Yeeha, I can now update to Warlords 2.08 and enjoy the new VISA with my changesTAfirehawk said:And the Source Code for v2.10 is on the ViSa Website for those interested![]()
riesscar said:I can't seem to access the main visa site, is the site down?
Ryan2233 said:Hi there
I installed the latest visa mod aswell as the latest patch. The only problem is when playing in the game, the main interface is not visible at all. Looking up the "options" tab from the main menu that is called up in game does not show up either. Also, the visapedia and options tabs from the main menu as the game starts up do not show up. Please can you recommend a fix for this as I am eager to try this exciting looking mod.
Thank you
V. Soma said:Do I understand it well that from 2.0 to 2.1 you don't need this registry whatever?![]()
Ishon said:After I applied the registry fix.. I can't see any units. There are red fields instead. But the interface seems to be working fine.
Ryan2233 said:The registry key issue download fixed the problem. Thanks a lot. So excited right now!