This commit is contained in:
2023-05-14 14:11:44 +03:00
parent 697b06319e
commit 90570c8800

View File

@ -422,7 +422,8 @@ def modextract(id_mod, id_game_workshop):
modpathlen = len(modpath)
print(id_mod, 0, modnamelen, modname, modpathlen, modpath)
type(id_mod)
modfile_bytes += struct.pack('<L', int(id_mod))
modfile_bytes += struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen),
int(id_mod), 0, modnamelen, modname, modpathlen, modpath, nummaps)
for _ in range(nummaps):
mapfilelen = struct.unpack_from('<L', data, offset=pos)
mapfilelen = mapfilelen[0]