[Help]Restart server and rollback!

Results 1 to 5 of 5
  1. #1
    Valued Member Looky is offline
    MemberRank
    Apr 2009 Join Date
    142Posts

    [Help]Restart server and rollback!

    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.


  2. #2
    Valued Member eejhey is offline
    MemberRank
    Dec 2008 Join Date
    101Posts

    Re: [Help]Restart server and rollback!

    close the cache server first.
    then when you see CCU:0 on your worldserver, everyone's last activity should have been saved.

  3. #3
    Valued Member Looky is offline
    MemberRank
    Apr 2009 Join Date
    142Posts

    Re: [Help]Restart server and rollback!

    Ok thank you eejhey

  4. #4
    Account Upgraded | Title Enabled! AccountDeleted is offline
    MemberRank
    Jul 2008 Join Date
    296Posts

    Re: [Help]Restart server and rollback!

    Quote Originally Posted by eejhey View Post
    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.

  5. #5
    Valued Member BGxAshtonJ1 is offline
    MemberRank
    Dec 2008 Join Date
    USALocation
    130Posts

    Re: [Help]Restart server and rollback!

    What i did is setup a php page named dc.php and inside i put
    PHP Code:
    $online = @fsockopen("127.0.0.1"12001$errno$errstr1);
        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$errstr1);
        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$errstr1);
        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$errstr1);
        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$errstr1);
        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$errstr1);
        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$errstr1);
        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 by BGxAshtonJ1; 29-12-09 at 12:00 AM.



Advertisement