Page 1 of 1
How to figure out git revision from which client is built
Posted: Mon Apr 03, 2023 8:37 pm
by doomista
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.
Re: How to figure out git revision from which client is built
Posted: Tue Apr 04, 2023 1:52 am
by WaTaKiD
run the binary then open the ingame console and use either the 'version_info' or 'gameversion' ccmds
Re: How to figure out git revision from which client is built
Posted: Tue Apr 04, 2023 8:34 am
by doomista
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.
Re: How to figure out git revision from which client is built
Posted: Tue Apr 04, 2023 10:09 pm
by Sean
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.
Re: How to figure out git revision from which client is built
Posted: Mon Apr 17, 2023 5:41 pm
by doomista
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.