@@ -49,6 +49,11 @@ extract-precache-hgpak:
4949 @ gum spin --spinner dot --title " Extracting..." -- ./ out/ hgpaktool ./ PCBANKS/ NMSARC.Precache.pak -O ./ out/ EXTRACTED
5050 @ gum style --foreground 10 " ✅ NMSARC.Precache.pak extracted."
5151
52+ extract-texui-hgpak :
53+ @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 📦 HGPAK TexUI EXTRACTION"
54+ @ gum spin --spinner dot --title " Extracting..." -- ./ out/ hgpaktool ./ PCBANKS/ NMSARC.TexUI.pak -O ./ out/ EXTRACTED
55+ @ gum style --foreground 10 " ✅ NMSARC.TexUI.pak extracted."
56+
5257extract-locale : extract-metadata-hgpak
5358 @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 📜 translations.json"
5459 @ for f in ./ out/ EXTRACTED/ language/ *_usenglish.mbin; do \
@@ -57,35 +62,45 @@ extract-locale: extract-metadata-hgpak
5762 @ gum spin --spinner dot --title " Extracting translations" -- python ./ src/ extract_translations.py
5863 @ gum style --foreground 10 " ✅ translations.json ready."
5964
60- extract-items : extract-precache-hgpak extract-locale
65+ extract-item-name-mappings : extract-precache-hgpak extract-locale
6166 @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 📜 item_to_name_mappings.json"
6267 @ gum spin --spinner dot --title " Decoding nms_reality_gcproducttable.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/nms_reality_gcproducttable.mbin" > / dev/ null;
6368 @ gum spin --spinner dot --title " Decoding nms_basepartproducts.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/nms_basepartproducts.mbin" > / dev/ null;
6469 @ gum spin --spinner dot --title " Extracting item names" -- python ./ src/ extract_item_names.py
6570 @ gum style --foreground 10 " ✅ item_to_name_mappings.json created."
6671
72+ extract-items : extract-precache-hgpak extract-locale extract-texui-hgpak
73+ @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 📜 items.json & item images"
74+ @ gum spin --spinner dot --title " Decoding nms_reality_gcsubstancetable.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/nms_reality_gcsubstancetable.mbin" > / dev/ null;
75+ @ gum spin --spinner dot --title " Decoding nms_reality_gctechnologytable.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/nms_reality_gctechnologytable.mbin" > / dev/ null;
76+ @ gum spin --spinner dot --title " Decoding nms_reality_gcproceduraltechnologytable.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/nms_reality_gcproceduraltechnologytable.mbin" > / dev/ null;
77+ @ gum spin --spinner dot --title " Decoding proceduralproducttable.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/proceduralproducttable.mbin" > / dev/ null;
78+ @ gum spin --spinner dot --title " Extracting items" -- python ./ src/ extract_items.py
79+ @ cp ./ out/ items.json ../ src/ data/ items.json
80+ @ npx prettier --write ../ src/ data/ items.json --config ../ .prettierrc > / dev/ null
81+ @ gum style --foreground 10 " ✅ items.json & item images created."
6782# ---------------------------------------------------------------------------
6883# 🎁 REWARDS
6984# ---------------------------------------------------------------------------
7085extract-rewards : extract-season-rewards extract-twitch-rewards extract-platform-rewards
7186
72- extract-season-rewards : extract-items
87+ extract-season-rewards : extract-item-name-mappings
7388 @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 🎁 rewards/season.json"
7489 @ gum spin --spinner dot --title " Decoding unlockableseasonrewards.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/unlockableseasonrewards.mbin" > / dev/ null
7590 @ gum spin --spinner dot --title " Extracting rewards" -- python ./ src/ extract_season_rewards.py
7691 @ cp ./ out/ season_rewards.json ../ src/ data/ rewards/ season.json
7792 @ npx prettier --write ../ src/ data/ rewards/ season.json --config ../ .prettierrc > / dev/ null
7893 @ gum style --foreground 10 " ✅ rewards/season.json created."
7994
80- extract-twitch-rewards : extract-items
95+ extract-twitch-rewards : extract-item-name-mappings
8196 @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 🎁 rewards/twitch.json"
8297 @ gum spin --spinner dot --title " Decoding unlockabletwitchrewards.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/unlockabletwitchrewards.mbin" > / dev/ null
8398 @ gum spin --spinner dot --title " Extracting rewards" -- python ./ src/ extract_twitch_rewards.py
8499 @ cp ./ out/ twitch_rewards.json ../ src/ data/ rewards/ twitch.json
85100 @ npx prettier --write ../ src/ data/ rewards/ twitch.json --config ../ .prettierrc > / dev/ null
86101 @ gum style --foreground 10 " ✅ rewards/twitch.json created."
87102
88- extract-platform-rewards : extract-items
103+ extract-platform-rewards : extract-item-name-mappings
89104 @ gum style --border rounded --border-foreground 45 --margin " 1 0 0 0" --padding " 0 3" --width 80 --align left " 🎁 rewards/platform.json"
90105 @ gum spin --spinner dot --title " Decoding unlockableplatformrewards.mbin" -- ./ out/ mbincompiler -y -d ./ out/ " ./out/EXTRACTED/metadata/reality/tables/unlockableplatformrewards.mbin" > / dev/ null
91106 @ gum spin --spinner dot --title " Extracting rewards" -- python ./ src/ extract_platform_rewards.py
0 commit comments