suXinjke / cruncheevos

Set of tools to deal with RetroAchievements achievement sets using JavaScript
MIT License
2 stars 0 forks source link

No badge defined results in badge being unset when it's already set on the server #2

Closed suXinjke closed 3 months ago

suXinjke commented 3 months ago

Steps to reproduce:

npx cruncheevos generate 1 sonic.js

In the generated file, pick any achievement - remove badge property from it, try to run npx cruncheevos diff sonic.js, you get no changes found

Change something in the same achievement, like title, then run diff again, you get:

  A.ID│ 16 (compared to remote)
 Title│ - The Floor is Lava
      │ + The Floor is Lava1
 Desc.│ Get to Marble Zone (no stage select code)
 Badge│ 250334 -> 00000

Badge│ 250334 -> 00000 must not happen and is extremely inconvenient, because people may choose to edit existing sets by writing code from scratch instead of using generate command, and not include id and badge properties.