id_mod
This commit is contained in:
parent
8e63ebce6c
commit
285905a76d
2
hlna.py
2
hlna.py
@ -503,7 +503,7 @@ def modextract(id_mod, id_game_workshop):
|
|||||||
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:
|
||||||
mod.write(struct.pack("<LLL%dsL%dsL" % (modnamelen, modpathlen),
|
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):
|
for mapnum in range(nummaps):
|
||||||
mapfilelen = struct.unpack_from("<L", data, pos)[0]
|
mapfilelen = struct.unpack_from("<L", data, pos)[0]
|
||||||
mapfile = data[mapnamelen+12:mapnamelen+12+mapfilelen]
|
mapfile = data[mapnamelen+12:mapnamelen+12+mapfilelen]
|
||||||
|
Loading…
Reference in New Issue
Block a user