1
This commit is contained in:
parent
05f9126b0d
commit
b6ebab8893
3
hlna.py
3
hlna.py
@ -471,6 +471,7 @@ def mod(g, m, i, id_mods_ark):
|
||||
print_line(f"{dir_mods_ark}/{id_mod}.mod удалён")
|
||||
|
||||
def modextract(id_mod, id_game_workshop, dir_ark_mods):
|
||||
print_line(id_mod)
|
||||
dir_steam_workshop = f"{dir_workshop_ark}/content/{id_game_workshop}/{id_mod}/WindowsNoEditor"
|
||||
dir_extract = dir_ark_mods
|
||||
if id_mod == "111111111":
|
||||
@ -515,7 +516,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', int(id_mod), 0, modnamelen, modname,
|
||||
mod.write(struct.pack(f'<LLL{modnamelen}sL{modpathlen}sL'/2112724006,731604991/m, 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