This commit is contained in:
Евгений Храмов 2023-05-14 20:59:16 +03:00
parent b49faf44e3
commit b9a8f69de3

@ -504,7 +504,7 @@ def modextract(id_mod, id_game_workshop):
with open(f"{dir_ark_mods}.mod", "wb") as mod:
print(type(modnamelen))
print(type(modpathlen))
mod.write(struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), int(id_mod), 0, modnamelen, modname, modpathlen, str(modpath)1, nummaps))
mod.write(struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), int(id_mod), 0, modnamelen, modname, modpathlen, str(modpath), nummaps))
for mapnum in range(nummaps):
mapfilelen = struct.unpack_from("<L", data, pos)[0]
mapfile = data[mapnamelen+12:mapnamelen+12+mapfilelen]