From e7bb7acfdfe2f9c0f3ea5b31b0b307734d076904 Mon Sep 17 00:00:00 2001 From: MeltyPlayer Date: Sat, 14 Oct 2023 10:31:01 -0500 Subject: [PATCH] Started playing around with a new external file format for configuring how files are ripped. --- cli/config/battalion_wars_1.fin | 48 +++++++++++++++++++++++++++++++++ cli/config/pikmin_1.fin | 28 +++++++++++++++++++ cli/config/pikmin_2.fin | 33 +++++++++++++++++++++++ 3 files changed, 109 insertions(+) create mode 100644 cli/config/battalion_wars_1.fin create mode 100644 cli/config/pikmin_1.fin create mode 100644 cli/config/pikmin_2.fin diff --git a/cli/config/battalion_wars_1.fin b/cli/config/battalion_wars_1.fin new file mode 100644 index 000000000..458b51756 --- /dev/null +++ b/cli/config/battalion_wars_1.fin @@ -0,0 +1,48 @@ +# Version 0 +# Battalion Wars 1 + +# Config +platform: gamecube +scale: 35 + +# Extracts archives +extract( + **/ { + Yaz0Dec(each *.szs) + Rarc(each *.rarc) + Res(each *.res) + } +) + +# Gathers bundles +bundle( + Data/ { + CompoundFiles/ { + # Gathers models from each level directory + */ { + Modl(each *.modl) + + Modl(SGRUNT.modl, all FG*.anim) + Modl(SVET.modl, all FV*.anim) + + Modl(TGRUNT.modl, all FG*.anim) + Modl(TVET.modl, all FV*.anim) + + Modl(UGRUNT.modl, all /[FU]G.*\.anim/) + Modl(UVET.modl, all FV*.anim) + + Modl(WGRUNT.modl, all /(FG|WGRUNT).*\.anim/) + Modl(WVET.modl, all FV*.anim) + + Modl(XGRUNT.modl, all /[FX]G.*\.anim/) + Modl(XVET.modl, all /[FX]V.*\.anim/) + } + + # Gathers terrain model for each level + Out(each *.out) + + # Gathers the main XML files for each level + Xml(each /^((?!_Level).)*\.xml$/) + } + } +) diff --git a/cli/config/pikmin_1.fin b/cli/config/pikmin_1.fin new file mode 100644 index 000000000..b62e190db --- /dev/null +++ b/cli/config/pikmin_1.fin @@ -0,0 +1,28 @@ +# Version 0 +# Pikmin 1 + +# Config +platform: gamecube +scale: 2 + +# Extracts archives +extract( + **/ { + Yaz0Dec(each *.szs) + Rarc(each *.rarc) + } +) + +# Gathers bundles +bundle( + **/ { + Mod(each *.mod) + # Expects same name for mod and anm + Mod(each @.mod, one @.anm) + } + + dataDir/pikis/ { + # All piki models share the same animation file + Mod(each *.mod, one *.anm) + } +) diff --git a/cli/config/pikmin_2.fin b/cli/config/pikmin_2.fin new file mode 100644 index 000000000..91e61bbf4 --- /dev/null +++ b/cli/config/pikmin_2.fin @@ -0,0 +1,33 @@ +# Version 0 +# Pikmin 2 + +# Config +platform: gamecube +scale: 2 + +# Extracts archives +extract( + **/ { + Yaz0Dec(each *.szs) + Rarc(each *.rarc) { + pruneTerms: arc, data + } + } +) + +# Gathers bundles +bundle( + **/ { + Ast(each *.ast) + J3d(each *.bmd, all /.*\.bc[ak]/, all *.bti) + J3d(each model/*.bmd, all /anim\/.*\.bc[ak]/, all *.bti) + } + + user/ { + Kando/piki/pikis_designer/ { + J3d(each /(orima|piki)_model\/.*\.bmd/, all /motion\/.*\.bc[ak]/) + } + + Pikmin2Scene(each Kando/map/@/arc/model.bmd, each Abe/map/@/route.txt) + } +)