Author Topic: Fs2 complains about lack of afterburner?  (Read 1770 times)

0 Members and 1 Guest are viewing this topic.

Fs2 complains about lack of afterburner?
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?

$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Fs2 complains about lack of afterburner?
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. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Fs2 complains about lack of afterburner?
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.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Fs2 complains about lack of afterburner?
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)
« Last Edit: September 28, 2009, 02:42:23 am by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Re: Fs2 complains about lack of afterburner?
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.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

  

Offline Sushi

  • Art Critic
  • 211
Re: Fs2 complains about lack of afterburner?
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.