Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Help]Restart server and rollback!

Junior Spellweaver
Joined
Apr 4, 2009
Messages
139
Reaction score
3
Hi,(official files)

I have a big problem when i close the WorldServer to restart the server, some players lose items, experience or level.
Why?
And is there a way to save the database correctly at each restart please?

Sorry for my bad english, thank you.
 
Junior Spellweaver
Joined
Dec 30, 2008
Messages
101
Reaction score
10
close the cache server first.
then when you see CCU:0 on your worldserver, everyone's last activity should have been saved.
 
Junior Spellweaver
Joined
Jul 30, 2008
Messages
191
Reaction score
36
close the cache server first.
then when you see CCU:0 on your worldserver, everyone's last activity should have been saved.

The cache server is where the players data is being 'cached', yeah ironic right with the name cache server and all?...

Thus closing it would just simply clear all cached data that has not been saved to the database yet causing the rollback.
 
Junior Spellweaver
Joined
Dec 24, 2008
Messages
122
Reaction score
43
What i did is setup a php page named dc.php and inside i put
PHP:
$online = @fsockopen("127.0.0.1", 12001, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 23000, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 7000, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 4001, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 15400, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 28000, $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    } 
    $online = @fsockopen("127.0.0.1", 2101 , $errno, $errstr, 1);
    if($online >= 1) { 
        echo '<b><font color=#00FF00>Online</font></b>';
    }
    else {
    echo '<b><font color=#FF0000>Offline</font></b>';
    }
And that will disconnect all users online and the 30+ times i tested it there was no rollback (I DON'T GUARANTEE THAT THIS WILL WORK BUT IT WORKED FOR ME)
 
Last edited:
Back
Top