Task #1225

Add cgame/qgame version check

Added by Spyhawk 9 months ago. Updated 7 months ago.

Status:New% Done:


Priority:NormalSpent time:-
Category:Mod generic
Target version:2.78
OS: Arch:


Version string of UI/cgame/qgame are displayed in console by default.
Try checking for cgame/qgame version match, and print a warning if that isn’t the case (console, or maybe even in the center screen?).

Associated revisions

Revision e8fec93e
Added by Spyhawk 8 months ago

mod: added mod version mismatch check, fixes #1225

Reuse unused but existing client/server version check

Revision 50c4a35b
Added by Spyhawk 7 months ago

game: ensure dropped client isn’t processed, refs #1225

Revision f335fe7e
Added by Spyhawk 7 months ago

misc: use fixed git version length, refs #1225

Revision 7134696d
Added by Spyhawk 7 months ago

mod: revert cgame/game version check, refs #1225"

This eventually proved to be more problematic than it was
initilly expected, especially as dev with test versions
prevented to be launched when older downloaded versions are
in fs_homepath. Revert for now.

This reverts commit f335fe7ebe12b496f389a7ef3cb47515dbed9e87.
This reverts commit 50c4a35bf7f9771a9e8cfb85a67a5b78f1ecfb2d.
This reverts commit e8fec93efc31996db725a0534e2ffe590e6aee2b.


#1 Updated by Spyhawk 9 months ago

See the already implemented (but disabled) `G_CheckVersion()` function.
Rather than a print, drop the client with a clean message (better than the actual "unknown event 67").

#2 Updated by Spyhawk 8 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#3 Updated by Spyhawk 7 months ago

  • Status changed from Fixed to In Progress

#4 Updated by Spyhawk 7 months ago

Note: Newer git versions (2.11) seem to have a different output than older version (f.e. 2.5), with 8 hex digits rather than 7 (dynamic length). This is problematic when compiling the game on older platforms like CentOS 7.

Edit: thie is also problematic when used as a dev, with older downloaded bin versions preventing dev version to be launched locally. Inspect again once the contanerized FS is fully implemented.

Also, the engine version check might actually be important to keep (2.55?).

#5 Updated by Spyhawk 7 months ago

  • Status changed from In Progress to New
  • Target version changed from 2.77 to 2.78
  • % Done changed from 100 to 0

Also available in: Atom PDF