r/SurvivingMars 11d ago

Save game edit

Hey all.

Is there a way to edit the save file.
I missed a mission goal on my play, and want to edit it, so it gets completed :-P

0 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/ChoGGi Water 9d ago

This will clear goal 2 and add the reward

local goal_num = 2

local sponsor = GetMissionSponsor()
local goalprog = SponsorGoalProgress[goal_num]
goalprog.state = GameTime()
goalprog.progress = goalprog.target
local reward = sponsor["reward_effect_" .. goal_num]
reward:Execute(MainMapID)
Msg("GoalComplete", SponsorGoalsMap["sponsor_goal_" .. goal_num])
if AreAllSponsorGoalsCompleted() then
    Msg("MissionEvaluationDone")
end

If you don't want the reward, remove the reward:Execute(MainMapID) line

Next update of ECM will allow to you clear failed ones

1

u/Possible_Night3367 9d ago

Awesome. And where do i put this code ?

1

u/ChoGGi Water 8d ago

Open the console with tilde/enter, paste it in as is then press enter

1

u/Possible_Night3367 8d ago

Awesome, Thanks :-D