Skip to content

Commit

Permalink
Started playing around with a new external file format for configurin…
Browse files Browse the repository at this point in the history
…g how files are ripped.
  • Loading branch information
MeltyPlayer committed Oct 14, 2023
1 parent c648374 commit e7bb7ac
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
48 changes: 48 additions & 0 deletions cli/config/battalion_wars_1.fin
Original file line number Diff line number Diff line change
@@ -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$/)
}
}
)
28 changes: 28 additions & 0 deletions cli/config/pikmin_1.fin
Original file line number Diff line number Diff line change
@@ -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)
}
)
33 changes: 33 additions & 0 deletions cli/config/pikmin_2.fin
Original file line number Diff line number Diff line change
@@ -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)
}
)

0 comments on commit e7bb7ac

Please sign in to comment.