Total War: MEDIEVAL II - Definitive Edition

Total War: MEDIEVAL II - Definitive Edition

Hagemann Dec 5, 2024 @ 3:02am
I cant fight the battles
Im playing a mod and some sort of bug halted the AI, I type run_ai into the console to fix it and now all my campaign battles are instantly autoresolved.

Any ideas how to fix this?
< >
Showing 1-13 of 13 comments
Hagemann Dec 5, 2024 @ 2:54pm 
Nobody knows what im talking about? Has nobody experienced a campaign that instantly autoresolves all battles?
Wizard of Woz Dec 5, 2024 @ 6:46pm 
Looking into the console command you entered, it shouldnt have anything to do with auto resolving battles. Are you sure the checkbox isn't checked for auto resolve on the battle screen?
Also those console commands are for vanilla, you mod might work weird with them.
Last edited by Wizard of Woz; Dec 5, 2024 @ 6:59pm
Hagemann Dec 5, 2024 @ 7:04pm 
There is no battle screen, battles are instantly resolved when i attack or defend.

I was wondering if anyone had experienced the same, if I could fix it with a console command or if its a bug from the mod.
Wizard of Woz Dec 5, 2024 @ 7:27pm 
I looked at all the console commands and didn't see anything to stop auto resolve. Sounds like a bug with the mod. Or maybe the mod itself has a setting somewhere to change that. May have to edit a file depending on the mod. Might try the forum where you downloaded the mod.
Gigantus Dec 5, 2024 @ 8:14pm 
I have an inkling that you are playing a mod that is supposed to be for hot seat. In those battles get auto resolved by default. It got absolutely nothing to do with AI settings as WoW mentions.

Name and source of mod would go a long way to help here.

I think changing a setting in the mod's CFG file will solve the issue if I am right in my assumption.
Last edited by Gigantus; Dec 5, 2024 @ 8:15pm
Hagemann Dec 6, 2024 @ 2:24am 
Originally posted by Gigantus:
I have an inkling that you are playing a mod that is supposed to be for hot seat. In those battles get auto resolved by default. It got absolutely nothing to do with AI settings as WoW mentions.

Name and source of mod would go a long way to help here.

I think changing a setting in the mod's CFG file will solve the issue if I am right in my assumption.

Its Europa Barbarorum 2 and im 500 turns deep in my campaign when the AI is halted by the script i assume, but it never gets re-launched unless i write it into console. I've tried waiting for 40 min, the game is literally just paused with no AI.
Gigantus Dec 6, 2024 @ 7:26am 
There is no such script command in EBII, I worked on it for a good while and never came across something like that.

You can have scripts were battles are forced, eg after two armies have been spawned near each other. but that only ever works for that one battle.

Having said all that (AI settings have no way of forcing automatic auto resolve to start with) I am starting to think that it might be a memory (leak) issue. 500 turns is an extremely long campaign and with it comes increased memory load, like every character ever create din the game gets retained in memory and stuff like that.
And EBII already starts of with a good number of characters.

Can you run the save for a while without issues after restarting\reloading?
Last edited by Gigantus; Dec 6, 2024 @ 7:29am
Hagemann Dec 6, 2024 @ 7:58am 
Originally posted by Gigantus:
There is no such script command in EBII, I worked on it for a good while and never came across something like that.
I found halt_ai and auto_win attacker in medievalshell when i was trying to figure out why the game was frozen, except it wasnt frozen. I did not type it, its part of some script.

Originally posted by Gigantus:
Can you run the save for a while without issues after restarting\reloading?
After 2 turns the ai is halted everytime.

I have a 700 turn campaign saved as Swebos with no problems.
Last edited by Hagemann; Dec 6, 2024 @ 7:59am
Gigantus Dec 6, 2024 @ 8:00am 
autowin is the instance I mentioned where a battle is forced via script., it will only bypass the actual battle but only for that one instance. Let me check the latest script if I can find a halt_ai in there.

Edit: Yup, there is one, must have been after my time..

Found a single one (line 75468) that stops the AI for the purpose of faction re-emergence processing. and then restarts it (line 78436) when the process is finished.

Now if the restart failed then simply issuing the run_ai command as you did should get everything back to normal. And it certainly shouldn't perpetuate auto resolve, certainly not for random\manually started battles.

I'll drop a note at the dev forum to have a look into it.
Last edited by Gigantus; Dec 6, 2024 @ 8:19am
Hagemann Dec 6, 2024 @ 9:04am 
Thank you for shedding some light on it. Now that you mention it, I remember getting 3 popups telling me the Pergamon faction was destroyed and seeing 5 full stacks of rebels in that area.


Yes the source of the bug is related to Pergamon re-emerging and instantly turning to rebels. Also some those stacks are standing in a river and cant be attacked.

https://i.imgur.com/DSrJvVN.png
Last edited by Hagemann; Dec 6, 2024 @ 9:48am
Hagemann Dec 6, 2024 @ 1:34pm 
I will load an old save and cheese Pergamon to my ownership and see if that saves my campaign. Thank you for your help.
Last edited by Hagemann; Dec 6, 2024 @ 1:35pm
Hagemann Dec 8, 2024 @ 11:02pm 
The bug happened again precisely after taking ownership of Pergamon.
I guess i'll start a new campaign with patch 2.4a and hope they fixed this.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Dec 5, 2024 @ 3:02am
Posts: 13