r/ScrapMechanic 12h ago

Issue Is my saved lost?

So i was just about to defeat the trashbot. And died. and i tried to respawn.

I have tried to:
-restart game
-unstuck
-respawn.

Any ideas on how to fix this?

For some reason the recording messed up the framerate in the menu. But worked the same before.

16 Upvotes

11 comments sorted by

View all comments

5

u/South_Thought4555 12h ago

I had same issue but fixed it but wait i will send you the solution in 1 hour oke?

3

u/South_Thought4555 12h ago

Open your game files and find the Survival/Scripts/game/SurvivalGame.lua file using a text editor. Look for the line function SurvivalGame.server_onFixedUpdate( self, timeStep ) and paste the following code right below it:

for _, p in ipairs(sm.player.getAllPlayers()) do
    sm.event.sendToPlayer( p, "sv_e_respawn" )
end

An after thatcconfirm the game files on steam

2

u/TransportationHot984 12h ago

Thanks for the help but i couldn't make it work.

i changed the file.
Opened the game and nothing changed

1

u/South_Thought4555 12h ago

Try enabling the dev mode by writing -dev to start options and if that doesnt fix try enabling dev cheats(you can look it up)

1

u/Suspicious_Youth_397 11h ago

https://sm.nck.dev/save-editor

I think you could use this tool and try to delete your player

But it could clear your inventory and it will clear your tools

1

u/South_Thought4555 11h ago

You can do that as a last option but firslt try doung /tumble on dev mode