Skip to content

Commit 9348815

Browse files
authored
Merge pull request #268 from monkeyman192/hgpaktool_update
Hgpaktool update
2 parents e0d7704 + c6969c6 commit 9348815

File tree

26 files changed

+892
-604
lines changed

26 files changed

+892
-604
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ luac.out
4040
*.hex
4141

4242
classes.txt
43+
*.egg-info

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@ This is just a small subset of all the games' MBIN files to try and get a good i
66

77
## Updating
88

9-
Currently updating this repo is slightly convoluded, but it can be done in the following way:
9+
First, ensure you have [hgpaktool](https://pypi.org/project/hgpaktool/) installed:
1010

11-
```
12-
python .\HGPAKTool\hgpaktool.py -U --json "{json_path}" --upper -O "{data_path}" "{PCBANKS_path}"
13-
```
11+
`python -m pip install hgpaktool`
1412

15-
Where the following substitutions should be made:
16-
Note: All paths MUST be absolute paths.
13+
You can also use [uv](https://github.com/astral-sh/uv) and run `uv sync` if you are more comfortable using python virtual environments.
1714

18-
- `json_path`: The path to index.json within this repo.
19-
- `data_path`: The path to the `data` directory within this repo.
20-
- `PCBANKS_path`: The path to the PCBANKS directory in the games' files.
15+
Then run
2116

22-
The command is then ran from within the `HGPAKTool` folder.
23-
This command will extract all the files in the `index.json` file into the data directory of this repo.
17+
`python extract_data.py`
2418

25-
Once the files have been updated, if there are actually any file changes, the `data/.version` file MUST be updated to have the latest steam build ID.
19+
The first time you run this it will prompt you to specify the location of your PCBANKS directory. This will be stored in a file in your user directory (`C:\Users\<username>\AppData\Roaming\MBINCompiler-test-data`) in a json file.
20+
If you need to move this directory, you can change the path in this file, or just delete the file and re-run the script and it will prompt you to choose the directory again.
2621

27-
**NOTE:** Currently the `utils/update.py` file is not working. More work needs to be done in both this repo as well as the HGPAKTool repo to make this easier to do. For now, if new files are added we need to add them manually to the `index.json` file.
22+
Once the files have been updated, if there are actually any file changes, the `data/.version` file MUST be updated to have the latest steam build ID.

data/.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20562619
1+
20576816
1.42 KB
Binary file not shown.
5.13 MB
Binary file not shown.
240 Bytes
Binary file not shown.
5.14 KB
Binary file not shown.
41.3 KB
Binary file not shown.
Binary file not shown.
30.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)