Author Topic: Tracking Turrets: Not working?  (Read 1366 times)

0 Members and 1 Guest are viewing this topic.

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Tracking Turrets: Not working?
Hey all!

So I'm trying to use the guidelines laid out in Axem's tutorial (http://www.hard-light.net/wiki/index.php/Tutorial_-_Directive-value_SEXP).

I want to track the number of turrets remaining on this pirate installation. As far as I can tell, I've followed the intructions properly. But it doesn't work.

The Value shown in the directive only changes once. The first time anyone destroys a turret, the value changes from 5 to 4. But any other subsequent turret destruction aren't recorded, and the directive never registers as true. I've attached a screenshot of my event for tracking the turrets.

Can someone please help me out? Did I miss something in the tutorial?

Thanks!



[attachment DELETED!! by Strong Bad]

 

Offline Galemp

  • Actual father of Samus
  • 212
  • Ask me about GORT!
    • Steam
    • User page on the FreeSpace Wiki
Re: Tracking Turrets: Not working?
Your repeat count is set to "1". That means the SEXP triggers exactly once, the first time it becomes true. You need to set it to at least 5 for this to work properly.

There may be other magic that needs to be done to prevent it from re-triggering due to the same turret being destroyed, but I'm not sure what that would be...
"Anyone can do any amount of work, provided it isn't the work he's supposed to be doing at that moment." -- Robert Benchley

Members I've personally met: RedStreblo, Goober5000, Sandwich, Splinter, Su-tehp, Hippo, CP5670, Terran Emperor, Karajorma, Dekker, McCall, Admiral Wolf, mxlm, RedSniper, Stealth, Black Wolf...

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Tracking Turrets: Not working?
Leave repeat count at 1, set trigger count to 5, set interval time to 0.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Tracking Turrets: Not working?
That magic is handled by the invalidate-argument.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Tracking Turrets: Not working?
Thanks chaps!

Ehm, how do I set the repeat count, trigger count, and interval time? Which Operator are we talking about here?

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: Tracking Turrets: Not working?
They're not operators; they're options settable on a per-event basis. They're to the right of the event list, below the new/insert/delete event buttons.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline HLD_Prophecy

  • PVD_Hope in a former life
  • 29
Re: Tracking Turrets: Not working?
Thanks, I found the options!

Will test it and make sure it works. :)

EDIT: Great, that fix solved the problem! Thanks a bunch guys. Now I can focus on balancing the mission. :)
« Last Edit: January 16, 2016, 06:59:26 am by PVD_Hope »