Register for your free account! | Forgot your password?

You last visited: Today at 17:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE]Great Save!

Discussion on [RELEASE]Great Save! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
[RELEASE]Great Save!

This is for tanels source
Is just a autosave. Go to Program.cs.
Search for:
Code:
public static System.Timers.Timer DropEventTimer = null;
user it put:
Code:
public static System.Timers.Timer Thetimer;
Now search for:
Code:
                MyThread CompanionThread = new MyThread();
                CompanionThread.Execute += new Execute(CompanionThread_Execute);
                CompanionThread.Start(100);
Above it paste:
Code:
                Thetimer = new System.Timers.Timer();
                Thetimer.Interval = 150000;
                Thetimer.Elapsed += new ElapsedEventHandler(Thetimer_Elapsed);
                Thetimer.Start();
Now search for:
Code:
static void MobThread_Execute()
above it paste:
Code:
        public static void Thetimer_Elapsed(object sender, ElapsedEventArgs e)
        {
                Console.WriteLine("Database have been autosaved.");
                Database.SaveKOs();
                Console.WriteLine("KOs saved.");
                Database.SaveEmpire();
                Console.WriteLine("Empire saved.");
                Features.Guilds.SaveGuilds();
                Console.WriteLine("Guilds saved.");
                Features.SkillsClass.Save();
                Console.WriteLine("Skills saved.");
        }
Done!
.Summer is offline  
Thanks
1 User
Old 06/11/2010, 18:21   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Quote:
Originally Posted by µ~Xero~µ View Post
NO?! ****! SERIOUSLY?!?! a7a! kosmk and enta fen.
#reported for insult + request ban.
.Summer is offline  
Old 06/11/2010, 19:14   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by .Summer View Post
#reported for insult + request ban.
I do not agree with you on this. He's 100% right.
-impulse- is offline  
Old 06/11/2010, 19:24   #4
 
scottdavey's Avatar
 
elite*gold: 0
Join Date: Dec 2006
Posts: 684
Received Thanks: 238
A thread for a timer... seriously...
scottdavey is offline  
Old 06/11/2010, 19:25   #5
 
~Master's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 118
Received Thanks: 23
Good one .
~Master is offline  
Old 06/12/2010, 01:04   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,769
Received Thanks: 5,294
Why don't you just search for LastSave.
Then add all that in that method.
No need for an entirely new thread
Arcо is offline  
Old 06/12/2010, 01:29   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Is just from the 5017 LOL.
but this is diffently better, then the one thats already there.

Quote:
Originally Posted by scottdavey View Post
A thread for a timer... seriously...
There is no threads LOL
.Summer is offline  
Old 06/12/2010, 01:31   #8
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,769
Received Thanks: 5,294
Quote:
Originally Posted by .Summer View Post
Is just from the 5017 LOL.
but this is diffently better, then the one thats already there.


There is no threads LOL
How is it better?
Why make a new method when one is already made?
Arcо is offline  
Old 06/12/2010, 01:33   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Quote:
Originally Posted by scottdavey View Post
A thread for a timer... seriously...
Quote:
Originally Posted by .Arco View Post
How is it better?
Why make a new method when one is already made?
The other causes alot not save
This just save more, wich makes it better.
.Summer is offline  
Old 06/12/2010, 01:34   #10
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,769
Received Thanks: 5,294
Quote:
Originally Posted by .Summer View Post
The other causes alot not save
This just save more, wich makes it better.
How does it cause a lot not to save?
It saves every couple of seconds.
Just add the other save methods inside of it.
Arcо is offline  
Old 06/12/2010, 01:52   #11
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
Quote:
Originally Posted by .Arco View Post
How does it cause a lot not to save?
It saves every couple of seconds.
Just add the other save methods inside of it.
this was all i found of saving xD
.Summer is offline  
Old 06/12/2010, 01:54   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,769
Received Thanks: 5,294
Well go to character.cs and search for LastSave.
You'll see where tanel added a timer to save characters every 8 seconds.
Just add the other save methods inside of there.
Arcо is offline  
Thanks
1 User
Old 06/12/2010, 03:08   #13
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
ah thx
.Summer is offline  
Old 06/12/2010, 14:52   #14
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
yeah coz i made nearly same timer for saving but it was useless coz theres already timer which saves the server every 8 sec
Adziunia is offline  
Old 06/13/2010, 02:44   #15
 
t_dubble_uu's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 267
Received Thanks: 180
not bad of an idea. Im currently just saving on each client ping to insure minimal to no rollbacks or lose of data.
t_dubble_uu is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release]Save Haloes
05/04/2013 - CO2 PServer Guides & Releases - 25 Replies
I made a new easier way of saving halos. I took what Korvacs said into effect. First we're going to define. Lets go to Character.cs and search for:public PKMode PKMode = PKMode.Capture; Atop of that place this public int Top = 0; Now let's go to Database.cs and search for this: public static Game.Character LoadCharacter(string Name, ref string Account) In the bottom of that you will see: C.Spouse =...
great way to save cash~~with your char
04/23/2008 - CO2 Guides & Templates - 10 Replies
THIS IS MY FIRST POST AND MY FIRST GUIDE PLEASE DON'T GET MAD IF I DID SOMETHING WRONG THE REASON WHY I MADE THIS GUIDE: in conquer i always see people buying new equipment even though they have a met and a piece of lower leveled equipment. this annoys me so i trade them and 50% of the time they show me a met. WHAT YOU NEED: 1+ mets (get one from market or bird island) a piece of low leveled equipment(recomended elite or super) enough money to buy elite/super item unless you already...
Overdose [EO] - HIGH RATES, GREAT COMMUNITY, GREAT PM's, GREAT SERVER!!!
02/15/2008 - EO PServer Hosting - 15 Replies
Eudemons Online TO THE MAX! Overdose EO! Some features: High Rates Great EP Drop Awesome PMs NO DONATIONS Eudemons start out at 30*



All times are GMT +2. The time now is 17:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.