1,584
edits
DrinkyBird (talk | contribs) (Add SQF2_COUNTRY information) |
DrinkyBird (talk | contribs) (3.1 is released, so Devfeature templates have been removed) |
||
Line 172: | Line 172: | ||
| <tt>SQF_DEH</tt> || <tt>0x40000000</tt> || List of DEHACKED patches loaded by the server. | | <tt>SQF_DEH</tt> || <tt>0x40000000</tt> || List of DEHACKED patches loaded by the server. | ||
|- | |- | ||
| <tt>SQF_EXTENDED_INFO</tt> || <tt>0x80000000</tt> || | | <tt>SQF_EXTENDED_INFO</tt> || <tt>0x80000000</tt> || Additional server information, see the table below for more information. | ||
|} | |} | ||
=== Extended flags === | === Extended flags === | ||
{| class="wikitable" | {| class="wikitable" | ||
! Name || Value || Description | ! Name || Value || Description | ||
Line 200: | Line 199: | ||
|Long || Time || Current time, this will be sent back to you so you can determine ping. | |Long || Time || Current time, this will be sent back to you so you can determine ping. | ||
|- | |- | ||
|Long || Flags2 || | |Long || Flags2 || The extended information you want. Ensure you specify <tt>SQF_EXTENDED_INFO</tt> in the normal Flags field as well. This field is optional - if this field is not present, its value is inferred to be 0. Older servers will ignore this field. | ||
|} | |} | ||
Line 439: | Line 438: | ||
| Long | | Long | ||
| <tt>SQF_EXTENDED_INFO</tt> | | <tt>SQF_EXTENDED_INFO</tt> | ||
| | | The flags specifying extended server information you will receive. Check all <tt>SQF2</tt> values against this field. | ||
|- | |- | ||
| Byte | | Byte | ||
| <tt>SQF2_PWAD_HASHES</tt> | | <tt>SQF2_PWAD_HASHES</tt> | ||
| | | The number of hashes sent. | ||
|- | |- | ||
| String | | String | ||
| <tt>SQF2_PWAD_HASHES</tt> | | <tt>SQF2_PWAD_HASHES</tt> | ||
| | | The hash of the PWAD, sent for each PWAD. The indices are the same as sent in <tt>SQF_PWADS</tt> | ||
|- | |- | ||
| Byte[3] | | Byte[3] | ||
| <tt>SQF2_COUNTRY</tt> | | <tt>SQF2_COUNTRY</tt> | ||
| | | The server's ISO 3166-1 alpha-3 country code. This is sent as a raw char array of 3 length, there is no null terminator. Zandronum also has two special values for this field, <tt>XIP</tt> and <tt>XUN</tt>. See [[#Country codes]] below for how to handle this field. | ||
|} | |} | ||