1
This commit is contained in:
parent
cb41ae3806
commit
1b8203ad59
3
hlna.py
3
hlna.py
@ -420,7 +420,8 @@ def modextract(id_mods_ark, id_game_workshop):
|
|||||||
modnamelen = len(modname)
|
modnamelen = len(modname)
|
||||||
modpath = ("../../../" + "ShooterGame" + "/Content/Mods/" + id_mods_ark + "\x00").encode('utf-8')
|
modpath = ("../../../" + "ShooterGame" + "/Content/Mods/" + id_mods_ark + "\x00").encode('utf-8')
|
||||||
modpathlen = len(modpath)
|
modpathlen = len(modpath)
|
||||||
modfile_bytes += struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), id_mods_ark, 0, modnamelen, modname, modpathlen, modpath, nummaps)
|
modfile_bytes += struct.pack('<LLL{}sL{}sL'.format(len(modname), len(modpath)), id_mods_ark, 0, len(modname), modname.encode(), len(modpath), modpath.encode(), nummaps)
|
||||||
|
# modfile_bytes += struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), id_mods_ark, 0, modnamelen, modname, modpathlen, modpath, nummaps)
|
||||||
for _ in range(nummaps):
|
for _ in range(nummaps):
|
||||||
mapfilelen = struct.unpack_from('<L', data, offset=pos)
|
mapfilelen = struct.unpack_from('<L', data, offset=pos)
|
||||||
mapfilelen = mapfilelen[0]
|
mapfilelen = mapfilelen[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user