How to figure out git revision from which client is built

General help and assistance forum.
Post Reply
User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

How to figure out git revision from which client is built

#1

Post by doomista » Mon Apr 03, 2023 8:37 pm

Hi, I am trying to setup an RPi server after a long time and even though I can build it just fine, I get a server/client mismatch when I try to connect to it. I tried using version tagged with 3.1 from this repo: https://hg.osdn.net/view/zandronum/zandronum-stable/ and latest client from the Download page.

Server has version 3.1-R-300101-0000
Client has version 3.1-R211211-2135

Is there a way to figure out from which commit the client was built so I can use the same for building the server? I am planning a LAN party with Macs involved and I can't compile those clients for myself.

User avatar
WaTaKiD
Master Server Admin
Posts: 126
Joined: Mon Oct 08, 2012 4:40 am
Location: USA

Re: How to figure out git revision from which client is built

#2

Post by WaTaKiD » Tue Apr 04, 2023 1:52 am

run the binary then open the ingame console and use either the 'version_info' or 'gameversion' ccmds

User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

Re: How to figure out git revision from which client is built

#3

Post by doomista » Tue Apr 04, 2023 8:34 am

Thanks! 'gameversion' command was the thing I was looking for. It seems I had to confuse files along the way, because the commit from client is the one tagged as 3.1 on Mercurial. It works now.

User avatar
Sean
IRC Operator
Posts: 952
Joined: Thu Jan 16, 2014 9:09 pm
Location: United Kingdom
Contact:

Re: How to figure out git revision from which client is built

#4

Post by Sean » Tue Apr 04, 2023 10:09 pm

doomista wrote:
Mon Apr 03, 2023 8:37 pm
Server has version 3.1-R-300101-0000
FWIW this suggests the server was not built from the Mercurial repository and is therefore missing its commit info - note how the version string is a date for midnight on January 1st 20-negative-30, aka 1970-01-01 00:00, aka zero. Zandronum should be built from the repo and not source archives etc because otherwise this happens.
<capodecima> i dont say any more word without my loyer jenova

User avatar
doomista
Forum Regular
Posts: 147
Joined: Sat Mar 07, 2015 6:58 pm
Location: I've been to hell. Twice

Re: How to figure out git revision from which client is built

#5

Post by doomista » Mon Apr 17, 2023 5:41 pm

Sean wrote:
Tue Apr 04, 2023 10:09 pm
doomista wrote:
Mon Apr 03, 2023 8:37 pm
Server has version 3.1-R-300101-0000
FWIW this suggests the server was not built from the Mercurial repository and is therefore missing its commit info - note how the version string is a date for midnight on January 1st 20-negative-30, aka 1970-01-01 00:00, aka zero. Zandronum should be built from the repo and not source archives etc because otherwise this happens.
That could be it. I didn't want to bother with Mercurial the first time around so I just downloaded archive based on the tag. Didn't know the version depends on git.

Post Reply