1
This commit is contained in:
parent
2d61d5cfac
commit
230794d0e3
2
hlna.py
2
hlna.py
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user