Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Reprobator on September 28, 2009, 01:50:41 am

Title: Fs2 complains about lack of afterburner?
Post by: Reprobator on September 28, 2009, 01:50:41 am
Hi all,
I've recently run a debug build to check if everything is allright with my mod,
When i'm in mission, the engine will spam message in the debug windows :
"alpha 2 has no afterburner" etc... for all the ai assigned to a ship that have intentionally no afterburner at all,
Isn't it slowing down the game or not?

Title: Re: Fs2 complains about lack of afterburner?
Post by: FUBAR-BDHR on September 28, 2009, 02:07:56 am
This is already in Mantis.  Apparently it doesn't really do any harm but it might not be producing the 100% intended AI behavior either although that hasn't' been proven yet.  Yes it may slow down things a bit which is why I put it in Mantis in the first place but if those few instructions are slowing you down too much when running non-debug builds you probably have other issues.  

BTW it's pretty much been relegated to a something for a new programmer getting his feet wet project so it's that minor. 
Title: Re: Fs2 complains about lack of afterburner?
Post by: Reprobator on September 28, 2009, 02:34:27 am
OK thanks you for your reply, i did not noticed slowdown as i have a i7 proc. but when i noticed that in debug i just wondered if it had some impact on the performances.
Title: Re: Fs2 complains about lack of afterburner?
Post by: FUBAR-BDHR on September 28, 2009, 02:38:03 am
I really doubt it.  In debug maybe.  Anything else in the log?    

I had a long conversation with Wanderer about it before adding it to Mantis.  I only added it as a don't forget about this and have someone fix it in the next few years type of report.  Kara modified the maybe use afterburner function to just return if called from a ship without them but that only fixes about a 1/4 of the calls.  Most are made by newer glide functions (smack Sushi if you want :P)
Title: Re: Fs2 complains about lack of afterburner?
Post by: Reprobator on September 28, 2009, 06:57:42 am
I don't have any other complain in debug (well not true but i've fixed the other complain like each dockpoint should be twin etc..) but now i just got this message in debug.
Title: Re: Fs2 complains about lack of afterburner?
Post by: Sushi on September 28, 2009, 05:32:55 pm
I added a note to the Mantis entry:

http://scp.indiegames.us/mantis/view.php?id=1982

Basically, I think we should just remove the warning. IMHO it serves no purpose, and leaving it in would just force us to do stupid code gymnastics to prevent it from being triggered (the same end result). Much cleaner to do away with it entirely.