This commit is contained in:
Евгений Храмов 2023-05-14 23:14:02 +03:00
parent 2d61d5cfac
commit 230794d0e3

@ -520,7 +520,7 @@ def modextract(id_mod, id_game_workshop, dir_ark_mods):
modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00'
modpathlen = len(modpath)
with open(f"{dir_ark_mods}.mod", "wb") as mod:
mod.write(struct.pack(f'<LLL{modnamelen}sL{modpathlen}sL'/2112724006,731604991/m, int(id_mod), 0, modnamelen, modname,
mod.write(struct.pack(f'<LLL{modnamelen}sL{modpathlen}sL', int(id_mod), 0, modnamelen, modname,
modpathlen, modpath, nummaps))
for mapnum in range(nummaps):
mapfilelen = struct.unpack_from("<L", data, pos)[0]