Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TopAce on January 31, 2004, 02:14:51 pm

Title: Explain me this random operator
Post by: TopAce on January 31, 2004, 02:14:51 pm
I noticed that the 'rand' integer disappeared from the lists of usable SEXPs. FRED_open yells at me when it sees a 'rand' integer which I implemented into the mission using FRED_retail.
So how about this 'rand' thing? What do you know about it?
Title: Explain me this random operator
Post by: Bobboau on January 31, 2004, 02:17:49 pm
hmm, someone broke something, I thought this got fixed
Title: Explain me this random operator
Post by: karajorma on January 31, 2004, 05:03:09 pm
Just tried it. He's right. It's not in the menu in either the Open GL version or the 20th Jan build.
Title: Explain me this random operator
Post by: Goober5000 on January 31, 2004, 05:34:27 pm
Confound it, this was fixed.  Post it in Mantis, along with your mission.
Title: Explain me this random operator
Post by: TopAce on February 02, 2004, 03:28:15 pm
I am not posting that mission. The mission is not the problem.
Any missions with the rand SEXP would fail.
Just update it in the new build.
Title: Explain me this random operator
Post by: Goober5000 on February 02, 2004, 06:33:58 pm
:wtf: TopAce, if you don't tell me what the problem is, I can't fix it. :rolleyes:

Post the mission, or if you don't want to give the mission away, just post the sexp that's causing problems.
Title: Explain me this random operator
Post by: Bobboau on February 02, 2004, 10:23:30 pm
uh, the rand sExp, just run any mission that has that sExp in it and see if it complains in debug
Title: Explain me this random operator
Post by: karajorma on February 03, 2004, 06:21:11 am
It's completely missing from the SEXP menu too. It's like it never existed at all! :)

Topace stop calling rand an integer. It's not. It may output one but rand itself isn't one. :)
Title: Explain me this random operator
Post by: Deathstorm V2 on February 03, 2004, 07:08:39 am
I've had this problem ever since 3.5.5_e (the first one with the extended thruster trails).  If I want to play the main FS2 campaign, I have to go back to 3.5.1.
Title: Explain me this random operator
Post by: TopAce on February 03, 2004, 02:35:20 pm
Quote
Originally posted by Goober5000
:wtf: TopAce, if you don't tell me what the problem is, I can't fix it. :rolleyes:
...


1. the rand operator is not in the list of available SEXPs.
2. FRED yells at me when it sees a rand operator used.
3. I think the game works only with the lower value of the rand. But as far as I can remember, it doesn't complain at you.