Traceback (most recent call last):
File "Sto_Custom_Continents_2_991", line 4008, in getCustomMapOptionDescAt
TypeError: list indices must be integers
ERR: Python function getCustomMapOptionDescAt failed, module Sto_Custom_Continents_2_991
Traceback (most recent call last):
File "Sto_Fractal_2_991", line 3202, in getCustomMapOptionDescAt
TypeError: list indices must be integers
ERR: Python function getCustomMapOptionDescAt failed, module Sto_Fractal_2_991
Traceback (most recent call last):
File "Sto_Terra_2_991", line 3626, in getCustomMapOptionDescAt
TypeError: list indices must be integers
ERR: Python function getCustomMapOptionDescAt failed, module Sto_Terra_2_991
ibutret=idbutton[iOption]
[iOption] = argsList
print " iOption : "+repr(argsList)
Traceback (most recent call last):
File "Sto_Fractal_2_991", line 3203, in getCustomMapOptionDescAt
TypeError: list indices must be integers
ERR: Python function getCustomMapOptionDescAt failed, module Sto_Fractal_2_991
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 <<00000000>> 0x00000000 0 + 0
1 org.python.python 0x97e1adf1 PySys_WriteStderr + 333
2 org.python.python 0x97dca6b7 PyDict_New + 1220
3 org.python.python 0x97dcaa88 PyDict_SetItem + 219
4 org.python.python 0x97dccb39 PyDict_SetItemString + 68
5 org.python.python 0x97e19780 PySys_SetObject + 90
6 org.python.python 0x97e17bd5 PyErr_PrintEx + 164
7 org.python.python 0x97e17e25 PyErr_Print + 18
8 com.aspyr.civ4warlords 0x0054fd04 FPythonMgr::CheckForPythonError() + 20
9 com.aspyr.civ4warlords 0x0055155a FPythonMgr::ICallFunction(_object*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, _object*, _object**) const + 132
10 com.aspyr.civ4warlords 0x00551688 FPythonMgr::ICallFunction(_object*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, _object*, FStringW*) const + 58
11 com.aspyr.civ4warlords 0x005519a7 FPythonMgr::CallFunction(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, _object*, FStringW*) const + 175
12 com.aspyr.civ4warlords 0x000ee4eb CyPythonMgr::callFunction(FStringA const&, FStringA const&, void*, FStringW*) + 177
13 com.aspyr.civ4warlords 0x00149669 CvStagingScreen::refreshCustomMapOptions() + 1061
14 com.aspyr.civ4warlords 0x0014890b CvStagingScreen::handleGameSettingsMessage(NetInitInfo*) + 427
15 com.aspyr.civ4warlords 0x001485c5 CvStagingScreen::handleNetMessage(FNetMessage*) + 435
16 com.aspyr.civ4warlords 0x0014373b CvMenuManager::handleNetworkMessages() + 77
17 com.aspyr.civ4warlords 0x00143779 CvMenuManager::update() + 19
18 com.aspyr.civ4warlords 0x00144eea CvMenuManager::setupGame() + 1562
19 com.aspyr.civ4warlords 0x0006462f CvApp::InitGame() + 3045
20 com.aspyr.civ4warlords 0x0005f612 CvApp::Init(HINSTANCE__*, char const*) + 1814
21 com.aspyr.civ4warlords 0x000f185f WinMain + 33
if (sys.platform == 'darwin'):
import sets
def set(arg):
return sets.Set(arg)
else:
import _winreg
def regRead(registry, path, field):
pathKey = _winreg.OpenKey(registry, path)
try:
fieldValue = _winreg.QueryValueEx(pathKey, field)
return fieldValue[0]
finally:
pathKey.Close()
def civFilePath():
if (sys.platform == 'darwin'):
try:
userFolder = os.path.join(os.environ['HOME'], "Documents")
civFolder = "Civilization IV"
if (os.path.basename(os.getcwd()) == "Warlords"):
civFolder = "Civilization IV Warlords"
finalFolder = os.path.join(userFolder, civFolder)
return finalFolder
except:
return ""
else:
try:
userFolder = regRead(_winreg.HKEY_CURRENT_USER,"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders","Personal")
civFolder = os.path.basename(regRead(_winreg.HKEY_LOCAL_MACHINE,"Software\\Firaxis Games\\Sid Meier's Civilization 4","INSTALLDIR"))
finalFolder = os.path.join(os.path.join(userFolder, "My Games"), civFolder)
return finalFolder
except:
return ""
sys.stdout.write(" iOption : "+repr(arglist)+"\n")
there should be a list like : (0,0) ; (0,1) etc and there is (0,) ; (1,) ; (2,) ... i think about that because i was thinking to replace iOption with a global variable and notice that there is no iSelection ... more than wreid that you can get a map any one time .
# -*- coding: iso-8859-1 -*-
def getNumCustomMapOptionValues(argsList):
global language
global listressmenu
global listunitsmenu
global listtechsmenu
global listtraitsmenu
idbutton=getidbutton()
[iOption] = argsList