Author Topic: end-mission SEXP *already* in Freespace??  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
end-mission SEXP *already* in Freespace??
From sexp.cpp...

Code: [Select]
sexp_oper Operators[] = {
...
{ "end-misison-delay", OP_END_MISSION_DELAY, 1, 1, },
...
}

(sic)

and then...

Code: [Select]
// sexpression to end the mission after N seconds!
void sexp_end_mission_delay( int n )
{
//int delay;

//delay = atoi(CTEXT(n));
//mission_parse_set_end_time( delay );
mprintf(("Not ending mission -- end-mission sexpression no longer works!\n"));
}


:wtf: ???

EDIT: mission_parse_set_end_time ( int ) is defined in missionparse.h but never implemented.  Maybe the reason :v: removed it is because whoever set up the SEXP list made a typo?? :wtf:
« Last Edit: November 21, 2002, 03:50:12 pm by 561 »

 

Offline Sesquipedalian

  • Atankharz'ythi
  • 211
end-mission SEXP *already* in Freespace??
I don't think so.  The bit in quotes where the misspelling is, iirc, won't have any effect on the functioning of the sexp, just on how it appears when listed in Fred.  The problem with this sexp is that there is not really any operational code in it.  The bits that are commented out don't actually do anything, but look (at least, to my largely untrained eye) like they were merely setting up for doing something that never was completed.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

The Scroll of Atankharzim | FS2 syntax highlighting

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
end-mission SEXP *already* in Freespace??
That's exactly what's going on there, Sesq. It looks like there was more code there at one point and they removed it.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
end-mission SEXP *already* in Freespace??
I think that function used code that was specifically made for testing or for some special build. The function involved no longer exists so that code was disabled. (That might be a good place to put real end mission code though. And I've posted code that I think would do it in other threads, but I can't really try it out myself, unless I manage to find a copy of MSVC 6 I can get.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
end-mission SEXP *already* in Freespace??
I've got MSVC6. ;)

I'm working on ballistic primaries right now, but I might be able to try that as well.  Or you could save me the time of sorting through the source code and just tell me specifically what code to put in where, and I'll add it and test it. :)

  

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
end-mission SEXP *already* in Freespace??
I posted the code in the is_tagged thread, (In the first page of it.) which was copied from the original end-mission SEXP thread. That code's been available a while, just nobody's done anything with it yet to put it in there and test it. Don't know how we could do the delay part of the original SEXP, but the code could be pasted into the end_mission SEXP shell (commenting out any old code still in it) and since it's Volition code I copy/pasted from elsewhere, it ought to work. Removing the delay from the SEXP (unless someone can find a way to do it) and unhiding the SEXP from FRED2's list would allow it to be used in FRED2. (Doing this would require recompiling both FS2 and FRED2 to completely test it.)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers