# Mod installation on Linux

**URL:** <https://forums.unrealengine.com/t/mod-installation-on-linux/41972>\
**Category:** ARK: Survival Evolved\
**Tags:** unreal-engine, Ark:-Survival-Evolved, Modding\
**Created:** [September 16, 2015, 11:21pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972 "2015-09-16T23:21:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon59233888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon59233888](https://forums.unrealengine.com/u/anon59233888)\
**Post date:** [September 16, 2015, 11:21pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/1 "2015-09-16T23:21:34Z")

</div>

I want to download the mods on the server with SteamCMD and copy them to the server in Content/Mods. Downloading the mods works fine but I end up with compressed files (mod\_file1.z; mod\_file2.z). The Ark server does no decompression and I did not figure out how. Has anyone any ideas?

I did a few tests on Windows with the ARKServerLauncher. It uses steamCMD the same way I do but then reads all .z files and writes the uncompressed file to the mod folder…

---

<div class="post-metadata">

**Author:** ![JasonFJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonFJ](https://forums.unrealengine.com/u/JasonFJ)\
**Post date:** [September 17, 2015, 12:20am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/2 "2015-09-17T00:20:27Z")

</div>

What exactly is the problem?

---

<div class="post-metadata">

**Author:** ![anon59233888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon59233888](https://forums.unrealengine.com/u/anon59233888)\
**Post date:** [September 17, 2015, 12:35am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/3 "2015-09-17T00:35:02Z")

</div>

The problem is that I need the uncompressed files.

---

<div class="post-metadata">

**Author:** ![JasonFJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JasonFJ](https://forums.unrealengine.com/u/JasonFJ)\
**Post date:** [September 17, 2015, 1:01am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/4 "2015-09-17T01:01:02Z")

</div>

If its your mod… they are already uncompressed in your Unreal Editor install.  
If it’s somebody elses mod… you are going to have to ask them… politely… for the uncompressed originals, and hope they are willing to give them to you.

---

<div class="post-metadata">

**Author:** ![anon59233888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon59233888](https://forums.unrealengine.com/u/anon59233888)\
**Post date:** [September 17, 2015, 2:57am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/5 "2015-09-17T02:57:04Z")

</div>

I need the cooked uncompressed files and not the original files.  
SteamCMD loads the mod and creates 2 sub folders: WindowsNoEditor and LinuxNoEditor. Inside of each of them are the cooked files in a compressed format. The game (or server in this case) needs them in an uncompressed state and I have no idea how to extract them.

When you use Windows and run the Ark launcher, the tool starts steamCMD to download the mod. After that step you have them as compressed files inside steamCMD/workshop/content/360110/\<modId\> (360110 is the Ark app id if I remember correctly :)). The tool decompresses the files of WindowsNoEditor automatically and puts them in the content/mods/\<ModId\> folder of your dedicated server.

All I need is that extraction part as I already wrote in my first post.

EDIT:  
After some digging, I found out that they are compressed with Ionic.Zlib. That should help other people who want to use their own tools for server management 🙂

---

<div class="post-metadata">

**Author:** ![deekay0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deekay0](https://forums.unrealengine.com/u/deekay0)\
**Post date:** [September 28, 2015, 9:10am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/6 "2015-09-28T09:10:21Z")

</div>

> [@Thurion;380795](#):
>
> EDIT:  
> After some digging, I found out that they are compressed with Ionic.Zlib. That should help other people who want to use their own tools for server management 🙂

Did you found a solution for linux too? Is there anyway to decompress with with bash?

---

<div class="post-metadata">

**Author:** ![anon59233888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon59233888](https://forums.unrealengine.com/u/anon59233888)\
**Post date:** [September 28, 2015, 10:20am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/7 "2015-09-28T10:20:49Z")

</div>

> [@deekay0;388192](#):
>
> Did you found a solution for linux too? Is there anyway to decompress with with bash?

The solution is basically to do what ARKRemote does but sadly I haven’t found a way to do it with bash.

---

<div class="post-metadata">

**Author:** ![deekay0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deekay0](https://forums.unrealengine.com/u/deekay0)\
**Post date:** [September 28, 2015, 10:34am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/8 "2015-09-28T10:34:54Z")

</div>

> [@Thurion;388212](#):
>
> The solution is basically to do what ARKRemote does but sadly I haven’t found a way to do it with bash.

Did you saw any sourcecode from that? Can’t find it for ARKRemote. Maybe we have to write a mono friendly c# 2.0 app …  
Did try now a couple of things, to get this working in bash, but still no solution ☹

---

<div class="post-metadata">

**Author:** ![deekay0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deekay0](https://forums.unrealengine.com/u/deekay0)\
**Post date:** [September 28, 2015, 1:39pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/9 "2015-09-28T13:39:24Z")

</div>

I will write that in Python the next days, hope I find some time for that.

First version: [ark-server-manager/z\_unpack.py at master · TheCherry/ark-server-manager · GitHub](https://github.com/TheCherry/ark-server-manager/blob/master/src/z_unpack.py)  
Not runable, missing imports, need tests. Thats just a fast copied version from ARKRemote, thanks to Face Wound

---

<div class="post-metadata">

**Author:** ![deekay0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@deekay0](https://forums.unrealengine.com/u/deekay0)\
**Post date:** [September 29, 2015, 8:31am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/10 "2015-09-29T08:31:22Z")

</div>

Its finish: [ark-server-manager/z\_unpack.py at master · TheCherry/ark-server-manager · GitHub](https://github.com/TheCherry/ark-server-manager/blob/master/src/z_unpack.py)  
you can now decompress .z files with that:

```auto

python z_unpack.py "modfile.uasset.z" "modfile.uasset"

```

Hope it work correctly for bigger z files too, need some tests with decompressed files by the original ARK game.

At last there is a .mod file too. Its not hard to build it, but need to code that too.  
Then you can start to develop your script.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c3e0179](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c3e0179](https://forums.unrealengine.com/u/anonymous_user_0c3e0179)\
**Post date:** [January 7, 2016, 9:47pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/11 "2016-01-07T21:47:25Z")

</div>

Hi thanks for all the info you have provided so far, it’s allowed me to get my automated system for ARK nearly completed, I’m just missing that one last piece of the puzzle, how do I generate the .mod file? It doesn’t come down with steamCMD.

---

<div class="post-metadata">

**Author:** ![jslay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jslay](https://forums.unrealengine.com/u/jslay)\
**Post date:** [February 25, 2016, 8:03am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/12 "2016-02-25T08:03:12Z")

</div>

> [@Callak;449710](#):
>
> Hi thanks for all the info you have provided so far, it’s allowed me to get my automated system for ARK nearly completed, I’m just missing that one last piece of the puzzle, how do I generate the .mod file? It doesn’t come down with steamCMD.

This. Right. Here.

---

<div class="post-metadata">

**Author:** ![DarthDestroyer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarthDestroyer](https://forums.unrealengine.com/u/DarthDestroyer)\
**Post date:** [February 27, 2016, 4:38pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/13 "2016-02-27T16:38:28Z")

</div>

Hey guys!

Any News to this?

I found the Solution for the mod-files! =\> [ark-server-tools/arkmanager at master · arkmanager/ark-server-tools · GitHub](https://github.com/FezVrasta/ark-server-tools/blob/master/tools/arkmanager)  
Could this help?

But im out… Im not so good at Shell ☹

All i want to create is a little handy “mods” script. Download / Validate the Mod from Steam, extract it and put it in the Mods Folder… Nothing more 😕

---

<div class="post-metadata">

**Author:** ![f0rkz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@f0rkz](https://forums.unrealengine.com/u/f0rkz)\
**Post date:** [April 13, 2016, 5:58pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/14 "2016-04-13T17:58:07Z")

</div>

> [@deekay0;388997](#):
>
> Its finish: [https://github.com/TheCherry/ark-server-manager/blob/master/src/z\_unpack.py](https://github.com/TheCherry/ark-server-manager/blob/master/src/z_unpack.py)  
> you can now decompress .z files with that:
> 
> ```auto
> 
> python z_unpack.py "modfile.uasset.z" "modfile.uasset"
> 
> ```
> 
> Hope it work correctly for bigger z files too, need some tests with decompressed files by the original ARK game.
> 
> At last there is a .mod file too. Its not hard to build it, but need to code that too.  
> Then you can start to develop your script.

Dude. You don’t even know how happy I am that I found this. You are a life saver to say the least.

I used your code and turned it into a class for my project:

> <https://github.com/f0rkz/ARKDaemon/blob/master/ARKDaemon/ZUnpack.py>

Ok, so I am like 70% sure I have what you guys are looking for in my script. I am still developing the \*\*\*\* out of this program but I wanted to share it as I have had some hurdles to jump over to accommodate mods thanks to the backward way they are packaged.

> **[GitHub - f0rkz/ARKDaemon: A Python Tool for ARK Dedicated Servers](https://github.com/f0rkz/ARKDaemon)**
>
> A Python Tool for ARK Dedicated Servers. Contribute to f0rkz/ARKDaemon development by creating an account on GitHub.

There’s the script. As of this writing the (hopefully working) mod stuff is in the dev branch. I am going to do some minor testing to make sure that it all works and I will be ready to merge to master.

One thing I was wondering is if it matters between the WindowsNoEditor and LinuxNoEditor files. I’ve been using Windows for Windows and Linux for Linux, but I see arkmanager uses the Windows branch by default.

Edit:

Well, looks like LinuxNoEditor ends up with massive crashes. Switched to WindowsNoEditor and everything works! I installed Valhalla on my test environment and it is working. I can’t test if the other mods installed work without the mod file (so far I am guessing it does). I will update with more tonight.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e5b88159](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e5b88159](https://forums.unrealengine.com/u/anonymous_user_e5b88159)\
**Post date:** [April 28, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/15 "2016-04-28T20:36:52Z")

</div>

I always try to use the Linux versions of the mods first, if available, then if they crash the server, switch to the Windows versions. I’ve got a couple of bash scripts I made to hadle the server updates with or without mods. I don’t mind sharing if anyone is interested… I wrote them for my personal use on my server that’s on my local machine so they may or may not be useful to anyone else. In order to work properly, the client has to be logged in first, whenever there’re mod updates, so the client side can download and build the .mod files. Basically it’s a 2 bash script setup that uses the z\_unpack.py script. The main script is basically for running as my normal user, passing in an argument to indicate how I want to update (with or without the mods), and that script in turn calls the other script as the “steam” user to run the actual steamcmd update. At the end, the .mod files are copied from the client to the server. I’m no bash expert so I’m sure there’s room for improvement, but they work well (as long as I don’t forget to run the client and let it update the .mods first).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f4ca2388](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f4ca2388](https://forums.unrealengine.com/u/anonymous_user_f4ca2388)\
**Post date:** [May 2, 2016, 9:11pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/16 "2016-05-02T21:11:44Z")

</div>

Here’s the script I use in my docker containers

---

<div class="post-metadata">

**Author:** ![akang9986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akang9986](https://forums.unrealengine.com/u/akang9986)\
**Post date:** [January 25, 2017, 8:01am UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/17 "2017-01-25T08:01:19Z")

</div>

My English isn’t very good.  
Could u tell me how to use the z\_unpack.py.  
I installed python and where should i put the .py ??  
I have use steamcmd download mod in F:\STEAM\steamapps\workshop\content\346110\842913750 ,so how to use the .py???

Thanks for any answers.

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 9, 2022, 9:28pm UTC](https://forums.unrealengine.com/t/mod-installation-on-linux/41972/18 "2022-03-09T21:28:38Z")

</div>


