Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: FUBAR-BDHR on December 15, 2008, 01:19:19 am

Title: Ships trying to attack themself
Post by: FUBAR-BDHR on December 15, 2008, 01:19:19 am
Had this happen a couple of times now in TBP.  I get the following:

Int3(): From e:\storage\fso\fs2_open\code\ai\aicode.cpp at line 3306

Code: [Select]
if (attacker == attacked) {
Int3(); // Bogus!  Who tried to get me to attack myself!  Trace out and fix!
return;

Don't know if it's a bug or just a fluke that happens now and then.  I can play the same mission for days and not get it then all of sudden it pops up out of nowhere.  Just played a mission I played several times over the last couple of days and half an hour or so into it (and of course just when I'm about at the end) it pops up. 
Title: Re: Ships trying to attack themself
Post by: Galemp on December 15, 2008, 08:29:15 am
I wouldn't be called the EAC Ouroboros, would it?
Title: Re: Ships trying to attack themself
Post by: FUBAR-BDHR on December 15, 2008, 12:44:55 pm
Nope.  Brand new mission and only one EA cap ship in it and some thunderbolts. 
Title: Re: Ships trying to attack themself
Post by: Flipside on December 15, 2008, 12:55:01 pm
I now get visions of Alpha 2 punching himself in the chin....
Title: Re: Ships trying to attack themself
Post by: chief1983 on December 15, 2008, 02:46:33 pm
Stophittingyourselfstophittingyourselfwhyareyouhittingyourself stopitstophittingyourself
Title: Re: Ships trying to attack themself
Post by: FUBAR-BDHR on December 16, 2008, 11:37:29 am
I take it from the humorous nature of the replies that this isn't a real problem then. 
Title: Re: Ships trying to attack themself
Post by: karajorma on December 16, 2008, 01:28:50 pm
It definitely shouldn't be happening. I think one solution might be to change the Int3() to a debug log entry (or at least have one preceding the Int3(). That way we can at least check if it is always the same ship class attacking itself.
Title: Re: Ships trying to attack themself
Post by: FUBAR-BDHR on December 16, 2008, 02:56:07 pm
I have a feeling it's either an AI class thing or the good old TBP Gunship ship type.  Probably a combination of the two.  First time I saw it was right after a wing of Drakh Raiders warped in.  At least one of them had an AI of Captain instead of DH Pilot.