Xonotic Forums
[SOLVED] How to build data - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: [SOLVED] How to build data (/showthread.php?tid=8112)



How to build data - AriosJentu - 08-11-2019

Hi. I have a question about building this project. It's size is almost 1GB, but when I execute make in main directory of this repository, it builds only one file - csprogs-xonotic-v0.8.2-2823-g3f151f4a5.pk3. It's size less than 1MB, and there is nothing else created. Also, there is no information about build all data files in Makefile, and I was thinking about using CMake to build project. So, how can I build full data files packages to test them in game?


RE: How to build data - martin-t - 08-12-2019

Nobody knows. More or less. When making Xonotic releases we have a script that runs on our server (and depends on a Windows VM among other things). It's 2k lines of bash and nobody wants to touch it. It usually works. When it doesn't we delay a release for a year until somebody fixes it.

Normally you don't need to build data separately (it never even occurred to me to try it), the Makefile only compiles gamelogic - for historical reason all the code is in the data repo too. Have you seen our build instructions? If you wanna change assets, the easiest way is to just use git, compile xon using the "all" script and just change the assets in the data repo manually.

If you want to override the assets in your normal client, you can create pk3 files (they're just renamed zip) with them and put them in your data directory. The directory structure in the pk3 has to mirror the directory structure where the file you want to override is located. Here's an example pk3 that changes sounds: https://forums.xonotic.org/showthread.php?tid=7833


RE: How to build data - AriosJentu - 08-12-2019

Thank you. I've read this instructions in previous, but I was thinking that data files build separately (for example - in arch pacman has xonotic game and xonotic data files packages).


RE: How to build data - martin-t - 08-12-2019

We actually don't know who packages Xonotic for most distros and other package managers. They usually take the zip and just package that because nobody has figured out how to build xon properly. The "all" script takes care of everything as long as you don't intent to publish xon. The real release script packages and compresses textures, probably some other stuff.


RE: How to build data - AriosJentu - 08-13-2019

Thank you for your answers. Solved Smile


RE: How to build data - Freddy - 08-14-2019

Arch just copies the pk3 files from the zip package: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/xonotic-data
The AUR package xonotic-git pretty much follows the compile guide: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=xonotic-git