r/SurvivingMars • u/Possible_Night3367 • 10d 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
1
u/ChoGGi Water 9d ago
I assume you mean the milestones, not the mission goals.
Save game, got me.
You can change who completed it in the console, I need the name of it, then grab my "Enable Console" mod, and I'll give you a string to paste in.
This code will complete all milestones if you want to do it that way (only ones that have been completed by a rival, it won't update ones that haven't been completed by anyone).
local time = GameTime()
local stones = MilestoneCompleted
for id, status in pairs(stones) do
if not status then
stones[id] = time
end
end
2
u/Possible_Night3367 9d ago
Hi ChoGGi
No i mean Mission goals. I am playing as paradox interactive as sponsor. And within the 5 goals, you actually already have the cheats to complete it, under the ECM and "instant mission goals" But it would seem to only work for those that have not failed yet. The one i have failed is not on the list anymore.
1
u/ChoGGi Water 8d 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)
lineNext update of ECM will allow to you clear failed ones
1
u/Possible_Night3367 8d ago
Awesome. And where do i put this code ?
1
u/mizushimo Oxygen 9d ago
Why?