|
From: holy_moly <hol...@gm...> - 2007-09-25 22:31:41
|
Michael McCarty schrieb: > [on mission code] > I'll try to document a little more of how the mission code works. > What part is the toughest to understand? Is it the weird mission > strings and failure branching or something else? I got to understand the missions strings as each being a token symbolizing one special step (Launch, Orb-Burn, ...) and the various special tokens. I'm puzzled about the mission branching but I've only had a few hours to look at the code so far. > You'll find the original mission code data in > old-sources/utils/mission_dat.c. > The MMM structure is the failure > branching where the negative numbers are a specific end of mission > thing and the positive numbers are the step index to go to when there > is a failure that can be recovered from. I'll check that and try to understand it. > > If you you want to toss everything into an XML file this is definately > the place to start with the Mission structure from that file. You are so right and that file helped a lot. I'm currently trying to get a visual of the steps and when I have that I can get to a) document those structures and b) move them to different format. So... great info and lots of fun fiddling around with these files. Cheers, Fabian |