Well I'm getting issues with it and its really hard to find out whats wrong with it basically i know it is something to do with something not supposed to be there or missing but i can tell what help would be appreciated (and please do not vote down that always happens to me :( ) code :
<group name="bossbotHQ" >
<visgroup zone= "10000" vis="10001 10002 10003 10004 10005" >
<suit_edge a="2" b="3" />
<suit_edge a="3" b="4" />
<battle_cell width="20" height="20" x="40" y="-88.5" z="0" />
</visgroup>
<visgroup zone="10001" vis="10001 10002 10003 10004 10005">
<suit_edge a="4" b="5" />
<suit_edge a="5" b="6" />
<suit_edge a="6" b="7" />
<battle_cell width="20" height="20" x="124" y="26" z="0" />
</visgroup>
<visgroup zone="10002" vis="10001 10002 10003 10004 10005">
<suit_edge a="7" b="8" />
<suit_edge a="8" b="9" />
<suit_edge a="9" b="10" />
<suit_edge a="10" b="11" />
<battle_cell width="20" height="20" x="49.5" y="17" z="0" />
</visgroup>
<visgroup zone="10003" vis="10001 10002 10003 10004 10005">
<suit_edge a="11" b="12" />
<suit_edge a="12" b="1" />
<battle_cell width="20" height="20" x="-18.5" y="-27" z="0" />
</visgroup>
<visgroup zone="10004" vis="10001 10002 10003 10004 10005">
<suit_edge a="1" b="2" />
<battle_cell width="20" height="20" x="-5" y="-71" z="0" />
</visgroup>
</group>
code for parser:
def createSuitPlanner(self, zone):
sp = DistributedSuitPlannerAI(self.air, zone)
another file related to that for loading the file
def setupDNA(self):
if self.dnaStore:
return None
dnaFileName = self.genDNAFileName()
self.dnaStore = simbase.air.loadDNA(dnaFileName)
self.dnaData = self.dnaStore.generateData()
self.initDNAInfo()
return None
file for the loading of the dna
def __init__(self, loader, parentFSM, doneEvent):
CogHQExterior.CogHQExterior.__init__(self, loader, parentFSM, doneEvent)
**dnaFile = 'phase_12/dna/cog_hq_bossbot_sz.xml'**
log: File "C:\Panda3D-1.9.0\python\lib\xml\sax\handler.py", line 38, in fatalError raise exception xml.sax._exceptions.SAXParseException: \phase_12\dna\cog_hq_bossbot_sz.xml:6:64: not well-formed (invalid token)
No comments:
Post a Comment