[Quake2world-dev] [jdolan.dyndns.org] #62: QStat / XQF support
jdolan.dyndns.org
trac at jdolan.dyndns.org
Thu Apr 2 01:03:41 UTC 2009
#62: QStat / XQF support
---------------------+------------------------------------------------------
Reporter: jdolan | Owner: lnxus
Type: task | Status: assigned
Priority: major | Component: quake2world
Resolution: | Keywords: qstat master server xqf
---------------------+------------------------------------------------------
Comment(by lnxus):
Steps to add q2w support to xqf
Make sure to complete the qstat steps above.
Edit src/games.xml from xqf
Add this block (I added it below Q2)
<game>
<type>Q2W_SERVER</type>
<flags>GAME_CONNECT | GAME_RECORD | GAME_SPECTATE | GAME_PASSWORD
| GAME_RCON</flags>
<name>Quake2World</name>
<default_port>1998</default_port>
<id>Q2W</id>
<qstat_str>Q2W</qstat_str>
<qstat_option>-q2w</qstat_option>
<icon>q2w.xpm</icon>
<parse_player>q2_parse_player</parse_player>
<analyze_serverinfo>q2_analyze_serverinfo</analyze_serverinfo>
<config_is_valid>quake_config_is_valid</config_is_valid>
<write_config>write_q2_vars</write_config>
<exec_client>q2_exec</exec_client>
<custom_cfgs>quake_custom_cfgs</custom_cfgs>
<init_maps>quake_init_maps</init_maps>
<has_map>quake_has_map</has_map>
<arch_identifier>version</arch_identifier>
<identify_cpu>identify_cpu</identify_cpu>
<identify_os>identify_os</identify_os>
<command>quake2world</command>
<cmd_or_dir_changed>q2_cmd_or_dir_changed</cmd_or_dir_changed>
<prefs_load>q2_prefs_load</prefs_load>
<update_prefs>q2_update_prefs</update_prefs>
<main_mod>default</main_mod>
<pd>q2_private</pd>
</game>
Run make gamesxml2c
Then run ./gamesxml2c games.xml > games.c
Run make
Newly compiled xqf will have Q2W support.
A q2w.xpm should be added for an icon.
Feel free to send these changes upstream to xqf if desired.
--
Ticket URL: <http://jdolan.dyndns.org/trac/ticket/62#comment:3>
jdolan.dyndns.org <http://jdolan.dyndns.org>
jdolan.dyndns.org
More information about the Quake2World-dev
mailing list