Surviving Mars

Surviving Mars

Disable Story Bits
19 Comments
ChoGGi  [author] 13 Aug, 2023 @ 1:10pm 
> I do not have a communication number available to register for discord
Then a forum thread? It's off topic for here.

sponsor[rocket_class]

Did you define rocket_class, if not then use
sponsor["rocket_class"]
which does the exact same thing as
sponsor.rocket_class
I'm not sure what that if/else is for?
Fimnn 13 Aug, 2023 @ 12:43pm 
I do not have a communication number available to register for discord
I recently wrote a code to modify the weight and type of sponsor rockets:
1 local sponsors = Presets.MissionSponsorPreset.Default
2 for _, sponsor in pairs(sponsors) do
3 sponsor.cargo = 60000
4 if not sponsor.rocket_class then
5 sponsor[rocket_class] = "ZeusRocket"
6-- else
7-- sponsor.rocket_class = "ZeusRocket"
8 end
9 end
At that time, when I uncommented two lines(6,7), it would cause a dead loop
In addition,(5 sponsor[rocket_class]="ZeusRocket" )was not successfully applied
And if only (3 sponsor.cargo=60000) is used, it will cause imm, us, and newark to become the default rocket
I have no clue about the above three questions
ChoGGi  [author] 8 Aug, 2023 @ 4:14pm 
Though if you have my ECM mod, then open the console and check out the examine>story bits menu items
ChoGGi  [author] 8 Aug, 2023 @ 4:12pm 
This seems like it'd be better suited to discord: https://discord.gg/ZXXYaExThy
or make a forum post and link to it?
Fimnn 8 Aug, 2023 @ 3:18pm 
I guess when creating a new game, the StoryBit of (Enabled=yes) will be added to a list

Then control the probability of attempting to trigger based on the Category

If the Prerequisites of this StoryBit also pass, it will trigger

Perhaps to implement dynamic settings in an old game, it is necessary to write that StoryBit to this list

maybe, this is suitable for changing from disabled to default, and there should be other ways to enforce the StoryBit

but, I have not been exposed to Lua and am confused by its magical data structure (odd, considered=)


If you want to implement dynamic generation options like (Unlock Breakthroughs), you also need to exclude those StoryBits triggered by StoryBitOutput and StoryBit Enables by StoryBit
Fimnn 8 Aug, 2023 @ 12:28pm 
I want to build on this mod to allow some story bits to be triggered immediately

But it is static and cannot be used for old saves, and for new games FollowUp will cause StoryBit to trigger frequently

Due to unknown reasons, Tick only triggered one or two of the StoryBits during my testing (tested 60 sol days)

[
if( option == 0 ) then
bit.Enabled = false
else
if( option == 2 ) then
bit.EnableChance = 100
bit.Category = "FollowUp"
end
end
]
Fimnn 6 Aug, 2023 @ 3:13pm 
thank:steamthumbsup:
ChoGGi  [author] 4 Aug, 2023 @ 10:20am 
Added
Fimnn 4 Aug, 2023 @ 5:10am 
Can a new disabled item be added ('id' = 'Grudge')
ChoGGi  [author] 15 Mar, 2022 @ 3:48pm 
Yeah, there's probably internal countdowns. I'd have to take a look again to be sure, I'd assume that's why I said "This won't change anything if the storybit is already activated."?
SoftwareSimian 15 Mar, 2022 @ 10:08am 
I also loaded a save from the sol before and it still triggered at about the same time as before.
SoftwareSimian 15 Mar, 2022 @ 9:59am 
Fickle Economics came up for me even though I had this mod subscribed. I then looked at the mod options and saw that it defaults to Off, so I turned it on and reloaded an autosave from earlier that day before the event showed up. Still triggered. Reloaded save again, toggled events off (apply) and on (apply) in mod options, still triggered. Are these events triggered internally some time before they actually show up in-game?
BLÀde 29 Oct, 2021 @ 1:28pm 
sweet
ChoGGi  [author] 26 Oct, 2021 @ 5:34pm 
k
BLÀde 26 Oct, 2021 @ 7:44am 
ok i think i found it
it's called stroybit Rocket Malfunction

Attempt the landing with full payload. (30% chance the rocket will explode)
Jettison the payload, then land. (safe landing but cargo is lost)
[Rocket Scientist] Activate manual control, I can land this one safely. (rocket will land safely with cargo)
ChoGGi  [author] 26 Oct, 2021 @ 6:06am 
I don't play the game, so I don't know the events by heart :)
BLÀde 25 Oct, 2021 @ 11:30pm 
not really sometime when you land a rocket it will say there was a malfunction do you want to land and risk it exploding or jettison the cargo and have it land safely. if you choose for it to land there is a 50/50 chance it will explode and you lose everything otherwise it just lands normally.
ChoGGi  [author] 25 Oct, 2021 @ 5:57pm 
Got a name or string I can search by? No idea what that one is.
BLÀde 25 Oct, 2021 @ 11:31am 
can you disable the ones where the rockets malfunction when you tell it to land possible of exploding?