• Welcome to Freedom Reborn Archive.
 

FFX 3.2 failing to initialize

Started by apfarmakis, May 30, 2007, 01:02:39 AM

Previous topic - Next topic

apfarmakis

After making a few built-ins, FFX simply fails to initialize. Initially, I thought I had maxed out the number of built-ins, but, based on the script.log, there seems to be something else happening. Here's the script.log entry:


Traceback (innermost last):
  File "C:\Documents and Settings\Peter Farmakis\Local Settings\Application Data\Irrational Games\Freedom Force vs the 3rd Reich\temp\ia_all.py", line 50, in OnPostInit
    SetupFFXSkirmish()
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\m25skirmish.py", line 104, in SetupFFXSkirmish
    ffx.FFX_InitSkirmish()
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\ffx.py", line 270, in FFX_InitSkirmish
    initialise(1)
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\ffx.py", line 407, in initialise
    FFX_Transformers = getBuiltinTransformers()
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\ffx.py", line 741, in getBuiltinTransformers
    fxDat = datfiles.Campaign_ReadFX()
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\datfiles.py", line 1242, in Campaign_ReadFX
    pType = ord(npr[375])
IndexError: string index out of range
initialising FFQ_initialiseExtras()
FFX_UpdateSun: getting default sun
FFX_UpdateSun: setting = (-140.0, 70.0, 1.0, 0.800000011921, (0.699999988079, 0.600000023842, 0.600000023842))
Traceback (innermost last):
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\ffx.py", line 666, in initAttribs
    object=initialiseChar(object)
  File "E:\Games\Freedom Force vs The 3rd Reich\.\ffx32_DC\missions\scripts\ffx.py", line 800, in initialiseChar
    for temp in FFX_Transformers:
NameError: FFX_Transformers
Plugin 'firehydrant' OnPostInit() called
Plugin 'zombie' has no OnPostInit()
Plugin 'freeroam_keepbuildingdamage' OnPostInit() called
Plugin 'm25ai_lowjumper' has no OnPostInit()
Plugin 'm25ai_realitymanipulation' has no OnPostInit()
Plugin 'cutscene_power' has no OnPostInit()
Plugin 'm25enc_opendoor' has no OnPostInit()
Plugin 'm25enc_simplechoice' has no OnPostInit()


I tried deleting a few unnecessary FX and that seemed to do the trick but now nothing. Any help would definitely be appreciated.

stumpy

Had you made other changes to the fx.dat for the mod? It's possible the FX reading code is getting confused by an entry in your fx.dat for that mod. I will PM you an email address and if you send me that DAT file, I will see if I can spot the trouble.

[edit]I had written fx.py instead of fx.dat.  :doh:[/edit]

stumpy

(I haven't heard back, so I am assuming the file I sent isn't giving any trouble.)

The first error is caused by some "garbage" left in the DAT file when adding/removing FX with FFEdit. It is probably fixable with FFEdit's defrag functions, but I rewrote the FX-reading routine in datfiles.py so that it is more careful, anyway.

Here is the link for the udated datfiles module (v0.253). It is a drop-in replacement for previous versions and goes in the ..\Missions\Scripts folder for any mod.