mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2024-12-18 10:25:52 +01:00
37 lines
908 B
Markdown
37 lines
908 B
Markdown
|
# Database Utilities
|
||
|
|
||
|
**Backup db.json before shrinking or importing**
|
||
|
|
||
|
## Shrink DB
|
||
|
|
||
|
### [trim_monkey_db.py](trim_monkey_db.py)
|
||
|
|
||
|
This deletes unused Gitadora and IIDX non-best scores, which can drastically reduce the size of db.json in a multiuser environment
|
||
|
|
||
|
Example:
|
||
|
`python utils\db\trim_monkey_db.py`
|
||
|
|
||
|
## Score Import
|
||
|
|
||
|
### [import_ddr_spice_automap.py](import_ddr_spice_automap.py)
|
||
|
|
||
|
Instructions:
|
||
|
|
||
|
1. Enable `EA Automap` and `EA Netdump` in spicecfg
|
||
|
|
||
|
1. Boot the game on the source network to export
|
||
|
|
||
|
1. Card in on the source profile to export (all the way to music select menu)
|
||
|
|
||
|
1. Exit the game
|
||
|
|
||
|
1. Disable `EA Automap` and `EA Netdump` in spicecfg
|
||
|
|
||
|
1. Run the import script
|
||
|
|
||
|
Example: `python utils\db\import_ddr_spice_automap.py --automap_xml automap_0.xml --version 19 --monkey_db db.json --ddr_id 12345678`
|
||
|
|
||
|
- `--version` {19 for A20P or 20 for A3}
|
||
|
|
||
|
- `--ddr_id` {destination profile in db.json}
|