User Tools

Site Tools


en:games:star_trek_armada_1:directplay_game_query

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:games:star_trek_armada_1:directplay_game_query [2024-10-20-14-03] 7saturnen:games:star_trek_armada_1:directplay_game_query [2024-10-30-02-08] (current) – [Description 1] 7saturn
Line 49: Line 49:
  
 ==== Answer Contents ==== ==== Answer Contents ====
 +=== General DirectPlay Structure ===
 The answer to such a request is relatively long, but mostly because the payload needs actual space: The answer to such a request is relatively long, but mostly because the payload needs actual space:
  
Line 72: Line 73:
 | Data | 92/5c | Lobby name, 30 bytes | | Data | 92/5c | Lobby name, 30 bytes |
  
-Session Description Flags are a bit field of length 32 bits/4 bytes with the following meaning:+//Session Description Flags// are a bit field of length 32 bits/4 bytes with the following meaning:
  
 ^  Bit Position  ^  Description  ^ ^  Bit Position  ^  Description  ^
Line 95: Line 96:
 | 32 | No Create Players | | 32 | No Create Players |
  
-Reserved 1 and Description 1 seem to change. They must somehow indicatewhether there is a password setor not, and if it is a head to head match, or a normal matchThe clients can tell the differenceso it must be in thereIt may also contain information about any already running match (clients also can tell the difference).+**Note**: The //Session Description Flags// like //Can Join// have nothing to do with the actual Armada information about the match, e.g. whether the game is closed off, or not. Some of that information can be found in the //Description 1// block. 
 + 
 +=== Description 1 === 
 +Reserved 1 and Description 1 seem to change. The rest is (aside from the obvious GUIDs) static. //Description 1// holds at least the following information. The offset values are 0-based in relation to the entire DirectPlay block (first byte has number 0values only start at 72). The bits are 1 based. 
 + 
 +^ Byte Dec ^ Byte Hex ^ Bit ^ Description ^ 
 +| 73 | 49 | 1-3 | Max. number of players. If this value is 8 (all player slots available)all three bits are set to 0. Otherwise the little-endian representation is the actual max. number of players. | 
 +| 74 | 4a | 2 | IS the match a head-to-head match (basically 1v1)? 1 means yes0 means no
 +| 74 | 4a | 3 | Has the match been protected by a password? 1 means yes0 means no
 +| 74 | 4a | 6 | Is a match already ongoing (has started)? 1 means yes, 0 means no. | 
 +| 74 | 4a | 7 | Has the match been closed (no joining possible)? 1 means yes, 0 means no|
  
 {{page>footer&nofooter}} {{page>footer&nofooter}}
en/games/star_trek_armada_1/directplay_game_query.1729425799.txt.gz · Last modified: 2024-10-20-14-03 by 7saturn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki