This commit is contained in:
Евгений Храмов 2023-05-14 20:50:23 +03:00
parent 8e63ebce6c
commit 285905a76d

@ -503,7 +503,7 @@ def modextract(id_mod, id_game_workshop):
modpathlen = len(modpath)
with open(f"{dir_ark_mods}.mod", "wb") as mod:
mod.write(struct.pack("<LLL%dsL%dsL" % (modnamelen, modpathlen),
int(modid), 0, modnamelen, modname, modpathlen, modpath, nummaps))
int(id_mod), 0, modnamelen, modname, modpathlen, modpath, nummaps))
for mapnum in range(nummaps):
mapfilelen = struct.unpack_from("<L", data, pos)[0]
mapfile = data[mapnamelen+12:mapnamelen+12+mapfilelen]