Skip to content
Open
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ from opengsq.protocols import (
StrongholdCrusader,
TeamSpeak3,
TrackmaniaNations,
TrackmaniaSunrise,
Toxikk,
UDK,
Unreal2,
Expand Down
1 change: 1 addition & 0 deletions docs/tests/protocols/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Protocols Tests
test_teamspeak3/index
test_toxikk/index
test_trackmania_nations/index
test_trackmania_sunrise/index
test_unreal2/index
test_ut3/index
test_vcmp/index
Expand Down
161 changes: 147 additions & 14 deletions docs/tests/protocols/test_trackmania_nations/test_get_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,159 @@ Here are the results for the test method.
.. code-block:: json

{
"name": "Kawabonga",
"map": "B02-Race",
"players": 1,
"max_players": 6,
"game_mode": "Team",
"password_protected": true,
"name": "TMNF Dedicated",
"map": "D15-Endurance",
"players": 0,
"max_players": 32,
"game_mode": "TimeAttack",
"password_protected": false,
"version": null,
"environment": "Stadium",
"comment": "PC-ce9b0c",
"server_login": "",
"pc_guid": "PC-ce9b0c",
"time_limit": 0,
"comment": "Trackmania Nations Forever Dedicated Server",
"server_login": "tmnf-test",
"pc_guid": "tmnf-test",
"time_limit": 180000,
"nb_laps": 0,
"spectator_slots": 0,
"spectator_slots": 32,
"build_number": 0,
"private_server": true,
"private_server": false,
"ladder_server": false,
"status_flags": 0,
"challenge_crc": 0,
"public_ip": "",
"local_ip": "",
"raw_data": "9b0000008303681ac2009b0000000a0700000006000000d53d41008b5c00000b2d1d641dac2e090900000050432d636539623063050000002353525623500204000106000600094402074b617761626f6e6761075001075374616469756d0100002c6c0001ffffffff940602e09304000178030001080000004230322d526163657a710000b9020079020374040b000040070000005374616469756d110000"
"local_ip": "10.10.100.212",
"spectators": 0,
"max_spectators": 32,
"spectator_password_protected": false,
"ladder_mode": 0,
"game_mode_id": 1,
"points_limit": 0,
"pack_mask": "Stadium",
"nb_challenges": 60,
"challenges": [
{
"name": "D15-Endurance",
"gold_time": 498250,
"copper_price": 2521,
"environment": "Stadium"
},
{
"name": "B11-Race",
"gold_time": 33700,
"copper_price": 1990,
"environment": "Stadium"
},
{
"name": "C07-Race",
"gold_time": 41980,
"copper_price": 1564,
"environment": "Stadium"
},
{
"name": "D11-Acrobatic",
"gold_time": 15630,
"copper_price": 876,
"environment": "Stadium"
},
{
"name": "C06-Speed",
"gold_time": 59030,
"copper_price": 1966,
"environment": "Stadium"
},
{
"name": "D02-Race",
"gold_time": 56860,
"copper_price": 1713,
"environment": "Stadium"
},
{
"name": "B03-Race",
"gold_time": 28790,
"copper_price": 1313,
"environment": "Stadium"
},
{
"name": "B01-Race",
"gold_time": 27800,
"copper_price": 1961,
"environment": "Stadium"
},
{
"name": "D01-endurance",
"gold_time": 163040,
"copper_price": 2227,
"environment": "Stadium"
},
{
"name": "C14-Endurance",
"gold_time": 121280,
"copper_price": 1831,
"environment": "Stadium"
},
{
"name": "C09-Race",
"gold_time": 53350,
"copper_price": 1630,
"environment": "Stadium"
},
{
"name": "D07-Race",
"gold_time": 64550,
"copper_price": 2059,
"environment": "Stadium"
},
{
"name": "C15-Speed",
"gold_time": 53920,
"copper_price": 2010,
"environment": "Stadium"
},
{
"name": "D10-Race",
"gold_time": 59610,
"copper_price": 1533,
"environment": "Stadium"
},
{
"name": "C02-Race",
"gold_time": 44880,
"copper_price": 2010,
"environment": "Stadium"
},
{
"name": "A08-Endurance",
"gold_time": 68380,
"copper_price": 1563,
"environment": "Stadium"
},
{
"name": "D13-Race",
"gold_time": 78930,
"copper_price": 2272,
"environment": "Stadium"
},
{
"name": "C01-Race",
"gold_time": 31200,
"copper_price": 939,
"environment": "Stadium"
},
{
"name": "B12-Race",
"gold_time": 47500,
"copper_price": 1233,
"environment": "Stadium"
},
{
"name": "A03-Race",
"gold_time": 19840,
"copper_price": 952,
"environment": "Stadium"
}
],
"player_list": [],
"server_address": "10.10.100.212",
"server_port": 2350,
"raw_data": "2dd4640a0a2e0909000000746d6e662d746573740500000023535256230000000000200020000e000000544d4e4620446564696361746564070000005374616469756d000000002b000000547261636b6d616e6961204e6174696f6e7320466f726576657220446564696361746564205365727665720120bf02003c140000000d0000004431352d456e647572616e63654a9a0700d90900080000004231312d52616365a4830000c60700080000004330372d52616365fca300001c06000d0000004431312d4163726f62617469630e3d00006c0300090000004330362d537065656496e60000ae0700080000004430322d526163651cde0000b10600080000004230332d5261636576700000210500080000004230312d52616365986c0000a907000d0000004430312d656e647572616e6365e07c0200b308000d0000004331342d456e647572616e6365c0d90100270700080000004330392d5261636566d000005e0600080000004430372d5261636526fc00000b0800090000004331352d5370656564a0d20000da0700080000004431302d52616365dae80000fd0500080000004330322d5261636550af0000da07000d0000004130382d456e647572616e63651c0b01001b0600080000004431332d5261636552340100e00800080000004330312d52616365e0790000ab0300080000004231322d526163658cb90000d10400080000004130332d52616365804d0000b80300010000000300000000000040070000005374616469756d"
}
8 changes: 8 additions & 0 deletions docs/tests/protocols/test_trackmania_sunrise/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _test_trackmania_sunrise:

test_trackmania_sunrise
=======================

.. toctree::
test_get_info
test_get_session
198 changes: 198 additions & 0 deletions docs/tests/protocols/test_trackmania_sunrise/test_get_info.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
test_get_info
=============

Here are the results for the test method.

.. code-block:: json

{
"name": "Sunrise LAN Server",
"map": "GoodMorning",
"players": 0,
"max_players": 32,
"game_mode": "TimeAttack",
"game_id": "TmSunrise",
"environment": "Island",
"mood": "Sunrise",
"game_tag": 7,
"protocol_version": 4,
"password_protected": false,
"spectator_password_protected": false,
"spectators": 0,
"max_spectators": 32,
"ladder_mode": 0,
"ladder_server": false,
"comment": "TrackMania Sunrise Extreme LAN",
"server_login": "DESKTOP-JBKL5J0",
"server_address": "10.10.101.4",
"server_port": 2350,
"game_mode_id": 1,
"time_limit": 300000,
"nb_laps": 0,
"points_limit": 0,
"nb_challenges": 54,
"challenges": [
{
"name": "GoodMorning",
"gold_time": 56800,
"copper_price": 1544,
"decoration_index": 14,
"environment": "Island",
"mood": "Sunrise"
},
{
"name": "High Tide",
"gold_time": 16000,
"copper_price": 700,
"decoration_index": 15,
"environment": "Island",
"mood": "Sunset"
},
{
"name": "Midnight",
"gold_time": 65660,
"copper_price": 1606,
"decoration_index": 13,
"environment": "Island",
"mood": "Night"
},
{
"name": "HighStreet",
"gold_time": 117660,
"copper_price": 1500,
"decoration_index": 3,
"environment": "Bay",
"mood": "Night"
},
{
"name": "Suburbs",
"gold_time": 64360,
"copper_price": 1554,
"decoration_index": 2,
"environment": "Bay",
"mood": "Day"
},
{
"name": "GrandPrix30",
"gold_time": 1280000,
"copper_price": 1549,
"decoration_index": 10,
"environment": "Coast",
"mood": "Sunset"
},
{
"name": "QuietRide",
"gold_time": 27970,
"copper_price": 913,
"decoration_index": 9,
"environment": "Coast",
"mood": "Sunrise"
},
{
"name": "HomeRun",
"gold_time": 71340,
"copper_price": 1452,
"decoration_index": 10,
"environment": "Coast",
"mood": "Sunset"
},
{
"name": "BuildingRider",
"gold_time": 110840,
"copper_price": 1662,
"decoration_index": 2,
"environment": "Bay",
"mood": "Day"
},
{
"name": "XRace09",
"gold_time": 84560,
"copper_price": 3190,
"decoration_index": 12,
"environment": "Island",
"mood": "Day"
},
{
"name": "Bouncy Alley",
"gold_time": 12000,
"copper_price": 1048,
"decoration_index": 2,
"environment": "Bay",
"mood": "Day"
},
{
"name": "XRace01",
"gold_time": 47490,
"copper_price": 1968,
"decoration_index": 8,
"environment": "Coast",
"mood": "Night"
},
{
"name": "FollowTheLeader",
"gold_time": 47500,
"copper_price": 1660,
"decoration_index": 2,
"environment": "Bay",
"mood": "Day"
},
{
"name": "XRace08",
"gold_time": 74350,
"copper_price": 3203,
"decoration_index": 2,
"environment": "Bay",
"mood": "Day"
},
{
"name": "SkidOrDie",
"gold_time": 50690,
"copper_price": 1274,
"decoration_index": 14,
"environment": "Island",
"mood": "Sunrise"
},
{
"name": "BeautifulDay",
"gold_time": 188250,
"copper_price": 1406,
"decoration_index": 12,
"environment": "Island",
"mood": "Day"
},
{
"name": "Five Rows",
"gold_time": 31000,
"copper_price": 706,
"decoration_index": 9,
"environment": "Coast",
"mood": "Sunrise"
},
{
"name": "JumpOnBrakes",
"gold_time": 47800,
"copper_price": 1398,
"decoration_index": 10,
"environment": "Coast",
"mood": "Sunset"
},
{
"name": "NightFlight",
"gold_time": 39150,
"copper_price": 1451,
"decoration_index": 13,
"environment": "Island",
"mood": "Night"
},
{
"name": "CarPark",
"gold_time": 37110,
"copper_price": 1233,
"decoration_index": 12,
"environment": "Island",
"mood": "Day"
}
],
"player_list": [],
"raw_data": "0704650a0a2e090f0000004445534b544f502d4a424b4c354a300500000023535256230000000000200020001200000053756e72697365204c414e20536572766572000000001e000000547261636b4d616e69612053756e726973652045787472656d65204c414e01e093040036140000000b000000476f6f644d6f726e696e670e000000e0dd000008060000090000004869676820546964650f000000803e0000bc020000080000004d69646e696768740d0000007c000100460600000a00000048696768537472656574030000009ccb0100dc05000007000000537562757262730200000068fb0000120600000b0000004772616e645072697833300a000000008813000d0600000900000051756965745269646509000000426d00009103000007000000486f6d6552756e0a000000ac160100ac0500000d0000004275696c64696e67526964657202000000f8b001007e06000007000000585261636530390c000000504a0100760c00000c000000426f756e637920416c6c657902000000e02e00001804000007000000585261636530310800000082b90000b00700000f000000466f6c6c6f775468654c6561646572020000008cb900007c0600000700000058526163653038020000006e220100830c000009000000536b69644f724469650e00000002c60000fa0400000c00000042656175746966756c4461790c0000005adf02007e050000090000004669766520526f77730900000018790000c20200000c0000004a756d704f6e4272616b65730a000000b8ba0000760500000b0000004e69676874466c696768740d000000ee980000ab050000070000004361725061726b0c000000f6900000d1040000"
}
Loading
Loading