the error I hit was when launching a new skirmish against the AI (CD version) on a ludicrous sized map.
AI Script Error
Player 2-8
File: elite wonder rush.per2
Line 2486: ERR2005: Invalid Identifier
I fixed this by modifying the lines in two AI files (make sure you create a copy of those 2 files so you have backup copy, before modifying them), that the error mentions each time a new game gets launched as you perform the below procedure.
at first the error mentioned line 2486. once i’d modified that line in the file, a subsequent line in that same file errored. all of them in “elite wonder rush.per2” located in “C:\Program Files (x86)\Steam\steamapps\common\AoE2DE\resources_common\drs\gamedata_x2”
modifying them all one by one, all of those error lines seemed to have the same thing in common, they were (something-blah < something-wrong). i suspect the something-wrong parameter is not defined properly elsewhere amongst the collection of various AI files, and I have no clue how or where to address that.
instead, i modified each line mentioned in the error, from…
(something-blah < something-wrong)
I changed them to…
(something-blah <= 0)
ie: simply replace the something-wrong parameter with “= 0” after the “<”, and delete the something-wrong parameter)
saved the file, then i re-ran a new skirmish game, a new line number was erroring at a later line number in the file. repeated the same adjustment to that newly mentioned error line. it eventually mentions a second AI file called “elite ai petersen rules.per2” located in “C:\Program Files (x86)\Steam\steamapps\common\AoE2DE\resources_common\drs\gamedata_x2”
so i did the same thing to the error lines in that second AI file as well. I think there were 6-8 lines in total that I had to modify all up in two AI files, to get this working. I’ve only watched AI villagers for a few minutes, and they seem to be acting normally now. thought I’d share this around the community (in case it actually works for a full length skirmish game. about to try one now.
update: just finished a full skirmish, AI seemed to behave normally. starting new games works fine. but if you save your skirmish, and try to load the saved game, it will crash.