Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: CommanderDJ on October 04, 2010, 07:22:36 pm

Title: Campaign editor problem...
Post by: CommanderDJ on October 04, 2010, 07:22:36 pm
Hello all,
My mini campaign is in its final stages and as all the missions are more or less done, I want to put them all together into a campaign file, but when I try to do so, the missions won't move from the missions list into the campaign tree. Sadface. I've read this article (http://www.hard-light.net/wiki/index.php/Campaign_Editor) as well as this one (http://www.hard-light.net/wiki/index.php/Editing_a_mission_in_a_text_editor), but they don't seem to offer any help. What am I doing wrong? If you need any additional info, please let me know.
Thanks for your help,
CommanderDJ
Title: Re: Campaign editor problem...
Post by: karajorma on October 04, 2010, 07:26:16 pm
Press CTRL when you click on the campaign tree same as you would to place a ship in regular FRED.


A couple of years ago this one phased me too. :p
Title: Re: Campaign editor problem...
Post by: Shivan Hunter on October 04, 2010, 10:14:05 pm
Is it just me or is that a really crazy design mechanic? It's almost like they use the same code for placing a mission in the campaign editor and placing a ship in regular FRED.

Hmmm...

You know, knowing FRED I wouldn't at all be surprised. :shaking:
Title: Re: Campaign editor problem...
Post by: karajorma on October 04, 2010, 10:46:24 pm
Actually it makes a hell of a lot of sense. You wouldn't want to click on the mission tree and have it add a new mission every time so the only other alternative without having an add mission button would be to make it drag and drop. Which wasn't that common in 1998 when FRED (the basis for FRED2) was developed.

As long as you remember to press CTRL it's actually the quickest method. :D
Title: Re: Campaign editor problem...
Post by: CommanderDJ on October 05, 2010, 09:39:45 pm
Well, I changed the wiki page for the campaign editor to mention the CTRL thing.

I didn't want to start a new thread, so I'll just ask another (slightly unrelated) question here:

I'm using a few campaign-persistent variables to carry over the player's ammo counts between missions. So I created these variables in the first mission, then in the second mission when I try and use the set-secondary-ammo SEXP and set the ammo count with the variable, I get a crapload of errors and then FRED refuses to load the mission. What am I doing wrong?

And no, I can't simply make it a red-alert mission because the first mission is already a red alert mission and in the second one the player spawns with no weapons at all if I do that. Halp?
Title: Re: Campaign editor problem...
Post by: karajorma on October 06, 2010, 12:14:12 am
I think I'll need more information than "a crapload of errors" Actually posting the first error would be a good start.
Title: Re: Campaign editor problem...
Post by: FUBAR-BDHR on October 06, 2010, 12:19:55 am
Run debug FRED and post the FRED2_Open.log from the data directory.
Title: Re: Campaign editor problem...
Post by: CommanderDJ on October 06, 2010, 02:15:41 am
Hey guys,
Sorry to keep changing things like this. The above problem is no longer relevant. I'm getting something worse now. When I try and play my first mission, most of the ships in it don't show up at all. Like, they're not there. When I looked in FRED, I saw that their arrival and departure cue windows had been grayed out. Like, fully grayed out. I'm unable to change them at all. Is there something I can do to reverse this or will I have to change them all back manually in Notepad? (Btw, in Notepad, both the arrival and departure cues of the affected ships are for some reason set to false). I have no idea what I did that caused this to happen.
Title: Re: Campaign editor problem...
Post by: FUBAR-BDHR on October 06, 2010, 02:41:25 am
If they are part of wings you need to set the wings not the ships.
Title: Re: Campaign editor problem...
Post by: CommanderDJ on October 06, 2010, 04:07:35 am
The wings arrival cues were fine, but despite Alpha wing's being set to "true", none besides the player appeared. I looked in Notepad, and their arrival cues there were set to false. I changed them to true and now it works. I wonder why this occurred.