Thread: Server Reset.

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Server Reset. 
    Registered Member
    Join Date
    Feb 2013
    Posts
    137
    Thanks given
    2
    Thanks received
    4
    Rep Power
    29
    Hello.

    Every time I do update to my server and close the run cmd all who logged in get reset, what I can do ??!?!??!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Karma_K's Avatar
    Join Date
    Nov 2012
    Posts
    4,283
    Thanks given
    152
    Thanks received
    610
    Rep Power
    108
    Wrong section.. And you probably need to make the command save the accounts before restarting
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Jun 2013
    Posts
    433
    Thanks given
    36
    Thanks received
    30
    Rep Power
    0
    Thats From my Cpanel..

    if (cmd.equalsIgnoreCase("Save all")) {
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    if (validClient(i)) {
    Client c = getClient(i);
    try {
    c.SaveGame();
    c.sendMessage("<col=1532693>Your Account Is Saved</col>");
    p.displayMessage("You successfully saved all players!", cmd, 1);

    } catch (Exception e) {
    p.displayMessage("There was an error parsing the ID.", "Error", 0);
    }
    }
    }
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jun 2013
    Posts
    433
    Thanks given
    36
    Thanks received
    30
    Rep Power
    0
    Quote Originally Posted by basil View Post
    Hello.

    Every time I do update to my server and close the run cmd all who logged in get reset, what I can do ??!?!??!
    Thats From my Cpanel..

    if (cmd.equalsIgnoreCase("Save all")) {
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    if (validClient(i)) {
    Client c = getClient(i);
    try {
    c.SaveGame();
    c.sendMessage("<col=1532693>Your Account Is Saved</col>");
    p.displayMessage("You successfully saved all players!", cmd, 1);

    } catch (Exception e) {
    p.displayMessage("There was an error parsing the ID.", "Error", 0);
    }
    }
    }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    137
    Thanks given
    2
    Thanks received
    4
    Rep Power
    29
    Quote Originally Posted by desolution View Post
    Thats From my Cpanel..

    if (cmd.equalsIgnoreCase("Save all")) {
    for (int i = 0; i < Config.MAX_PLAYERS; i++) {
    if (validClient(i)) {
    Client c = getClient(i);
    try {
    c.SaveGame();
    c.sendMessage("<col=1532693>Your Account Is Saved</col>");
    p.displayMessage("You successfully saved all players!", cmd, 1);

    } catch (Exception e) {
    p.displayMessage("There was an error parsing the ID.", "Error", 0);
    }
    }
    }
    I don't have cpanel ..
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Jul 2012
    Posts
    114
    Thanks given
    10
    Thanks received
    7
    Rep Power
    0
    Commands.java

    Code:
    if (playerCommand.equalsIgnoreCase("saveall")) {
                            for (final Player p : PlayerHandler.players) {
                                    if (p == null) {
                                            continue;
                                    }
                                    PlayerSave.saveGame((Client) p);
                            }
                            System.out.println("Saved game for all players.");
                            c.sendMessage("Saved game for all players.");
                    }
    Reply With Quote  
     

  7. #7  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Quote Originally Posted by zentess View Post
    Commands.java

    Code:
    if (playerCommand.equalsIgnoreCase("saveall")) {
                            for (final Player p : PlayerHandler.players) {
                                    if (p == null) {
                                            continue;
                                    }
                                    PlayerSave.saveGame((Client) p);
                            }
                            System.out.println("Saved game for all players.");
                            c.sendMessage("Saved game for all players.");
                    }

    This really isn't what he want's. I know what you do wrong. Telling you this now it's not a "reset" It's a rollback. Clearly it doesn't save the files when you shut the server off. You should loop it so it saves every 600ms. As well instead of shutting it down and turning it back on try using the ::update command
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Jul 2012
    Posts
    114
    Thanks given
    10
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by Demolition View Post
    This really isn't what he want's. I know what you do wrong. Telling you this now it's not a "reset" It's a rollback. Clearly it doesn't save the files when you shut the server off. You should loop it so it saves every 600ms. As well instead of shutting it down and turning it back on try using the ::update command
    Code:
    					if (playerCommand.startsWith("update")) {
    						String[] args = playerCommand.split(" ");
    						int a = Integer.parseInt(args[1]);
    						PlayerHandler.updateSeconds = a;
    						PlayerHandler.updateAnnounced = false;
    						PlayerHandler.updateRunning = true;
    						PlayerHandler.updateStartTime = System.currentTimeMillis();
    					}
    How he sounded is that he just wanted a simple way to make sure the character files are saved. I did provide a solution to that problem. Just a very simple one.
    Reply With Quote  
     

  9. #9  
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    28
    Posts
    2,992
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    Quote Originally Posted by zentess View Post
    Code:
    					if (playerCommand.startsWith("update")) {
    						String[] args = playerCommand.split(" ");
    						int a = Integer.parseInt(args[1]);
    						PlayerHandler.updateSeconds = a;
    						PlayerHandler.updateAnnounced = false;
    						PlayerHandler.updateRunning = true;
    						PlayerHandler.updateStartTime = System.currentTimeMillis();
    					}
    How he sounded is that he just wanted a simple way to make sure the character files are saved. I did provide a solution to that problem. Just a very simple one.

    Yeah I understand that. Just wanted to clarify more. As well if you want to further your experience stop using all the save files command and make a button in your quest tab so they can click to save their progress more advanced then calling the command everytime you need to save files as soon as they see the update they usually rush to the tab to save their char
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Jul 2012
    Posts
    114
    Thanks given
    10
    Thanks received
    7
    Rep Power
    0
    Quote Originally Posted by Demolition View Post
    Yeah I understand that. Just wanted to clarify more. As well if you want to further your experience stop using all the save files command and make a button in your quest tab so they can click to save their progress more advanced then calling the command everytime you need to save files as soon as they see the update they usually rush to the tab to save their char
    Definitely a good idea there. Was actually considering doing that earlier today for myself.

    OT: Regardless this would work, just like you said, it's basically more of a hassle. It's something simple starters can use.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Server reseting
    By hitman in forum Help
    Replies: 0
    Last Post: 02-25-2010, 06:43 PM
  2. Random Resetting with delta server.
    By Legit Scape in forum Help
    Replies: 6
    Last Post: 02-25-2010, 05:14 AM
  3. Replies: 3
    Last Post: 10-11-2009, 04:03 AM
  4. char reset when server restarts! help!
    By The Awakener in forum Help
    Replies: 6
    Last Post: 08-12-2009, 06:39 PM
  5. Stable, No Resets, Server
    By gnarly in forum RS2 Server
    Replies: 5
    Last Post: 08-08-2008, 11:47 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •