-
I see that the names of mission steps are defined in game_main.cpp. A number of times I've looked to see where they are assigned skills to apply to the hardware's Safety factor for a given step, such as Reentry being a Capsule step. Anyone know where that happens? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
This is done in MissionSteps() in mc2.cpp. raceintospace/src/game/mc2.cpp Line 202 in a3ecec0 |
Beta Was this translation helpful? Give feedback.
-
Thanks Hendrik. Getting back to this, comparing the two files is confusing. Suborbital, for instance, seems to be steps ADE, yet mc2.cpp (under void MissionSteps or MissionParse) doesn't seem to define either D or E. Similarly, Earth Orbital looks to be steps ABFGDE, but none of those seem to be defined except A. Clearly I'm missing something here...
On Saturday, October 30, 2021, 12:16:33 PM PDT, Hendrik W. ***@***.***> wrote:
mcode is a letter because it is derived from the mission string in mission.dat, which is in a semi-human-readable form. You are correct about the translation rule into numbers, except that 'A' gets mapped to 0 and hence all the numbers are shifted down by one. The number is then stored in Mev[step].loc. If you need to know, which step a particular number (or letter) corresponds to, you can look at the array S_Name in game_main.cpp.
The numbers in missSteps.dat are only for displaying the mission trajectory in the future mission screen, they are not used for the actual missions. That information comes from the mission string, which also contains the steps for alternate branches.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Ok, I get that A=65 in ASCII. What I'm getting at with all this is, if we were to implement the "Docking and Navigation" that Fritz had in mind (as in #384), how would we change certain steps from relying on Capsule skill to instead rely on Docking skill? I'm afraid this looks way more complicated than I had imagined.
#384
On Tuesday, October 11, 2022 at 08:15:20 AM PDT, Hendrik W. ***@***.***> wrote:
Not sure what you mean by "define" in this context. The relevant line is this one:
https://github.com/raceintospace/raceintospace/blob/e1917d91aae4669817c7cac7b13dd848ea92132d/src/game/mc2.cpp#L618
mcode is the letter of the step and 65 is 'A' in ASCII. So, if you have a 'D', Mev[step].loc becomes 3, which is the internal code for a re-entry step and controls which videos are shown, which failures are generated, etc.
Does this address your concern?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Of course, if we were to implement this, we'd need to decide which steps to use Docking/Navigation rather than Capsule. Here's a list from game_main.cpp, with my first guess at which to use in boldface. I'm sure this needs some revision, but it's a start. LAUNCH |
Beta Was this translation helpful? Give feedback.
This is done in MissionSteps() in mc2.cpp.
raceintospace/src/game/mc2.cpp
Line 202 in a3ecec0