News:

Happy 20th, FFvT3R!

Main Menu

M25 AI not working anymore...

Started by Mangler44, December 15, 2009, 01:33:36 AM

Previous topic - Next topic

Mangler44

 :doh:

Not sure what I fubbed up but the M25 watch mode in game no longer works.  I have uninstalled and reinstalled everything, and the watch mode worked till I transferred all my custom heroes, FX and sounds.  Would anyone have some input as to what I should look into to get this AI functioning again?  *edit* It appears that no M25 ai is working in game now.

I enjoy sitting back and watching the carnage as the super beings annihilated the city.  Any help in this matter would be most welcome.


Additional info...
I have FFX 3.3 as well as other community utilities for modding.  The only editing I have done to the game has been installing custom meshes, FXs and sounds.

GogglesPizanno

Here's a stupid question, but when you reinstalled, are you using the FFX shortcut to start the game?
If thats not it, it might help if you posted your script.log after trying a game and having it not work.

It's located in the root game directory.

Mangler44

There are no stupid questions boss.  I think my issue may be mere "user error". 

I am using the FFX shortcut and here is the Script file you requested.

------------------------------------------------------------
>>> system/init.py executed
>>> system/localinit.py executed
>>> system\tredir.py executed
loading datfiles version 0.256000
loading cshelper ...
Starting ffx.py v. 3.3.1 build 0; branch = main release update
Loading m25ai.py v. 3.3.0 build 3; branch = Gold v.3.3 with Patch
importing missionobjvar.py v1.20
importing MLOG Reader 1.0.23
Starting General Utilities 1.0.1
missionobjvar(FixLongs): Fixing overflow issue with <SCSTATE_BUOYANT>
missionobjvar defining functions for Campaign play.
Loading m25cutscene.py v.3.2.0 final; May 27, 2007
CustomHeadCurrentTime 1260839759.516000
Starting Height Check module 1.4
Starting System Utilities 1.5
OBJECTS_HEIGHT: 604 entries
NIF_OBJECTS: 482 entries
BUILDINGS_IN_OBJECTS_DAT: 30 entries
BUILDING_DIMENSIONS: 30 entries
Starting skXMapInfo.py  v 0.79 beta
skXMapInfo: m25ai available
Loading m25aiopt.py v.3.2.0 final; branch = swingman 4
FFX Mission Plugin 'firehydrant' imported
FFX Mission Plugin 'zombie' imported
Loading freeroam_keepbuildingdamage.py v.1.0.0 build 0; branch = main
FREEROAM_KBD: initialized
FFX Mission Plugin 'freeroam_keepbuildingdamage' imported
FFX Mission Plugin 'm25ai_lowjumper' imported
FFX Mission Plugin 'm25ai_realitymanipulation' imported
FFX Mission Plugin 'cutscene_power' imported
Loading     m25enc_OPENDOOR.py v.1.0.0 build 0; branch = main
Loading m25enc.py v.3.2.0 July 27, 2008
FFX Mission Plugin 'm25enc_opendoor' imported
Loading     m25enc_simplechoice.py v.1.0.0 build 0; branch = main
FFX Mission Plugin 'm25enc_simplechoice' imported
Starting Built-In Function Wrapper 1.5
('Object_CalcPrestige', 'js')
sk: missionobjvar already loaded; resetting mission type to skirmish for mission and object vars
missionobjvar.SetFunctionsByMissionType: isCampaignMission=0, long variable cache has already been written to.
__MISSIONVARS = {'_event_freeroam_initmission': [['FreeroamKBD_StartMission', 0]], '_event_pstory_cutsceneline': [['CutscenePower_CheckPower', 1]], 'heightcheck_sampling_default': (1, 8), '_event_freeroam_exitmission': [['FreeroamKBD_EndMission', 0]]}
__OBJECTVARS = {}
missionobjvar defining functions for Rumble Room play.
ffx3\Missions\Scripts\sk.py importing FFX
ffx3\Missions\Scripts\sk.py loaded
>>> C:\Users\test\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\battle.py executed
>>> C:\Users\test\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\danger.py executed
>>> C:\Users\test\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\battle.py executed
>>> OnReceiveSelectedEnemies(('custom_vil_0', ))
try to spawn custom_vil_0
sk.SpawnEnemy: energy for _skcustom_vil_001 (hercules) changed from 9 to 9
MLOG_Init(keepRunningModules=0): starting up
mlogreader.MLOG_Init: current mission = 'MP_AIRFIELD'
initialising FFX: skirmish=1
numberStr=46
storing hero_0: id_1,-46
numberStr=47
storing hero_1: id_2,-47
Traceback (innermost last):
  File "C:\Users\test\AppData\Local\Irrational Games\Freedom Force vs the 3rd Reich\temp\battle.py", line 15, in OnPostInit
    FFX_InitSkirmish()
  File "C:\ff\.\ffx3\missions\scripts\ffx.py", line 267, in FFX_InitSkirmish
    initialise(1)
  File "C:\ff\.\ffx3\missions\scripts\ffx.py", line 403, in initialise
    FFX_Transformers = getBuiltinTransformers()
  File "C:\ff\.\ffx3\missions\scripts\ffx.py", line 735, in getBuiltinTransformers
    fxDat = datfiles.Campaign_ReadFX()
  File "C:\ff\.\ffx3\missions\scripts\datfiles.py", line 1243, in Campaign_ReadFX
    pType = ord(npr[375])
IndexError: string index out of range
! GetMapInfo
initialising FFQ_initialiseExtras()
FFX_UpdateSun: getting default sun
FFX_UpdateSun: setting = (-40.0, 30.0, 1.20000004768, 1.0, (0.800000011921, 0.5, 0.20000000298))
Traceback (innermost last):
  File "C:\ff\.\ffx3\missions\scripts\ffx.py", line 662, in initAttribs
    object=initialiseChar(object)
  File "C:\ff\.\ffx3\missions\scripts\ffx.py", line 794, 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()

---------------------------------

Whether you or anyone can help or not, I appreciate your time.

M25

FFX, and not just the AI, appears to be choking on the fx.dat file.  Something might have happened to it when you were adding custom FX.  Try replacing the fx.dat file with the one that comes with FFX and see if that works.


Mangler44

It appears you are right M25.  I installed FFX into a new testing dir and it functioned as it should.  I then copied over my new edited FX.dat, Sound.dat and the directories needed for my new fx I had added into this new FFX install.  The watch mode still worked. 

So I deleted my old FFX dir and copied this new FFX dir in its place. This fixed my original install and all is working once more.  Your input in this matter has forced me to learn more about the workings of FFX and its components.  Maybe this post will help others with little querks that can creep up.

Thanks again M25 and GogglesPizanno for your time.