Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Col. Fishguts on November 12, 2017, 11:49:24 am

Title: I accidentally the whole turret AI
Post by: Col. Fishguts on November 12, 2017, 11:49:24 am
This weekend I spent several hours trying to find a bug in my mods POFs and ships/weapons tables.
I thought I broke something in the tables, because my test ship with custom weapons behaved strangely. In the test mission I'm sitting in an invulnerable fighter and let the hostile test ship shoot at me with its turrets.
But at random intervals the test ship would stop firing at me, sometimes for up to 25-30 seconds.
First I suspected some wrong combination of weapon/subsystem flag, but I noticed that when the turrets stop firing, the threat indicator (red triangle) vanishes, which I interpret that the AI does not even attempt to shoot at me.

After swapping out all ships and weapons to retail data/POFs the bug still persisted, which confused me even more, because an equivalent test mission in retail in the main /data/missions folder did not show the bug.
In the end I discovered that it's the mission file itself that is somehow broken, because recreating the mission from scratch made the bug go away.

I have converted the mission to be compatible to vanilla FSO (should work with pretty much any build) using a Ulysses and a hostile Poseidon, and it still bugs out. It seems to happen mostly when moving around.

Here (https://drive.google.com/uc?export=download&id=1W_R9ZzP1MUiQfeCJj_Bcfz-bNudaVGrc) is the mission file, maybe someone here can tell my what I broke? Because I'm afraid I might do it again by accident. I looked at the mission in notepad but couldn't find anything suspicious.
Title: Re: I accidentally the whole turret AI
Post by: Col. Fishguts on November 12, 2017, 11:51:19 am
Here's s screen of the threat indicator I mentioned

When the ship bugs out, it completely disappears and maybe flickers on for a split second, as if the AI tries to target me but immediately changes its mind.

(https://drive.google.com/uc?export=download&id=1dPJAyYxk66lj139q9nebKlz3EqEkdBGv)
Title: Re: I accidentally the whole turret AI
Post by: Cyborg17 on November 12, 2017, 02:49:56 pm
Link to the mission file does not work.  Permissions may not be set to public.
Title: Re: I accidentally the whole turret AI
Post by: Col. Fishguts on November 12, 2017, 03:17:08 pm
Link to the mission file does not work.  Permissions may not be set to public.

Oops sorry, should be fixed now.