Gota7 / SM64DSe-Ultimate

This is an edited version of sm64dse 2.3.5.
GNU General Public License v3.0
23 stars 16 forks source link

feat: loading custom objects.json in ROM directory #48

Closed axel7083 closed 9 months ago

axel7083 commented 9 months ago

When loading a ROM in a given directory the editor will look for a file called objects.json.

If it exist, and properly formatted, it will load the objects inside in the ObjectDatabase.

If you define objects with the same id that one already defined inside the default objectdb.xml, yours will be used.

I am using json, because XML is bad.

Folder structure

hack-directory/
├─ ROM.nds
├─ objects.json

Example

objects.json

[{
  "id": 350,
  "actorid": 416,
  "category": 1,
  "name": "Peach NPC (dl)",
  "internalname": "@CUSTOM%data/custom_obj/peach_npc/peach_low.bmd",
  "description": "A custom Peach NPC",
  "dlreq": "@CUSTOM%data/dynamic/peach_npc.dylb"
}]