diff options
author | Treeki <treeki@gmail.com> | 2011-03-13 00:19:13 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-03-13 00:19:13 +0100 |
commit | b0e0d63eab1e11d1a7f841afdc7eb18e7a9de3ba (patch) | |
tree | 82802511dfa1f34b27c2b6ea708c4a5d94f40717 /setgen.py | |
parent | 7d4e4c0b34a613dd3c0220475ae4e448197522c1 (diff) | |
download | kamek-b0e0d63eab1e11d1a7f841afdc7eb18e7a9de3ba.tar.gz kamek-b0e0d63eab1e11d1a7f841afdc7eb18e7a9de3ba.zip |
this branch now features only the level select stuff
Diffstat (limited to 'setgen.py')
-rw-r--r-- | setgen.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/setgen.py b/setgen.py deleted file mode 100644 index e627066..0000000 --- a/setgen.py +++ /dev/null @@ -1,22 +0,0 @@ -import struct - -names = {} -names['PATH'] = '/Maps/forest/pathdata.bin' -names['3D00'] = '/Maps/forest/base.brres' - -header = struct.pack('>4sI', b'MSet', len(names)) -entrydata = b'' -stringtable = b'' -currentoffset = 8 + (8 * len(names)) - -for key,path in names.items(): - entrydata += struct.pack('>4sI', key.encode('Shift-JIS'), currentoffset) - - encpath = path.encode('Shift-JIS') - stringtable += encpath - stringtable += b'\0' - currentoffset += len(encpath) + 0 - - -open('SMGoldwood.fileset', 'wb').write(header + entrydata + stringtable) - |