Author Topic: Distance SEXP problem  (Read 4246 times)

0 Members and 1 Guest are viewing this topic.

Distance SEXP problem
I'm trying to get a 'distance' operator to work correctly.

I want it to fire when the player gets within 6001 meters of a certain waypoint.

Here's the SEXP:
Event
When
_<
__distance
___Alpha 2
___Waypoint Alpha
__6001
_ship-unstealth
__Arjuna 1
__Arjuna 2

The problem is, the event's firing immediately, even though Alpha 2 (the player) is over 30,000 meters from Waypoint Alpha.  Anyone know what's wrong here?
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline Axem

  • 211
Edit: Nevermind got my symbols mixed up too. ;) Yours should work. But it doesn't... for some reason. How I have done in the past is:

->
--[Number]
--distance
----Ship 1
----Ship 2

If everything is reversed like with your's it should work too then...
« Last Edit: August 11, 2004, 02:13:49 pm by 1840 »

 
Well, it's not.  That 'should work but doesn't' is the reason I posted this.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Isn't Alpha 2 accidentally within 6 kilometers at start?

or

Is Arjuna stealth by default? You know, the 'Hidden from sensors' is not enough, it may disturb stealthing though.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 
Yes, it's stealthed by default.  If I force one of the other Shivan ships out of a similar SEXP, it's stealthed and undtectable.

There's a radar-set-max-range in force in this mission of 30K kilometers.  They're not visible on radar, even though they're targetable.  And, the ships are definitely stealthed, as I said above, but the stealthing is removed immediately by the mis-firing SEXPs.  'Hidden from Sensors' is not on at all.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Swap alpha 2 for alpha 3 (or another ship more than 6001m away) and see if it triggers it again. This may be a bug due to you not playing as alpha 1.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
It's not.  The problem was due to some operators I thought had been changed but actually were still out there, lurking to frustrate me and annoy the rest of you through me.

Thank you very much to those who tried to help me, I appreciate it and am glad that this community is nice enough to assist people with problems like this.  I'm feeling very stupid right now, because of this mess, but I hope the end product's worth it.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Put in a directive text if you want to make sure if the event really triggers so early. Just to make sure, even Alpha 2, or either of the Arjuna fighters could be the faulty component.
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 
No, no, I've already tested it and the problem was definitely with the bad operators.  Now the events are firing when they should.

I appreciate the advice, though, and I'll try to remember it if this comes up again.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline TopAce

  • Stalwart contributor
  • 212
  • FREDder, FSWiki editor, and tester
Wait, if the event fires at the right time, what's the problem?
My community contributions - Get my campaigns from here.

I already announced my retirement twice, yet here I am. If I bring up that topic again, don't believe a word.

 
Quote
The problem was due to some operators I thought had been changed but actually were still out there, lurking to frustrate me and annoy the rest of you through me.


I found and eliminated the problem already, and tested to make sure it was gone.

I had left in some operators by accident that were causing the problem because they don't work properly, but I didn't realize they were there until I took another close look at the SEXPs in question.  Because of the name (distance-to-nav) I didn't spot them until I realized that was what I needed to look for.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
did you have a waypoint specified? it should have said waypointnamehere:#... otherwise, it checks the whole path IIRC...
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 
*holds up sign*

Sign reads: See above post.
$quot;Only two things are infinite, the universe and human stupidity.  And I'm not sure about the former.$quot;
 - Albert Einstein

$quot;It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived.$quot;
- Gen. George Patton Jr.

 
My distance operator only asks for a name...

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
...

Read the walkthrough...

Spoiler:
And don't bump stuff thats already been taken care of
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

  
You think I didn't...