zencq / NomNom

NomNom is the most complete savegame editor for NMS but also shows additional information around the data you're about to change. You can also easily look up each item individually to examine its attributes, independently of a savegame, or get other useful information that are not related to a specific savegame (but enhanced if one is loaded).
https://zencq.github.io/NomNom/
GNU General Public License v3.0
455 stars 36 forks source link

[Bug] "Cannot create a file when that file already exists." Error when editing JSON #132

Closed kekivelez closed 1 year ago

kekivelez commented 1 year ago

Description

After enabling JSON editing, when changing a data value for mission progress NomNom crashes with a System.IO.IOException and a message "Cannot create a file when that file already exists.".

Reproduce

Steps to reproduce the behavior: 1.Edit JSON for save

  1. Search for timed mission (Bio_Ship2 is the mission I am encountering the issue with)
  2. Set the "Data" key to 1
  3. Click ok
  4. Accept the prompt to save changes
  5. Go to File > Save account
  6. Profit?

Expected Behavior

json file changes saved without NomNom crashing. Additional clarity on whether the confirmation prompt (the one that pops up after editing the json and hitting ok) saves the changes to the save would be a nice bonus (is it supposed to save the account for me or is the user supposed to manually hit save account despite that confirmation?)

Files

NomNom 4.30.0.33-beta.3 Crash Report.pdf save_with_bioship2_active.zip

Additional Context

Add any other context about the problem here or at least complete the following information.