Xonotic Forums
csprogs.dat in pk3? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16)
+--- Thread: csprogs.dat in pk3? (/showthread.php?tid=7783)

csprogs.dat in pk3? - BuddyFriendGuy - 07-30-2018

Somebody was mentioning that I should pack csprogs.dat in pk3 format for faster download.
How do I do that?
Also, how unique is csprogs.dat? I assume it's identical as long as it's the same git commit, correct? Is it a good idea to centralize it?

title changed: "csprogrs.dat" -> "csprogs.dat" ~~ Mr. Bougo

RE: csprogrs.dat in pk3? - SpiKe - 07-31-2018

After you compiled Xonotic, you'll find a csprogs-xonotic-v0.8.2-xxxx-xxxxxxx.pk3 in xonotic/data/xonotic-data.pk3dir/qcsrc/
I simply copy-paste this pk3 on .xonotic/data and on my http map repository.

The csprogs pk3 is indeed the same if you have different Xonotic installations based on the same xonotic-data git commit.

RE: csprogrs.dat in pk3? - Freddy - 07-31-2018

As long as you don't have a "dirty" git state in your xonotic-data.pk3dir the csprogs' names should not collide as the number is the checksum of the current git commit. If you have uncommited changes in that repo, the file name should have an extra character at the end (either "*" or "~", can't remember which is actually used). But even then two csprogs files would need to have the same base commit with both having different uncommited changes to actually cause problems

RE: csprogrs.dat in pk3? - BuddyFriendGuy - 08-18-2018

Thanks a lot for the clarification, @Spike and @Freddy.
Now does it mean if two servers use the same git commit, a player visiting both only needs to download csprogs-xxx-xxxx.pk3 once?