suXinjke / cruncheevos

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

Code Note commands #9

Open wolfman2000 opened 1 month ago

wolfman2000 commented 1 month ago

I admit I don't know the best way of handling this, but perhaps there can be a way to generate code notes in bulk? A number of the games we work on have many repeating notes of similar content (multiple levels, cars, etc), and having a programmatic way of handling them would likely be useful.

suXinjke commented 1 month ago

Could be something simple as that

export const codeNotes = {
  0xCAFE: 'Cafe!',
  0xFEED: 'Feed!'
}

Then you'd npx cruncheevos codenote-save to inject them into User file. Command would specifically look for this export. Hesitant to support export format like [ [0xCAFE, 'CAFE'], [0xFEED, 'FEED'] ] because it allows for duplicate addresses.

But for this to be feature-complete it also needs codenote-diff and codenote-diff-save commands.

User would still have to manually deal with uploading these to the server. It's possible to implement uploading these notes to server, but I'm extremely hesitant because a mistake in implementation, or user's mistake can lead to full life consequences.