Skip to content

Commit

Permalink
templates: add some templates
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlindhe committed Dec 15, 2024
1 parent cec86d6 commit bd519f1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RESOURCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ online-only universal game modding tool
- https://github.com/kaitai-io/kaitai_struct_formats
- https://wiki.multimedia.cx/index.php/Main_Page
- http://wiki.xentax.com/index.php/Category:File_Format

- https://reshax.com/



Expand Down
23 changes: 23 additions & 0 deletions templates/games/midnight_club_2/dat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# STATUS: 20%
#
# Used in:
# - Midnight Club 2 (PS2)

kind: archive
name: Midnight Club 2 DAT file
endian: little

no_magic: true

structs:
header:
ascii[4] SomeString: ?? # Dave, DAVE, Hash
u32 MaybeCount: ??
u32 v2: ?? # 4096 XXX maybe block size ?

# for ui_async.dat this is offset for next block with data (0800), which seems to have another header
# XXX for assets.dat, this is 00 03 40 00 but there is still data starting 0800
u32 v3: ??

layout:
- header Header
27 changes: 27 additions & 0 deletions templates/games/storm_lover/afs2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# STATUS: 1%

# USED IN:
# Storm Lover (PSVita)
# Storm Lover 2nd (PSVita)

kind: archive
name: Storm Lover AFS2 archive
extensions: [.awb]
endian: little

magic:
- offset: 0000
match: c'AFS2'

layout:
- header Header

structs:
header:
ascii[4] Magic: ??
u32 Unknown1: ?? # 01 04 02 00
u32 DataSize: ??
u32 Unknown2: ?? # 20 00 00 00
u16[self.DataSize] Data: ??

u8 More: ??

0 comments on commit bd519f1

Please sign in to comment.