Goz3rr / SatisfactorySaveEditor

297 stars 78 forks source link

Deleted all Enemies, want to undo without creating a new save. #175

Closed tezguin closed 3 years ago

tezguin commented 4 years ago

Is it possible to undo the Delete Enemies cheat? I looked through the EnemySpawner tree and was trying to find what the cheat changed and couldn't see anything different.

Ryder17z commented 4 years ago

I'm not sure how it works but it can either be reversed by adding spawn points if they were removed or reset the flags if they were changed.

These options are only suitable if there's no global flag for creature spawn points. I have not looked into how the cheat works, but it's likely to be one of the three

Goz3rr commented 4 years ago

The way the cheat works is by moving all spawners down 50000 units, sets WasKilled to true and KilledOnDayNumber to a large number. I don't exactly remember why it moves the spawners under the world too, but technically all of these can be undone assuming you didn't accidentally run the cheat multiple times and no new spawners have been added to the game since.

I'll look into adding a way to reverse it but it's all a bit hacky at this point

Ryder17z commented 4 years ago

you could add 50000 units to the the position multiple times to reset it if necessary, there just needs to be some reference height so you don't go too high up

tezguin commented 4 years ago

Sorry about the delay in my response. Im looking through the save file and noticing a whole lot of weirdness, im probably just gonna start fresh.

Goz3rr commented 3 years ago

Undo cheat was added in v0.9.8