Ticket #82 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

Make a cvar containing server version

Reported by: mdoison Owned by: nobody
Priority: blocker Milestone: Tag "eggy" version
Component: both Version:
Keywords: Cc:

Description

This feature *must* be included in eggy, to know what tremulous version run in a server

It could be a CVAR_ROM | CVAR_SERVERSTATUS cvar named sv_version, containing a macro named SERVER_VERSION

Maybe define SERVER_VERSION like that:

#ifndef SERVER_VERSION
#define SERVER_VERSION "DnC Eggy"
#endif SERVER_VERSION

it permit to make easly a gcc -DSERVER_VERSION "whatIwant"

Change History

Changed 3 years ago by mdoison

  • status changed from new to closed
  • resolution set to fixed

I made not 1 cvar, but 4:

  • sv_version for tremded binary
  • cl_version for tremulous binary
  • g_version for game.qvm/so
  • cg_version for cgame.qvm/so

sv_version and g_version set to SERVER_VERSION[BR] cl_version and cg_version set to CLIENT_VERSION

SERVER_VERSION and CLIENT_VERSION defined in qcommon/qcommon.h, and can be overwriten at compilation with -D flag

All cvar having flags CVAR_ROM and CVAR_SERVERINFO or CVAR_USERINFO

Note: See TracTickets for help on using tickets.