Game Breaking Bug - Enemies not taking their turn

Post Reply
Sylvester
Posts: 26
Joined: Sun Jan 22, 2017 9:09 am

Game Breaking Bug - Enemies not taking their turn

Post by Sylvester »

I started a swarming mission with a full squad. The first pod is patrolling just fine but the others weren't. They stopped moving so I hacked the Lamp Post near them and I chose the "Central Command" reward to take control of all the robotic enemies. I had 5 drones fall under my control. The squad was then revealed.

But the enemies stopped acting at all. They would not take turns, the game would hang for a while on ALIEN ACTIVITY every time. Tried reloading a save and it didn't work. I restarted the game and loaded a save before the mission and it seems fine. What makes this a very bizarre bug is how it basically corrupted the save, enemies would not move from thereon. Not even Reinforcements.

I can't recreate this nor do I hope it happens again but if someone else encounters enemies just shutting down please post here.
Alketi
Posts: 159
Joined: Sat Jan 28, 2017 3:11 pm

Re: Game Breaking Bug - Enemies not taking their turn

Post by Alketi »

I saw the same thing on a Supply Run mission yesterday. My issue was triggered by an enemy pod member catching fire while I was still concealed.

A pod began pathing and I was moving to set up an ambush. Then one of the pod members walked through flames and caught on fire. After that the entire pod stopped moving and the game behaved exactly as you described: a long pause for enemy activity with no movement. After I engaged with the pod they scattered and the rest of the mission was normal.

This sounds like a behavior bug that triggers when something affects enemies while you're still concealed.
Dr. Hatari
Posts: 2
Joined: Mon Feb 20, 2017 5:04 pm

Re: Game Breaking Bug - Enemies not taking their turn

Post by Dr. Hatari »

I've just experienced the same problem in my campaign. Second supply raid mission since the problem began, enemy units apparently have no AI. They just gormlessly stand still and don't even scamper when my soldiers reveal and begin slaughtering them. This began seemingly completely at random during a previous mission that very clearly began with animated patrols.

On a hunch I backed up my MyDocuments/Games/XCOM2/Config files, then cleared out the folder. This actually resolved the issue for me. Not only did a new mission have ordinary AI behavior, but autosaves of the supply raid that was in-progress with derped out immobile pods were immediately fixed. Enemies began moving and fighting on their turns, as normal.
tracktwo
Long War Dev
Posts: 241
Joined: Sat Jan 07, 2017 7:43 pm

Re: Game Breaking Bug - Enemies not taking their turn

Post by tracktwo »

I'm pretty sure there are at least two bugs here.

The first is the AI sometimes just stops for no reason. This has been reported basically since XCOM2 was released and doesn't appear to be mod related. When it happens you can usually just save and reload and the AI will fix itself.

The second one is also a base-game bug and occurs when an enemy takes damage while the squad is still in concealment. Usually this is because they pathed through fire (something I've tried to address but haven't been able to work out, the pathing is done in an area of the code that is mostly inaccessible to modders). When this happens the pod tries to scamper but it isn't allowed to scamper until squad concealment breaks. But while a scamper is pending *no* AI will take any actions, even the pods that aren't trying to scamper, so the entire enemy team locks up until you break concealment. Once that's done the pod will scamper and everything will go back to normal.

I've tried fixing this second one, and had a fix in 1.0. But I reverted it in 1.1 because the cure was worse than the disease: if I let the AI scamper while the squad is still concealed, activating from concealment will mean that first pod leader won't know where XCOM is and will usually flank themselves on scamper. This is because of the order in which things happen when you activate the pod: breaking concealment is one of the last things that happens. By deferring the scamper until after concealment breaks it ensures that the scampering pod can see all the XCOM soldiers they should and won't scamper into positions flanked by XCOM that are about to be revealed.

One thing I considered was only deferring the scamper if XCOM can see the pod. That'd likely fix *most* of the locked AI issues when a pod across the map happens to stumble into fire, but it'd still be a problem if you happen to watch them do it, which would be weird.
Alketi
Posts: 159
Joined: Sat Jan 28, 2017 3:11 pm

Re: Game Breaking Bug - Enemies not taking their turn

Post by Alketi »

It sounds like a vanilla bug then. The AI should never ever path into fire while on a routine patrol.

One fix, I presume, would be to make fire appear as an obstacle (high cover) to the AI when it's not in combat.
Mandurang
Posts: 18
Joined: Mon Jan 23, 2017 11:37 pm

Re: Game Breaking Bug - Enemies not taking their turn

Post by Mandurang »

Also had this bug today. It happened when I activated two 8-strong pods that patrolled near me via a flamethrower. The game paused for a split second, I thought the aliens were going to scamper, but I just regained control of my troops with all of them standing in the open. Activating additional pods had no effect - they too just stood there without taking any action.

If save+reload doesn't fix it (like it didn't fix mine), exiting the game/steam will fix the bug for sure.
Desslok
Posts: 26
Joined: Thu Jan 12, 2017 1:06 am

Re: Game Breaking Bug - Enemies not taking their turn

Post by Desslok »

I encountered this bug on a 'defend the datatap' mission.

Initially when i spawned on the map noone except my officer (specialist - spec'd completely down the right side of the officer tree) could move - and he had a yellow move only. Everyone else in the squad didnt appear to receive any action points.. The 2 8man alien pods which activated when i passed the initial turn butchered 3 of my guys who were standing in the open on a rooftop. Reloaded. same bug. Reloaded again, now i could move my units. So i decided to take advantage of where i knew the aliens came from, to my suprise the aliens now appeared to not have any actions and were stuck inplace. This happened to every pod on the map. Every alien on my next mission (some hacking mission) was also frozen.

Fast forward to now - 2 days later. Game seems to be fine using the same save file. Course, this means i'd completely exitted the game and returned.
Post Reply