About xAgeSDLBoolShowHide.py:
It appears you can get two kinds of errors trying to get the SDL data...
Index errors or Key errors.
- Going to the city, you get an index error on trying to get nb01ReaderBoardVis.
Going to Watcher's Pub, you get key error on trying to get boolTreeDayLights
Gobbling blanks in SDL names is still necessary.
Changing xAgeSDLBoolShowHide.py as follows makes the tracebacks go away but probably does not solve the problem (i.e. I have no idea if the default setting leaves the object the way you want it... I will check.)
Code: Select all
if sdlName.value:
# So, apparently, Cyan's artists like trailing whitespace...
if sdlName.value.find(" ") != -1:
PtDebugPrint("xAgeSDLBoolShowHide._Setup():\tWARNING: %s's SDL variable '%s' has whitespace. Removing!" % (self.sceneobject.getName(), sdlName.value))
sdlName.value = sdlName.value.replace(" ", "")
ageSDL.setFlags(sdlName.value, 1, 1)
ageSDL.sendToClients(sdlName.value)
ageSDL.setNotify(self.key, sdlName.value, 0.0)
# Cyan's server will generate some interesting blobs... If this fails, just eat it.
# It happens because Cyan sucks, and there's nothing we can do about it.
try:
self.sdl_value = ageSDL[sdlName.value][0]
except IndexError:
self.sdl_value = defaultValue.value
except KeyError:
self.sdl_value = defaultValue.value
else:
self.sdl_value = defaultValue.value # start at default
raise RuntimeError("You forgot to set the SDL Variable Name!")
It might be worth setting a PtDebugPrint statement in the excepts so we know something is broken.
Going to check on xAgeSDLBoolRespond now.
EDIT: xAgeSDLBoolRespond produces both key and index errors as well. Ages: Watcher's pub and Er'cana