Trojan seems to always kill robots - a bug?

Post Reply
Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Trojan seems to always kill robots - a bug?

Post by Franzy »

In 1.4, Trojan seems to always kill robots and turrents, no matter how many health they have left after hack expires. It easily kills advanced hunter drones and advanced mechs on full health. I've never seen a robot to survive Trojan actually. Seems kinda strange and super-OP if it is intentional (I wonder if it works vs. Sectopods :))

I think it's a bug, because it looks like that:
- Robot loses hack effect and takes around 5 damage
- Robot gets stunned and its hp bar disappears
- At the beginning of the next alien turn robot is dead.
chrisb
Pavonis Dev
Posts: 364
Joined: Mon Feb 27, 2017 8:43 pm

Re: Trojan seems to always kill robots - a bug?

Post by chrisb »

I'll have a look at it this evening. If that's the case it's likely a bug, IIRC it should top out at 8 damage?
Aurien
Posts: 3
Joined: Thu Mar 09, 2017 9:47 pm

Re: Trojan seems to always kill robots - a bug?

Post by Aurien »

I have had this happen as well twice today one was a normal drone other was a m2 mech.
nmkaplan
Posts: 207
Joined: Thu Jan 26, 2017 5:14 pm

Re: Trojan seems to always kill robots - a bug?

Post by nmkaplan »

Add my experience to the mix as well, exactly as OP described it.

I was stealthing my way through the beginning of an Advent HQ, taking out all the turrets and solo drones from concealment with haywire/trojan.

I trojan'd a hunter drone with 8hp and it took 7 damage. I had just started to say "oh well" when the drone then blew up, seemingly for no reason.
Kyrsoh
Posts: 50
Joined: Tue Feb 14, 2017 8:53 am

Re: Trojan seems to always kill robots - a bug?

Post by Kyrsoh »

My Trojan hacker just killed an undamaged M2 Heavy MEC on Veteran (15 HP, 3 Armour) with that. It is a bug, I think.
chrisb
Pavonis Dev
Posts: 364
Joined: Mon Feb 27, 2017 8:43 pm

Re: Trojan seems to always kill robots - a bug?

Post by chrisb »

So I tried to spend some time debugging this and haven't really gotten far yet. Any time I try to do this in a test setup the game crashes on the enemy turn that trojan procs right near the end of the turn.

What might help is if someone could provide a tactical save after hacking but before the trojan tick occurs.
Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Re: Trojan seems to always kill robots - a bug?

Post by Franzy »

*UPDATE*
So yesterday I had a similar situation with a heavy turret. I shot it down with hywire and after a turn it took 5 damage from trojan, and as the turn ended it took ANOTHER 5 damage, leaving it with 1hp! So apparently the problem is not instakill but that damage applies twice, as the trojan runs out and once more in the end of the turn.
Aurien
Posts: 3
Joined: Thu Mar 09, 2017 9:47 pm

Re: Trojan seems to always kill robots - a bug?

Post by Aurien »

I had the problem again last night was like franzy described Trojan applied at start of the turn leaving mech with 3 hp, the mech was not targetable and died at the end of my turn, the kill animation didn't play and it just stood there for the rest of the mission, sorry no save as was an ironman game.
azarga
Posts: 25
Joined: Sun Jan 22, 2017 5:18 pm

Re: Trojan seems to always kill robots - a bug?

Post by azarga »

I like the OP trojan. When you find the lines that were causing this behavior, please specify them here, so that I could restore this bug, kthx.
:D
Frei_Ninjesus
Posts: 35
Joined: Thu Mar 16, 2017 2:15 pm

Re: Trojan seems to always kill robots - a bug?

Post by Frei_Ninjesus »

Just to add my experience: Last night I used shutdown on a Heavy Mec with 16hp, at the end of the stun it lost around 8hp so I had to actively kill it before it regained it's actions on the following turn.
Franzy
Posts: 69
Joined: Thu Apr 06, 2017 9:05 am

Re: Trojan seems to always kill robots - a bug?

Post by Franzy »

*Update*
Used hywire on a heavy mech, it took 5 damage and got stunned... than took another 5 damage on the following turn... and another 3 (killing itself) on the turn after that, all the while it was stunned. So apparently Trojan just does not wear off, ticking like a crazy dot every turn and keeping enemy stunned:)
chrisb
Pavonis Dev
Posts: 364
Joined: Mon Feb 27, 2017 8:43 pm

Re: Trojan seems to always kill robots - a bug?

Post by chrisb »

I found the bug for this. The event handler wasn't being removed properly for the TrojanVirus effect that is added to the enemy unit. It fires at the beginning of every turn, both player and enemy. The first two ticks it is ignored since the mec is still stunned or mind controlled, and the 3rd tick it applies the damage, removes AP and then removes itself completely. Because the event handler wasn't being removed, it was firing again on the player start of turn, causing more damage, so effectively it was hitting twice per turn.

Fix is in for it now, thanks for the feedback everyone!
Kyrsoh
Posts: 50
Joined: Tue Feb 14, 2017 8:53 am

Re: Trojan seems to always kill robots - a bug?

Post by Kyrsoh »

Chrisb: thank you!
wobuffet
Posts: 92
Joined: Mon Jan 23, 2017 3:09 am

Re: Trojan seems to always kill robots - a bug?

Post by wobuffet »

chrisb wrote:I found the bug for this. The event handler wasn't being removed properly for the TrojanVirus effect that is added to the enemy unit. It fires at the beginning of every turn, both player and enemy. The first two ticks it is ignored since the mec is still stunned or mind controlled, and the 3rd tick it applies the damage, removes AP and then removes itself completely. Because the event handler wasn't being removed, it was firing again on the player start of turn, causing more damage, so effectively it was hitting twice per turn.

Fix is in for it now, thanks for the feedback everyone!
Awesome! Any chance we can implement the fix ourselves?
chrisb
Pavonis Dev
Posts: 364
Joined: Mon Feb 27, 2017 8:43 pm

Re: Trojan seems to always kill robots - a bug?

Post by chrisb »

wobuffet wrote:
chrisb wrote:I found the bug for this. The event handler wasn't being removed properly for the TrojanVirus effect that is added to the enemy unit. It fires at the beginning of every turn, both player and enemy. The first two ticks it is ignored since the mec is still stunned or mind controlled, and the 3rd tick it applies the damage, removes AP and then removes itself completely. Because the event handler wasn't being removed, it was firing again on the player start of turn, causing more damage, so effectively it was hitting twice per turn.

Fix is in for it now, thanks for the feedback everyone!
Awesome! Any chance we can implement the fix ourselves?
With a mod maybe, it required implementing a function in X2Effect_TrojanVirus
Post Reply