1
This commit is contained in:
parent
7c5c966c83
commit
335faca5a2
2
hlna.py
2
hlna.py
@ -515,8 +515,6 @@ def modextract(id_mod, id_game_workshop, dir_ark_mods):
|
|||||||
modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00'
|
modpath = b"../../../" + dir_shooter.encode() + b"/Content/Mods/" + id_mod.encode() + b'\x00'
|
||||||
modpathlen = len(modpath)
|
modpathlen = len(modpath)
|
||||||
with open(f"{dir_ark_mods}.mod", "wb") as mod:
|
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,
|
mod.write(struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), int(id_mod), 0, modnamelen, modname,
|
||||||
modpathlen, modpath, nummaps))
|
modpathlen, modpath, nummaps))
|
||||||
for mapnum in range(nummaps):
|
for mapnum in range(nummaps):
|
||||||
|
Loading…
Reference in New Issue
Block a user