Posted: Sat Oct 01, 2016 4:56 pm Post subject:
AI Spy always infiltrates Bunker.
Subject description: AI bug.
I always see them they infiltrate Battle Bunkers. If not Battle Bunkers, sometimes the Service Depot. I don't get it why AI Spies are infiltrating Bunkers and Depots.
Take note that I never change anything at the Scripts so the AI Spy infiltration script should be just simply the same as anyone. Well, if I remember correctly, after creating an AI trigger that AI Spy will infiltrate Battle Lab(Since there's an unused Script for Spy that will infiltrate Battle Lab so I decided to use it), AI Spies' behavior went buggy. QUICK_EDIT
AI does not actually care if the structure is infiltrateable or not - if the script tells the Spy to enter the building, it will.
Why it is entering the wrong ones probably has to do with you tampering BuildingTypes list in rules(md).ini. The scripts refer to BuildingTypes based on their position in the list, not via an absolute ID or anything. Adding stuff to the list will shift position of entries that follow. _________________ QUICK_EDIT
You can use my AICLEAN script to output a cleaned and reorganized rules.ini, then copy just the definition lists to yours...
Then you'll see the absolute building/unit number with no gaps.
PS. if you use the translated.log output from it, you can read your entire script section to see if your targets make sense, since it shows the unit/building names... if it's wrong, then your indexes have shifted. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum