Goz3rr / SatisfactorySaveEditor

293 stars 75 forks source link

Add the "Unlock all alternative recipes" cheat #214

Closed WGroenestein closed 3 years ago

WGroenestein commented 3 years ago

Fixes #144

Goz3rr commented 3 years ago

Thanks for the contribution!

I recently added a dialog to the research unlock cheat which allows for picking specific items to unlock. Bulk unlocking just alternative recipes seems like a useful feature to have, I just think it might be a bit better if you added it as a button to the previously mentioned dialog.

I notice you're adding the recipes to mAvailableRecipes instead of mPurchasedSchematics, is that intentional? Furthermore you're using the /Game/FactoryGame/Recipes/AlternateRecipes references instead of /Game/FactoryGame/Schematics/Alternate which seems to be used in my saves.

It would be preferrable to use the already existing Research.xml, so there are less files to keep updated. You can access it through the Research class.

WGroenestein commented 3 years ago

Sorry bout that, I've made these changes shortly after Update 3 and I found the alternative recipes in the mAvailableRecipes in my old save file. I was not aware that the mPurchasedSchematics would be the better place to get the job done, nor did I know that the mAvailableRecipes would get updates on loading the save. I recently wanted to start over for update 4 so I needed to update the recipes list and I though to submit the code changes back, though it appears in the "Unlock research" most functionality was already implemented. I did add the "Unlock all alternatives" button to make it easier to unlock all of them at once.

Goz3rr commented 3 years ago

Looks great, thanks 👍