Announcement

Collapse
No announcement yet.

How to Change Auto-Save Times

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Change Auto-Save Times

    How to Change Auto-Save Times on a RunUO Shard

    Ok, when I first started hosting shards, the auto-save time took place about every five minutes. I found a lot of people asking me how to change it, so a while back I took the effort to go and find out how. Here is how you do it:

    Open RunUO/Scripts/Misc/AutoSave.cs

    Around the top you should see:

    private static TimeSpan m_Delay = TimeSpan.FromMinutes( ##.0 );
    private static TimeSpan m_Warning = TimeSpan.FromSeconds( ##.0);
    //private static TimeSpan m_Warning = TimeSpan.FromSeconds( ##.0 );

    Of course, where the number signs are, there are numbers, but since I altered it, I don't know what the numbers originally were. So simply edit the part of the script, and replace the number signs with actual numbers, for example:

    private static TimeSpan m_Delay = TimeSpan.FromMinutes( 30.0 );
    private static TimeSpan m_Warning = TimeSpan.FromSeconds( 60.0);
    //private static TimeSpan m_Warning = TimeSpan.FromSeconds( 15.0 );

    Then just save the edited AutoSave.cs and restart your server and you are good to go!

    Note: Make sure to read the correct times, because 'FromMinutes' of course means the time in minutes, as does 'FromSeconds' mean time from seconds.
    RunUO - Ultima Online Emulator - www.runuo.net
Working...
X