aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ethyl.py20
-rw-r--r--write-brlyt.py4
2 files changed, 22 insertions, 2 deletions
diff --git a/ethyl.py b/ethyl.py
index ad128b1..c57bb8a 100644
--- a/ethyl.py
+++ b/ethyl.py
@@ -41,6 +41,26 @@ formats = {
u8 padding = 0 // 5f
etc!
''',
+ 'window': '''
+ float unk1 // 4c
+ float unk2 // 50
+ float unk3 // 54
+ float unk4 // 58
+ u32 unk5 // 5c - ???
+ u32 offs // 60 - from start of pane
+ etc!
+ ''',
+ 'window2': ''' // (r29)
+ u32 unk1 // 0
+ u32 unk2 // 4
+ u32 unk3 // 8
+ u32 unk4 // c
+ u16 mat_off // 10
+ u8 texcoord_array_size // 12 -- max 8
+ u8 pad // 13
+ etc! // followed by the texcoord array
+ ''',
+
'group': '''
char name[16]
u16 numsubs
diff --git a/write-brlyt.py b/write-brlyt.py
index 4eccf22..6796908 100644
--- a/write-brlyt.py
+++ b/write-brlyt.py
@@ -121,7 +121,7 @@ for c in chunks:
chunk += unparse_data(vars, 'pic', prefix='~pic')
for tc in vars['~pic.texcoords']:
chunk += struct.pack('>ffffffff', *tc)
- elif typ != 'pan1':
+ elif typ not in ('pan1', 'bnd1'):
failz
else:
raise Exception('Unhandled type %s' % typ)
@@ -135,4 +135,4 @@ rlyt = rlyt[:8] + struct.pack('>I', len(rlyt)) + rlyt[0xc:]
g = open(sys.argv[2], 'wb')
g.write(rlyt)
-g.close() \ No newline at end of file
+g.close()