Jump to content


Replying to AI troubleshooting


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

thudo

Posted 29 July 2019 - 05:37 PM

I think you meant "sistersbuildbasestrategy.ai"  as this should be impacting only ONE faction... Sisters... don't want to over-complicate things of course.

 

Btw, if its a loader issue you'll likely start not loading the Unitstats.ai and get something more close to:

CpuManager: No unit stats available for: ultra_marine_squad_builder!!! Using default tactic...
Warning: ultra_marine_squad_builder has no unit strength!
 *ALERT: MilitaryManager:Update() threw exception (lua runtime error)
  Lua             Core/cpu_manager.ai            Ln 1564 (?)
  Lua             Core/cpu_manager.ai            Ln  419 (Initialize)
  Lua             DATA:AI/default.ai             Ln  115 (InitializeAI)
  main            DATA:AI/default.ai             Ln  133 ((null))
Error loading script file 'DATA:AI/default.ai' for race 'ultra_marine_race'!

Gambit

Posted 29 July 2019 - 05:30 PM

I also suggest you should look VERY CAREFULLY into the loader.ai...

And then into chaosbuildbasestrategy.ai, commenting HUGE function parts... I would only keep that ChooseBuildProgram.


thudo

Posted 29 July 2019 - 05:14 PM

Check then the syntax in both your Sisters' Infantry and Vehicle tactics.

 

Also, you have to ask yourself: what is different to your custom Sisters' mod compared to the Adv. Sisters AI made for vanilla?


Moreartillery

Posted 29 July 2019 - 05:04 PM

Yer commenting wrong... use --[[ ]] to omit large sections of code. Start inside the CreateTactic() section in your loader.ai..

 

You likely have a bad tactic file loading.. this is covered in the Tut.

I tried it without the tactics, thats not the cause.


thudo

Posted 28 July 2019 - 08:59 PM

Yer commenting wrong... use --[[ ]] to omit large sections of code. Start inside the CreateTactic() section in your loader.ai..

 

You likely have a bad tactic file loading.. this is covered in the Tut.


Moreartillery

Posted 28 July 2019 - 06:26 PM

You do not need the log file.. the error you got is explained in the tut how to then explore and solve.

 

ie.MilitaryManager:Update() errors can be generated in specific circumstances: those are now outlined for you in that part of the AI tut.

All its says is theres a syntax error which I've not been able to find. And I can't go commenting out sections in the ai without creating new errors.


thudo

Posted 28 July 2019 - 03:49 PM

You do not need the log file.. the error you got is explained in the tut how to then explore and solve.

 

ie.MilitaryManager:Update() errors can be generated in specific circumstances: those are now outlined for you in that part of the AI tut.


Moreartillery

Posted 28 July 2019 - 03:24 PM

You really don't need us anymore because of THIS. :party:

 

I am creating a massive DoW1 Tut to ensure "best practices" are followed so you do not run into these issues.

I read that but the log file doesn't tell me anything useful in this case.


thudo

Posted 28 July 2019 - 02:45 PM

You really don't need us anymore because of THIS. :party:

 

I am creating a massive DoW1 Tut to ensure "best practices" are followed so you do not run into these issues.


Gambit

Posted 28 July 2019 - 11:40 AM

There is only one way to find the culprit, brother .

The good-old way of commenting (--[[]]) parts of the code.

 

The error above (MilitaryManager:Update() threw exception) is not indicative, so there is a lot that you must check.

Start from TOTALLY disabling the tactics, so that only the 4 basic AI files are loaded.

 

 

Note last, that in some rare cases similar issues CAN be the result of AE inconsistencies...


Review the complete topic (launches new window)