FloricSpacer / AbyssDiver

12 stars 12 forks source link

Save File Optimizer #131

Closed SPOOKEXE closed 1 month ago

SPOOKEXE commented 1 month ago

Save File Optimizer by pruning any unique-id events that have more than 20 occurrences in the "_events" key within save delta data, and the deletion of "relics" and "companions" delta variable keys.

If any game-breaking bugs occur, COMMENT OUT THE FOLLOWING:

// 0savefileOptimizer.js
trim_delta(state_delta) ->
i. delete state_delta.relics
ii. delete state_delta.companions

Example of "unique-id events" - these are the KEYS of the event objects that have occured. image

1000 day save file before/after pruning: image