jdog5000
Revolutionary
Alright, the first one I figured out ... the code wasn't hardened against a civ having no unit type defined for a certain class. If that sounds familiar, I fixed this same thing in RevUtils a month or so ago ... should have brought the change over to here as well 
The second one I don't understand ... there was a logic bug there, but not one that would cause an error. The code tried to look up what was stored under "SpawnFromRevolt" in the "Revolution" dictionary held using SdToolKitCustom ... this item doesn't exist, it should have read "SpawnList", the other key is never set by anything. My custom version of the SdToolKit always returns None when the key isn't found and None is checked for on that line. I've fixed the logic bug, but I can't see why this would cause an error.
Caesium: Are you using my copy of SdToolKitCustom.py or perhaps another one some how? That's the only thing I can see which could cause an error.
Here's what the sdObjectGetVal function should look like:
A file fixing the first bug and the logic bug at the 2nd bug location is attached, I'll re-upload the mod once the cause of the second crash is sorted out.

The second one I don't understand ... there was a logic bug there, but not one that would cause an error. The code tried to look up what was stored under "SpawnFromRevolt" in the "Revolution" dictionary held using SdToolKitCustom ... this item doesn't exist, it should have read "SpawnList", the other key is never set by anything. My custom version of the SdToolKit always returns None when the key isn't found and None is checked for on that line. I've fixed the logic bug, but I can't see why this would cause an error.
Caesium: Are you using my copy of SdToolKitCustom.py or perhaps another one some how? That's the only thing I can see which could cause an error.
Here's what the sdObjectGetVal function should look like:
Code:
def sdObjectGetVal( ModID, object, var ):
cyTable = sdLoad(object)
try:
mTable = cyTable[ModID]
if( var in mTable ) :
return mTable[var]
else :
return None
except:
print "Error: initialize object first (getval)!"
#assert False
return None
A file fixing the first bug and the logic bug at the 2nd bug location is attached, I'll re-upload the mod once the cause of the second crash is sorted out.