Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
402 stars 136 forks source link

Conan Exiles does not detect players etc. #459

Closed ponasromas closed 5 years ago

ponasromas commented 5 years ago

Code:

    $servers = [
        [
        'type'    => "conanexiles",
        'host'    => "89.34.97.139:7777"
        ]
    ];

    $GameQ = new \GameQ\GameQ();
    $GameQ->addServers($servers);
    $GameQ->setOption('timeout', 10);
    $GameQ->setOption('write_wait', 1000);
    $GameQ->setOption('stream_timeout', 2000000);
    $GameQ->addFilter('normalize');
    $GameQ->addFilter('secondstohuman');
    $GameQ->addFilter('stripcolors');

    $results = $GameQ->process();

    echo '<pre>';
    print_r($results);
    echo '</pre>';

Result:

Array ( [89.34.97.139:7777] => Array ( [gq_address] => 89.34.97.139 [gq_dedicated] => [gq_gametype] => [gq_hostname] => [gq_joinlink] => steam://connect/89.34.97.139:7777/ [gq_mapname] => [gq_maxplayers] => [gq_mod] => [gq_name] => Conan Exiles [gq_numplayers] => [gq_online] => [gq_password] => [gq_port_client] => 7777 [gq_port_query] => 7777 [gq_protocol] => source [gq_transport] => udp [gq_type] => conanexiles [players] => Array ( )

        [teams] => Array
            (
            )

    )

)

This result is for all Conan Exiles servers, no matter if there is players on it or no.

rostov114 commented 5 years ago

For the game Conan Exiles standard QueryPort = 27015 7777 - Game Port

Array
(
    [89.34.97.139:27015] => Array
        (
            [CSF_i] => 0
            [HOSTIP] => 1495425419
            [HOSTPORT] => 7777
            [OWNINGID] => 90123540523662338
            [OWNINGNAME] => Phoenix Ex Umbra - Roleplay - EU and US
            [P2PADDR] => 90123540523662338
            [P2PPORT] => 7777
            [S05_b] => false
            [S0_b] => true
            [S17_s] => 100
880454836
1538128065
1367404881
1159180273
1586999299
1542041983
1206493209
1369802940
1439140851
864199675
            [S18_b] => true
            [S21_f] => 0.300000
            [S22_f] => 0.700000
            [S23_f] => 0.300000
            [S24_f] => 0.700000
            [S25_b] => false
            [S30_i] => 0
            [S4_f] => 0.100000
            [S5_b] => false
            [S6_f] => 0.200000
            [S7_b] => true
            [S8_f] => 0.700000
            [SESSIONFLAGS] => 651
            [Sa_b] => true
            [Sb_f] => 0.100000
            [Sk_f] => 0.500000
            [So_f] => 3600.000000
            [Su_i] => 4
            [Sw_f] => 120.000000
            [Sx_i] => 20
            [Sy_i] => 0
            [Sz_f] => 5.000000
            [dedicated] => d
            [game_descr] => Conan Exiles
            [game_dir] => conanexiles
            [game_id] => 440900
            [gq_address] => 89.34.97.139
            [gq_dedicated] => d
            [gq_gametype] => Conan Exiles
            [gq_hostname] => Phoenix Ex Umbra - Roleplay - EU and US
            [gq_joinlink] => steam://connect/89.34.97.139:27015/
            [gq_mapname] => The Exiled Lands
            [gq_maxplayers] => 70
            [gq_mod] => conanexiles
            [gq_name] => Conan Exiles
            [gq_numplayers] => 7
            [gq_online] => 1
            [gq_password] => 0
            [gq_port_client] => 27015
            [gq_port_query] => 27015
            [gq_protocol] => source
            [gq_transport] => udp
            [gq_type] => conanexiles
            [hostname] => Phoenix Ex Umbra - Roleplay - EU and US
            [keywords] => BUILDID:1001451462,OWNINGID:90123540523662338,OWNINGNAME:Phoenix Ex Umbra - Roleplay - EU and US,HOSTIP:1495425419,P2PPORT:7777
            [map] => The Exiled Lands
            [max_players] => 70
            [num_bots] => 0
            [num_players] => 7
            [num_rules] => 35
            [os] => w
            [password] => 0
            [players] => Array
                (
                    [0] => Array
                        (
                            [id] => 0
                            [name] => 3DexRogue
                            [score] => 0
                            [time] => 15179.711914062
                            [gq_name] => 3DexRogue
                            [gq_score] => 0
                            [gq_time] => 15179.711914062
                            [gq_time_human] => 04:12:59
                        )
                    [1] => Array
                        (
                            [id] => 0
                            [name] => Weilling
                            [score] => 0
                            [time] => 13428.265625
                            [gq_name] => Weilling
                            [gq_score] => 0
                            [gq_time] => 13428.265625
                            [gq_time_human] => 03:43:48
                        )
                    [2] => Array
                        (
                            [id] => 0
                            [name] => Sofia
                            [score] => 0
                            [time] => 12157.491210938
                            [gq_name] => Sofia
                            [gq_score] => 0
                            [gq_time] => 12157.491210938
                            [gq_time_human] => 03:22:37
                        )
                    [3] => Array
                        (
                            [id] => 0
                            [name] => Neeko
                            [score] => 0
                            [time] => 8950.3671875
                            [gq_name] => Neeko
                            [gq_score] => 0
                            [gq_time] => 8950.3671875
                            [gq_time_human] => 02:29:10
                        )
                    [4] => Array
                        (
                            [id] => 0
                            [name] => Sigrid The Skull Gri
                            [score] => 0
                            [time] => 7619.8505859375
                            [gq_name] => Sigrid The Skull Gri
                            [gq_score] => 0
                            [gq_time] => 7619.8505859375
                            [gq_time_human] => 02:06:59
                        )
                    [5] => Array
                        (
                            [id] => 0
                            [name] => pd
                            [score] => 0
                            [time] => 5637.6977539062
                            [gq_name] => pd
                            [gq_score] => 0
                            [gq_time] => 5637.6977539062
                            [gq_time_human] => 01:33:57
                        )
                    [6] => Array
                        (
                            [id] => 0
                            [name] => TheGMGamer
                            [score] => 0
                            [time] => 3764.7551269531
                            [gq_name] => TheGMGamer
                            [gq_score] => 0
                            [gq_time] => 3764.7551269531
                            [gq_time_human] => 01:02:44
                        )
                )
            [port] => 7777
            [protocol] => 17
            [secure] => 1
            [sl_f] => 2.000000
            [sr_f] => 3243.199951
            [ss_i] => 1024
            [steam_id] => 90123540523662338
            [steamappid] => 0
            [teams] => Array
                (
                )
            [version] => 1.0.0.0
        )
)