You did not set the "host" parameter. See 'examples.txt' for more information about the parameters.
Quote:
Originally Posted by prot3ctor
Array ( [0] => Error [1] => A connection could not be established. )
That means the Gateway Server you are connecting to is physically down or not accessible from your server (like jSRO on a non-jp IP). If you are sure it is up, then sockets may not be enabled for outgoing connections on your host (unlikely, but possible). Try with different hosts in 'examples.txt'.
Quote:
Originally Posted by inv123
My only prob that suddenly after some changes stats changed to ratios, hehe
Just multiple the ratio by 3500 before you display and round to a whole number. I provided the ratio in the code just because that's what is in the packet. It's the most 'accurate' to work with, so you can customize the final output if you want cur/max.
-
If you are having other troubles with the scripts, try getting a free host from and testing there. That's the test host I used and had no issues with it. Usually, it'll be a problem with how PHP is configured, but since a lot of places do it differently, there's no easy way to debug it with how PHP works. For reference, this is the from the test host.
You will break the host if you show the stats to a large amount of users at the same time directly from the script, each user will run it and overload the host. The intention of this script is make a cronjob for update the stats into a DB or similar and show the result to the users, not make the users directly run the script.
You will break the host if you show the stats to a large amount of users at the same time directly from the script, each user will run it and overload the host. The intention of this script is make a cronjob for update the stats into a DB or similar and show the result to the users, not make the users directly run the script.
Or if you don't have cronjobs on your host, you can check the last time it was checked and if it's too long, you do the script and put it in the DB, otherwise you just load it from the DB.
Hmm so strange.
I tryed using the same hosting as edx, 000webhost. But it gave me an error, even if i just trying with the non-modifyed version :/
000webhost uses a bunch of different servers with different domain names. It's possible your site is being hosted on a different server that isn't setup the same as the others. I've already had one person mention similar issues with theirs, but there's not much you can do besides trying to find a different host, or trying to figure out what exactly why the configuration isn't working.
Hi Drew,
is it possible to gather information (iSro) about the maximum number of people who can join a server? Or is the only way to store it in an array and renew it each time a server changes or comes new?
The server stats of isro is just a decimal number in the packet so you don't really know how much people there are but since you know how full the server is you can calculate how much people can join.
for example server Xian is full for 0.83% you can do the following.
1.00 - 0.83 = 0.17 * 3500 which will result in the number of people who can join.
I don't know it is currently implemented in drew's tool so I'll take a look at it but you can do a lot of things with the data
The server stats of isro is just a decimal number in the packet so you don't really know how much people there are but since you know how full the server is you can calculate how much people can join.
for example server Xian is full for 0.83% you can do the following.
1.00 - 0.83 = 0.17 * 3500 which will result in the number of people who can join.
I don't know it is currently implemented in drew's tool so I'll take a look at it but you can do a lot of things with the data
Indeed but you can't know the maximum users for a server in silkroad.
Before they changed the server list packet the packet contained 2 words. the first one was the current users in the server and the second one the maximum. but they changed it to a float so now the client only knows how full the server in a decimal.
So you just assume that the server cap is 3500 but they might have changed it to 1000 you can't know it.
Theoretically speaking you could calculate it. 2999/3000 (0.99966666666666) and 3499/3500 (0,99971428571428) are both really close by, but you can calculate the delta value. You take the result that has the lowest delta value, because it will be more precise than any other.
I wrote this really quick so it's not an optimal solution, nor does it always work correctly.
PHP Code:
function test($percent) {
$ret = array(0, 0); // current, maximum
$step = 50;
$start = $step * 20;
$tolerance = 50; // 350[3]/3500, 350[1]/3500; nuff said
$max = 4500 + $tolerance; // known maximum is 3500
$mindelta = 1000000; // just set it high at the beginning
for($i = $start; $i <= $max; $i += $step) {
for($j = (int)($percent * $i - 5); $j <= $i + $tolerance; $j++) {
$prev = ($j - 1) / $i;
$curr = $j / $i;
Silkroad Security API 06/09/2011 - SRO Coding Corner - 5 Replies i was trying to run the server_stats example but it just immediately closeed and i cant figure out why..
also i think i need ti configure the ip or port? where can i do this?
edit: I've found the error.. Index was Outside the bounds of the array line 33
the code:
[HELP]silkroad security 05/09/2011 - SRO Coding Corner - 6 Replies what it silkroad security???
what is the packet analyzing???
Silkroad New security? 01/24/2010 - Silkroad Online - 68 Replies This must be a joke or something another wanna be Game Guard? cus silkroad added a new folder called hackshield to the game directory... lol anyone have any inputs on this? maybe for once they trying to do something lol kinda funny... :rtfm:
[Tips] Silkroad Account Security 08/24/2009 - SRO Guides & Templates - 12 Replies Hey,
I know there are some threads about this out there but I think this will be useful though.
Your password should contain at least 7 letters and/or numbers. Hint: Come up with some really senseless sentence with letters and numbers. Here an example : I look forward to the Simpsos Halloween Special on October 31th., Now take the first letter of every word and your password is: “ilfttshsoo31” For a password like this a bruter needs about 107 years and you can remember it easily.
...
Silkroad Security Video 11/06/2008 - SRO Hacks, Bots, Cheats & Exploits - 10 Replies Hi guys,
i just played a bit with Silkroad and c++.
The result was a Undetected Silkroad Keylogger.
I was Scanning it for fun on Virustotal.com
the result was 1/36
The 1 Antivir who said anythink
was Panda - Suspicous File
Maybe you have the Question now
why did you post this here?