Thread: Changing auto save speed

Results 1 to 3 of 3
  1. #1 Changing auto save speed 
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    How can I make it so that the server doesn't auto-save so often?

    Here is my code:
    Code:
            smitimer -= 1;
            if (smitimer <= 1) {
                savechar();
                println_debug("Auto saved game.");
                savemoreinfo();
                println_debug("Auto saving moreinfo file...");
                if (savemoreinfo()) {
                    println_debug("Successfuly auto saved moreinfo file.");
                    attempts = 0;
                    smitimer = 20;
                } else if (!savemoreinfo() && attempts <= 5) {
                    println_debug(
                            "Error saving moreinfo file! Retrying in 5 seconds");
                    println_debug("Attempts: " + attempts);
                    attempts += 1;
                    smitimer = 5;
                } else if (!savemoreinfo() && attempts >= 5) {
                    println_debug(
                            "Attempts: " + attempts
                            + " - Giving up saving moreinfo file!");
                    attempts += 1;
                    smitimer = 99999999;
                }
            }
    Reply With Quote  
     

  2. #2  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    You shouldnt even do saving like this.
    Make it save on certain actions instead.
    :indeed:
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Can you link to a tut or something about that?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •