Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Blitzerland on April 17, 2005, 03:32:13 pm

Title: SEXP Limit: What is it?
Post by: Blitzerland on April 17, 2005, 03:32:13 pm
Yeah, I know, it's been increased, but by how much ?

Search-button, you have failed me! What's the current sexp limit?
Title: SEXP Limit: What is it?
Post by: karajorma on April 17, 2005, 05:46:12 pm
3000 SEXP nodes. Up from 1500 originally.

Could be wrong though I'm going on memory :)
Title: SEXP Limit: What is it?
Post by: Goober5000 on April 17, 2005, 09:32:26 pm
Your information is 15 months out of date. :p

Code: [Select]
#define MAX_SEXP_NODES 4000 // Reduced from 2000 to 1200 by MK on 4/1/98.
// Most used nodes is 698 in sm1-10a.  Sandeep thinks that's the most complex mission.
// AL 2-4-98: upped to 1600, btm03 ran out of sexps, since campaign took a bunch
// DA 12/15 bumped up to 2000 - Dan ran out
// DaveB 9/02/99 bumped to 2200
// Goober5000 01/20/2004 bumped to 3000
// WMCoolmon 06/15/2004 bumped to 3500
// Goober5000 04/14/2005 bumped to 4000 for WCS
Title: SEXP Limit: What is it?
Post by: karajorma on April 18, 2005, 03:39:46 am
Should know better than to trust my memory. It keeps losing my things and getting me in trouble with my girlfriend :D
Title: SEXP Limit: What is it?
Post by: WMCoolmon on April 18, 2005, 04:02:06 am
Quote
Originally posted by karajorma
Should know better than to trust my memory. It keeps losing my things and getting me in trouble with my girlfriend :D


:lol: :lol: :lol:

:p
Title: SEXP Limit: What is it?
Post by: Goober5000 on April 18, 2005, 10:13:48 pm
Well, it's been updated again.  It turns out that bumping the sexp nodes had no effect because FRED was using a separate value - 1050. :wtf: So I've reduced the sexp nodes back to 3000 but defined the fred value as 2/3rds of the max sexp nodes value - in this case, 2000.  So things should work better now. :)
Title: SEXP Limit: What is it?
Post by: phreak on April 18, 2005, 10:17:27 pm
huh? :wtf:
Title: SEXP Limit: What is it?
Post by: Goober5000 on April 18, 2005, 10:32:50 pm
:lol: Okay...

1) FRED has its own sexp limit of 1050.  This applies only to the event editor.

2) Bumping MAX_SEXP_NODES affected only arrival and departure cues and goals, not events.  You were still limited to 1050 event nodes.

3) I redefined the event node limit to be 2/3rds of the sexp node limit.  This lets you use 2/3rds of MAX_SEXP_NODES for the event editor and the remaining 1/3rd for goals, arrival cues, etc.

4) Since the previous bumps had no effect, I reduced MAX_SEXP_NODES back to 3000 so the limit-bumping could start over properly.
Title: SEXP Limit: What is it?
Post by: phreak on April 19, 2005, 09:50:11 am
i know, its still odd that FRED used a different value entirely.  did you just do something like
Code: [Select]

#define MAX_EVENT_EDITOR_SEXP_NODES MAX_SEXP_NODES * 2 / 3
Title: SEXP Limit: What is it?
Post by: Starman01 on April 19, 2005, 12:06:37 pm
Don't laugh at me, but somehow I had the feeling it was something like that :D

So, let the fredding finally begin ;7 (and thanks again Goober for your effort :yes: )

Any build-links for us fred-junkies ?
Title: SEXP Limit: What is it?
Post by: Goober5000 on April 19, 2005, 03:48:11 pm
Phreak: Yeah, that's what I did.

Starman: Not yet, but one will probably appear shortly.