firefly2442 / phparma2serverstatus

PHP script that queries an Arma2/3 server to show information.
GNU General Public License v3.0
9 stars 4 forks source link

infinit Loading... #18

Open KazeroG opened 6 years ago

KazeroG commented 6 years ago

I tested https://www.gametracker.com/server_info/142.44.143.174:2302/

Config.inc.php: `<?php

// change this to reflect the servers that you want to query // https://github.com/Austinb/GameQ/wiki/Examples-v3#different-client-and-query-ports $servers = [ [ 'id' => 'ProjectSilverlake.com - RP server', 'type' => 'arma3', 'host' => '142.44.143.174':2302, 'options' => [ 'query_port' => 2303 ] ], //[ //'id' => 'Arma 2 OA Test', //'type' => 'armedassault2oa', //'host' => '107.191.44.98:2302' //], //[ //'id' => 'DayZ Test', //'type' => 'dayz', //'host' => '198.12.65.82:2302' //] ];

//TODO: currently offline, looking into alternatives //change this to toggle querying geographic information based on the IP address //define("GEOIP", "true");

/ phparma2serverstatus version (you don't need to change this) / define("VERSION", "0.2");

?> `

firefly2442 commented 6 years ago

Looks like an upstream issue...

https://github.com/Austinb/GameQ/issues/420

KazeroG commented 6 years ago

which means that the server block request by firewall ?

firefly2442 commented 6 years ago

No, I think the library (GameQ) that does the query needs to be updated. I was also not able to query any Arma 3 servers...

firefly2442 commented 6 years ago

Try now, I can get servers to load. The mods listing seems to be broken though.

KazeroG commented 6 years ago

same thing nothing change for me ! EDIT: its work now but ...

i tested it to get https://www.gametracker.com/server_info/142.44.143.174:2302/ status but get The server ProjectSilverlake.com - RP server is down. as return

Edit:i created my own version with just the php code i need help for correcting the code (its showing nothing) demo : https://mansliferp.tk/status/ repo : https://github.com/KazeroG/get-server-status/

firefly2442 commented 6 years ago

Do you know if the server is using a customized query port? Is it running an older version of Arma 3? The latest version of Arma 3? Could it be a firewall issue? Here's an example with your server and one that's working:

$servers = [
    [
        'id' => 'Canada',
        'type' => 'arma3',
        'host' => '142.44.143.174:2302',
        //'options' => [
        //  'query_port' => 2303
        //]
    ],
    [
        'id' => 'AS',
        'type' => 'arma3',
        'host' => '207.182.138.242:2302',
        'options' => [
            'query_port' => 2303
        ]
    ]
];
ScaredDonut commented 6 years ago

Same issue here, loads forever. I tried csgo, arma 3, samp, no luck.