Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 33 additions & 31 deletions docs/tests/protocols/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,47 @@ Protocols Tests
===============

.. toctree::
test_ase/index
test_avp2/index
test_battlefield/index
test_battlefield2/index
test_cod1/index
test_cod4/index
test_doom3/index
test_eldewrito/index
test_eos/index
test_fivem/index
test_halo1/index
test_flatout2/index
test_gamespy1/index
test_battlefield2/index
test_ssc/index
test_source/index
test_won/index
test_fivem/index
test_gamespy2/index
test_nadeo/index
test_trackmania_nations/index
test_ut3/index
test_eldewrito/index
test_eos/index
test_renegadex/index
test_stronghold_ce/index
test_quake2/index
test_gamespy3/index
test_gamespy4/index
test_halo1/index
test_stronghold_crusader/index
test_supcom/index
test_kaillera/index
test_toxikk/index
test_avp2/index
test_gamespy1/index
test_scum/index
test_raknet/index
test_killingfloor/index
test_minecraft/index
test_nadeo/index
test_battlefield/index
test_palworld/index
test_quake1/index
test_quake2/index
test_quake3/index
test_raknet/index
test_renegadex/index
test_doom3/index
test_w40kdow/index
test_samp/index
test_satisfactory/index
test_scum/index
test_source/index
test_ssc/index
test_stronghold_ce/index
test_stronghold_crusader/index
test_ase/index
test_teamspeak3/index
test_toxikk/index
test_trackmania_nations/index
test_unreal2/index
test_ut3/index
test_vcmp/index
test_w40kdow/index
test_minecraft/index
test_quake3/index
test_warcraft3/index
test_won/index
test_quake1/index
test_jediknight/index
test_unreal2/index
test_gamespy4/index
test_cod1/index
test_satisfactory/index
10 changes: 10 additions & 0 deletions docs/tests/protocols/test_jediknight/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.. _test_jediknight:

test_jediknight
===============

.. toctree::
test_get_status
test_get_info
test_protocol_properties
test_get_full_status
75 changes: 75 additions & 0 deletions docs/tests/protocols/test_jediknight/test_get_full_status.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
test_get_full_status
====================

Here are the results for the test method.

.. code-block:: json

{
"info": {
"fdisable": "0",
"wdisable": "0",
"truejedi": "0",
"needpass": "0",
"gametype": "0",
"sv_maxclients": "8",
"clients": "1",
"mapname": "mp/ffa1",
"hostname": "*Jedi*",
"protocol": "26",
"challenge": "xxx",
"gametype_translated": "Free For All"
},
"status": {
"g_siegeTeam2": "none",
"g_siegeTeam1": "none",
"g_siegeRespawn": "20",
"g_weaponDisable": "0",
"g_forcePowerDisable": "0",
"g_forceRegenTime": "200",
"g_jediVmerc": "0",
"g_maxGameClients": "0",
"sv_maxclients": "8",
"g_duelWeaponDisable": "524279",
"g_forceBasedTeams": "0",
"duel_fraglimit": "10",
"g_maxForceRank": "6",
"g_saberLocking": "1",
"g_privateDuel": "1",
"timelimit": "0",
"fraglimit": "1",
"dmflags": "0",
"g_siegeTeamSwitch": "1",
"sv_floodProtect": "1",
"sv_maxPing": "0",
"sv_minPing": "0",
"sv_maxRate": "0",
"sv_hostname": "*Jedi*",
"capturelimit": "0",
"version": "JAmp: v1.0.1.0 win-x86 Oct 24 2003",
"g_maxHolocronCarry": "3",
"g_gametype": "0",
"g_needpass": "0",
"protocol": "26",
"mapname": "mp/ffa1",
"sv_privateClients": "0",
"sv_allowDownload": "0",
"bot_minplayers": "0",
"g_debugMelee": "0",
"g_stepSlideFix": "1",
"g_noSpecMove": "0",
"gamename": "basejka",
"g_allowNPC": "1",
"g_saberWallDamageScale": "0.4",
"bg_fighterAltControl": "0",
"g_showDuelHealths": "0",
"players": [
{
"score": 0,
"ping": 0,
"name": "Padawan"
}
],
"g_gametype_translated": "Free For All"
}
}
21 changes: 21 additions & 0 deletions docs/tests/protocols/test_jediknight/test_get_info.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
test_get_info
=============

Here are the results for the test method.

.. code-block:: json

{
"fdisable": "0",
"wdisable": "0",
"truejedi": "0",
"needpass": "0",
"gametype": "0",
"sv_maxclients": "8",
"clients": "1",
"mapname": "mp/ffa1",
"hostname": "*Jedi*",
"protocol": "26",
"challenge": "xxx",
"gametype_translated": "Free For All"
}
59 changes: 59 additions & 0 deletions docs/tests/protocols/test_jediknight/test_get_status.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
test_get_status
===============

Here are the results for the test method.

.. code-block:: json

{
"g_siegeTeam2": "none",
"g_siegeTeam1": "none",
"g_siegeRespawn": "20",
"g_weaponDisable": "0",
"g_forcePowerDisable": "0",
"g_forceRegenTime": "200",
"g_jediVmerc": "0",
"g_maxGameClients": "0",
"sv_maxclients": "8",
"g_duelWeaponDisable": "524279",
"g_forceBasedTeams": "0",
"duel_fraglimit": "10",
"g_maxForceRank": "6",
"g_saberLocking": "1",
"g_privateDuel": "1",
"timelimit": "0",
"fraglimit": "1",
"dmflags": "0",
"g_siegeTeamSwitch": "1",
"sv_floodProtect": "1",
"sv_maxPing": "0",
"sv_minPing": "0",
"sv_maxRate": "0",
"sv_hostname": "*Jedi*",
"capturelimit": "0",
"version": "JAmp: v1.0.1.0 win-x86 Oct 24 2003",
"g_maxHolocronCarry": "3",
"g_gametype": "0",
"g_needpass": "0",
"protocol": "26",
"mapname": "mp/ffa1",
"sv_privateClients": "0",
"sv_allowDownload": "0",
"bot_minplayers": "0",
"g_debugMelee": "0",
"g_stepSlideFix": "1",
"g_noSpecMove": "0",
"gamename": "basejka",
"g_allowNPC": "1",
"g_saberWallDamageScale": "0.4",
"bg_fighterAltControl": "0",
"g_showDuelHealths": "0",
"players": [
{
"score": 0,
"ping": 0,
"name": "Padawan"
}
],
"g_gametype_translated": "Free For All"
}
14 changes: 14 additions & 0 deletions docs/tests/protocols/test_jediknight/test_protocol_properties.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
test_protocol_properties
========================

Here are the results for the test method.

.. code-block:: json

{
"_host": "172.29.100.29",
"_port": 29070,
"_timeout": 5.0,
"_allow_broadcast": false,
"_source_port": 29070
}
7 changes: 7 additions & 0 deletions docs/tests/protocols/test_supcom/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _test_supcom:

test_supcom
===========

.. toctree::
test_get_status
92 changes: 92 additions & 0 deletions docs/tests/protocols/test_supcom/test_get_status.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
test_get_status
===============

Here are the results for the test method.

.. code-block:: json

{
"game_name": "Banane",
"hosted_by": "Test",
"product_code": "SC1",
"scenario_file": "/maps/scmp_034/scmp_034_scenario.lua",
"num_players": 2,
"max_players": 4,
"map_width": 512,
"map_height": 512,
"map_name_lookup": "High Noon",
"game_speed": "normal",
"victory_condition": "demoralization",
"fog_of_war": "explored",
"unit_cap": "500",
"cheats_enabled": false,
"team_lock": "locked",
"team_spawn": "random",
"allow_observers": true,
"no_rush_option": "Off",
"prebuilt_units": "Off",
"civilian_alliance": "enemy",
"timeouts": "3",
"options": {
"HostedBy": "Test",
"TeamLock": "locked",
"CheatsEnabled": "false",
"AllowObservers": true,
"Victory": "demoralization",
"PrebuiltUnits": "Off",
"CivilianAlliance": "enemy",
"Timeouts": "3",
"NoRushOption": "Off",
"TeamSpawn": "random",
"ScenarioFile": "/maps/scmp_034/scmp_034_scenario.lua",
"UnitCap": "500",
"GameSpeed": "normal",
"FogOfWar": "explored",
"GameName": "Banane",
"ProductCode": "SC1",
"PlayerCount": 2
},
"raw": {
"parsed_data": {
"HostedBy": "Test",
"TeamLock": "locked",
"CheatsEnabled": "false",
"AllowObservers": true,
"Victory": "demoralization",
"PrebuiltUnits": "Off",
"CivilianAlliance": "enemy",
"Timeouts": "3",
"NoRushOption": "Off",
"TeamSpawn": "random",
"ScenarioFile": "/maps/scmp_034/scmp_034_scenario.lua",
"UnitCap": "500",
"GameSpeed": "normal",
"FogOfWar": "explored",
"GameName": "Banane",
"ProductCode": "SC1",
"PlayerCount": 2
},
"options": {},
"all_data": {
"HostedBy": "Test",
"TeamLock": "locked",
"CheatsEnabled": "false",
"AllowObservers": true,
"Victory": "demoralization",
"PrebuiltUnits": "Off",
"CivilianAlliance": "enemy",
"Timeouts": "3",
"NoRushOption": "Off",
"TeamSpawn": "random",
"ScenarioFile": "/maps/scmp_034/scmp_034_scenario.lua",
"UnitCap": "500",
"GameSpeed": "normal",
"FogOfWar": "explored",
"GameName": "Banane",
"ProductCode": "SC1",
"PlayerCount": 2
},
"response_length": 376,
"raw_hex": "6f78010b010002ccf20401486f73746564427900015465737400014f7074696f6e730004015465616d4c6f636b00016c6f636b65640001436865617473456e61626c6564000166616c73650001416c6c6f774f627365727665727300030101566963746f7279000164656d6f72616c697a6174696f6e00015072656275696c74556e69747300014f66660001436976696c69616e416c6c69616e63650001656e656d79000154696d656f75747300013300014e6f527573684f7074696f6e00014f666600015465616d537061776e000172616e646f6d00015363656e6172696f46696c6500012f6d6170732f73636d705f3033342f73636d705f3033345f7363656e6172696f2e6c75610001556e69744361700001353030000147616d65537065656400016e6f726d616c0001466f674f6657617200016578706c6f72656400050147616d654e616d65000142616e616e65000150726f64756374436f646500015343310001506c61796572436f756e7400000000004005"
}
}
2 changes: 2 additions & 0 deletions opengsq/protocols/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from opengsq.protocols.gamespy3 import GameSpy3
from opengsq.protocols.gamespy4 import GameSpy4
from opengsq.protocols.halo1 import Halo1
from opengsq.protocols.jediknight import JediKnight
from opengsq.protocols.kaillera import Kaillera
from opengsq.protocols.killingfloor import KillingFloor
from opengsq.protocols.minecraft import Minecraft
Expand All @@ -33,6 +34,7 @@
from opengsq.protocols.scum import Scum
from opengsq.protocols.source import Source
from opengsq.protocols.ssc import SSC
from opengsq.protocols.supcom import SupCom
from opengsq.protocols.stronghold_ce import StrongholdCE
from opengsq.protocols.stronghold_crusader import StrongholdCrusader
from opengsq.protocols.teamspeak3 import TeamSpeak3
Expand Down
Loading