Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: TopAce on May 11, 2021, 01:28:49 pm

Title: Manually moving mission events safely
Post by: TopAce on May 11, 2021, 01:28:49 pm
This has been on my mind since I started FREDding at all, but didn't post about it until now. Encouraged by Droid's "modding sucks - a realizatiƶn" thread, here is a pet peeve of mine that's been present since retail FRED.

Is it possible to making manually moving mission events up and down safe? If you use the click-and-drag to move a mission event up and down, is-event-trues/falses and some arrival/departure cues get confused. Sometimes you only have to remove two parentheses, but more often than not is-event-true "Event 1" becomes is-event-true "Event 82" for no reason and you won't notice it unless you start seeing some weird mission behavior and track down these oddities to a is-event-true that suddenly started to reference a completely unrelated event.
Title: Re: Manually moving mission events safely
Post by: karajorma on May 11, 2021, 07:42:03 pm
There's a problem with fixing this. Currently, FRED stores the events list by storing the positions of the events in the list. So obviously when event 5 becomes event 1, some of the list gets messed up. Switching to having FRED look up the name of the event might be trivial but you'd simply cause the exact same problem for anyone who has a mission with 10 events all called "Event Name"

But yeah, it's probably something that should be fixed.
Title: Re: Manually moving mission events safely
Post by: TopAce on May 11, 2021, 08:08:31 pm
I suspected there was something like that. Too bad. It's Notepad++ then.
Title: Re: Manually moving mission events safely
Post by: karajorma on May 11, 2021, 09:52:26 pm
That doesn't mean it can't be fixed. If you have all your events called Event Name, you were kinda asking for trouble anyway.
Title: Re: Manually moving mission events safely
Post by: Goober5000 on May 12, 2021, 04:05:37 pm
It's just a matter of finding the intersection of time, motivation, and know-how.  This bug probably doesn't require any knowledge of MFC, even though it might at first appear that way.

Every now and then these sorts of bugs do get fixed.  For example... (https://github.com/scp-fs2open/fs2open.github.com/issues/3308)