1- .PHONY : install-deps all mapping.json expeditions .json twitch .json
1+ .PHONY : clean install-deps all mapping.json rewards translations .json item_to_name_mappings.json season_rewards.json twitch_rewards .json
22
3- all : install-deps mapping.json expeditions.json twitch.json
3+ VERSION := 6.12-BREACH-28.October.2025
4+
5+ all : clean install-deps mapping.json rewards
6+
7+ clean :
8+ rm -f ./season_rewards.json ./twitch_rewards.json ./item_to_name_mappings.json ./translations.json ./mapping.json
9+ rm -rf ./EXTRACTED
10+ rm -f ./MBINCompiler-linux
11+ rm -rf ./HGPAKtool
12+ rm -f ./* .log
13+ rm -f ./* .MXML
414
515install-deps :
6- curl -sSL https://github.com/monkeyman192/MBINCompiler/releases/latest/ download/MBINCompiler-linux -o ./MBINCompiler-linux
16+ curl -sSL https://github.com/monkeyman192/MBINCompiler/releases/download/v6.13.0-pre1/ MBINCompiler-linux-dotnet6 -o ./MBINCompiler-linux
717 git clone https://github.com/monkeyman192/HGPAKtool.git ./HGPAKtool
818 chmod +x ./MBINCompiler-linux
919
@@ -12,10 +22,28 @@ mapping.json:
1222 jq ' .Mapping | map({(.Key): .Value}) | add' ./mapping.json > ../src/data/mapping.json
1323 npx prettier --write ../src/data/mapping.json --config ../.prettierrc
1424
15- twitch.json :
16- curl -sSL " https://github.com/NMSCD/nms-archive/raw/refs/heads/main/6.01-VOYAGERS-28.August.2025/METADATA/REALITY/TABLES/UNLOCKABLETWITCHREWARDS.MBIN" -o ./UNLOCKABLETWITCHREWARDS.MBIN
17- ./MBINCompiler-linux -d ./ ./UNLOCKABLETWITCHREWARDS.MBIN -y
25+ translations.json :
26+ python ./HGPAKtool/HGPAKTool/hgpaktool.py ./PCBANKS/NMSARC.MetadataEtc.pak
27+ for f in EXTRACTED/language/* _usenglish.mbin; do \
28+ echo " Decoding $$ f" ; \
29+ ./MBINCompiler-linux -y -d ./EXTRACTED/language/ " $$ f" ; \
30+ done
31+ python ./extract_translations.py
32+
33+ item_to_name_mappings.json : translations.json
34+ curl -sSL " https://github.com/NMSCD/nms-archive/raw/refs/heads/main/$( VERSION) /METADATA/REALITY/TABLES/NMS_REALITY_GCPRODUCTTABLE.MXML" -o ./NMS_REALITY_GCPRODUCTTABLE.MXML
35+ python ./extract_item_names.py
36+
37+ season_rewards.json : item_to_name_mappings.json
38+ curl -sSL " https://github.com/NMSCD/nms-archive/raw/refs/heads/main/$( VERSION) /METADATA/REALITY/TABLES/UNLOCKABLESEASONREWARDS.MXML" -o ./UNLOCKABLESEASONREWARDS.MXML
39+ python ./extract_season_rewards.py
40+ cp ./season_rewards.json ../src/data/rewards/season.json
41+ npx prettier --write ../src/data/rewards/season.json --config ../.prettierrc
42+
43+ twitch_rewards.json : item_to_name_mappings.json
44+ curl -sSL " https://github.com/NMSCD/nms-archive/raw/refs/heads/main/$( VERSION) /METADATA/REALITY/TABLES/UNLOCKABLETWITCHREWARDS.MXML" -o ./UNLOCKABLETWITCHREWARDS.MXML
45+ python ./extract_twitch_rewards.py
46+ cp ./twitch_rewards.json ../src/data/rewards/twitch.json
47+ npx prettier --write ../src/data/rewards/twitch.json --config ../.prettierrc
1848
19- season.json :
20- curl -sSL " https://github.com/NMSCD/nms-archive/raw/refs/heads/main/6.01-VOYAGERS-28.August.2025/METADATA/REALITY/TABLES/UNLOCKABLESEASONREWARDS.MBIN" -o ./UNLOCKABLESEASONREWARDS.MBIN
21- ./MBINCompiler-linux -d ./ ./UNLOCKABLESEASONREWARDS.MBIN -y
49+ rewards : season_rewards.json twitch_rewards.json
0 commit comments