M25 AI or FFX Tactics Problem (not sure which)

Started by kiapet, December 11, 2009, 05:26:59 PM

Previous topic - Next topic

kiapet

This is an FF mod issue, not danger room for what it's worth.

I am having a problem with M25 AI tactics any time an FFX attribute, such as Earth Control is used.  First, it does not seem to find my AI entry for the character and instead tries to impose the default FFX AI for him.  Second, it gives me an error instead of successfully setting up his tactics.  The script.log from the point of spawning through the error is below.  Does anyone have any idea what I might be doing wrong in this situation?  It's driving me crazy.   :banghead: 

I tried googling the error and all it tells me is that you can't append a tuple, only a list.  But I don't really know what I did that made the list expected into a tuple.  Nothing intentional at least.

Thanks for any suggestions you guys might have.




>>> spawn('avalanche', 'villain_avalanche', 'center')
initialising avalanche
initCarriers on avalanche(villain_avalanche)
villain_avalanche
determining gender avalanche (team=0)
setting:avalanche villain_avalanche earthcontrol
setting:avalanche villain_avalanche invulnerable
SetupAI:avalanche
addFFXTactics:avalanche
['villain_avalanche', ['timer', 4, 'TEarthSpike()', 'TEarthWall()', 'TTK()']]
Traceback (innermost last):
  File ".\Data\Missions\Scripts\ffx.py", line 721, in initAttribsEvent
    initAttribsForChar(event.object,event.user)
  File ".\Data\Missions\Scripts\ffx.py", line 717, in initAttribsForChar
    m252.SetupOneChar(char)
  File ".\Data\Missions\Scripts\m252.py", line 86, in SetupOneChar
    SetupAI(c)
  File ".\Data\Missions\Scripts\m25newai2.py", line 68, in SetupAI
    addFFXTactics(char)
  File ".\Data\Missions\Scripts\m25newai2.py", line 85, in addFFXTactics
    AIExtensions.append(newTactics)
AttributeError: 'tuple' object has no attribute 'append'


M25

Have you modified m25aidata.py at all (the file where the AIs are stored)?  It looks like there is a missing bracket ]  in that file.


kiapet

Thanks for the response M25.

Sorry if this is dumb, but is this the same as m25newaidata2.py?  I have that one and yes I've probably screwed with it and messed something up.  I don't have a file called m25aidata.py, at least that I see in data or my mod folder.  I can search for it if it's different (or maybe try a clean install?)  Hopefully it's the same, in which case I will start looking for mismatched brackets or try commenting out large chunks and see if that changes things.

kiapet

FYI, I commented out the entire file (so that now it's just AIExtensions = []) and I'm still getting round parentheticals around the empty AIExtensions when I type print AIExtensions in console, as well as the tuple not a list thing.  I guess I'm going to have to do a clean install as I think some other file I have messed with must have caused the problem (unless you would have a good blind guess as to how I likely broke it in a way that would add parentheses to the entire AIExtensions list -- I have no idead).

:unsure:

kiapet

Fixed.   :thumbup:  I was playing with data structures, etc., and somehow had it reading both a primary and secondary file, which seemed to cause the problem as it's gone now.  Thanks for the help.