Register for your free account! | Forgot your password?

You last visited: Today at 09:12

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

Advertisement



[Release] Fixing SaveVoid (CoEmu v2)

Discussion on [Release] Fixing SaveVoid (CoEmu v2) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
[Release] Fixing SaveVoid (CoEmu v2)

Extremely easy to fix:

go to Database.cs and serach for SaveCharacter them just change this:

Code:
" WHERE `CharID` = " + Client.ID
to this:

Code:
" WHERE `CharID` = " + Client.ID + ""
I tested it for 24hours and doesn't give me any error(Before my server was getting down every 1 minute :X)!

If someone got any error please post.... everyone (i know who help and who don't help) will help for sure and thanks for everyone who have helped me with some codes....

Gratefull !
12tails is offline  
Old 09/22/2009, 23:56   #2
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
umm never had this problem ! O.o
$HaDoW is offline  
Old 09/23/2009, 00:21   #3
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
yes... you will only got this when some ppl get into your server... and this happens after some time.... but for who have this ... it's very helpfull : D
12tails is offline  
Old 09/23/2009, 00:27   #4
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
I don't want to be rude but you could post some more info what file and where to replace it Cus not everyone will understand what you mean
$HaDoW is offline  
Old 09/23/2009, 00:45   #5
 
Zion~'s Avatar
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
I think he made it quite clear.
SaveVoid
Zion~ is offline  
Old 09/23/2009, 00:48   #6
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
meh sorry :P I was working on a music video for 8 hours ! my eyes are hurting like hell cant see normal -_- I better go to bed now ^_^
$HaDoW is offline  
Old 09/23/2009, 01:00   #7
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
haha good night : D

but yes you're ritght...
12tails is offline  
Old 09/23/2009, 02:00   #8
 
Zion~'s Avatar
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
Well here's mine
Code:
lock (DatabaseConnection.Connection)
            {
                MySqlCommand Cmd = new MySqlCommand("UPDATE `characters` SET `GDonation` = " + Client.GuildDonation + ", `VPoints` = " + Client.VirtuePoints + ", `Model` = " + Client.Model + ", `ExpPotionTime` = " + Client.ExpPotion.AvailableFor + ", `ExpPotionRate` = " + Client.ExpPotion.Rate + ", `PreviousMap` = " + Client.PreviousMap + ", `Level` = " + Client.Level + ", `WHMoney` = " + Client.WHMoney + ", `PkPoints` = " + Client.PkPoints + ", `xCord` = " + Client.X + ", `yCord` = " + Client.Y + ", `Map` = " + (int)Client.Map + ", `CPoints` = " + Client.CPs + ", `HairStyle` = " + Client.Hair + ", `Class` = " + (int)Client.Class + ", `Exp` = " + Client.Exp + ", `Money` = " + Client.Money + ", `Str` = " + Client.Strength + ",`Vit` = " + Client.Vitality + ", `Spi` = " + Client.Spirit + ", `Dex` = " + Client.Dexterity + ", `StatPoints` = " + Client.StatPoints + ", `FirstLog` = " + 1 + ", `Reborn` = " + Client.Reborn + ", `HP` = " + Client.CurrentHP + ", `MP` = " + Client.CurrentMP + ", `Spouse` = '" + Client.Spouse + "' WHERE `CharID` = " + Client.ID, DatabaseConnection.Connection);

                Cmd.ExecuteNonQuery();
            }
Zion~ is offline  
Old 09/23/2009, 02:11   #9
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
yes yes.... there is the problem ( for who have this )

Code:
"' WHERE `CharID` = " + Client.ID
somethimes it try to save for example an ID 1100001 with 1100001'

them it give error and get the GameServer down....
12tails is offline  
Old 09/23/2009, 02:33   #10
 
ImFlamedCOD's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
Then just do Client.ID++ then it will add 1 to he xD. I think its like 5 am and I'm a little tired
ImFlamedCOD is offline  
Old 09/23/2009, 03:08   #11
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
haha.... that will just increase the char id...... but help too : D
12tails is offline  
Old 09/23/2009, 17:23   #12
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
This isn't a release in my opinion.
Basser is offline  
Old 09/23/2009, 22:13   #13
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
Quote:
Originally Posted by Smythe94 View Post
This isn't a release in my opinion.
Yes of course..... but for some ppl it is...
12tails is offline  
Reply


Similar Threads Similar Threads
[Release] Fixing the ShopMall
02/19/2013 - Shaiya PServer Guides & Releases - 34 Replies
This is a Fix to ShopMall that work 100% in ProfNerwosol Server Files: http://www.elitepvpers.com/forum/shaiya/437087-how -shaiya-server-ep4.html Follow this steps to Fix your SHOP: STEP 1 Open Management Studio STEP 2
[HELP] PLEASE Coemu release 180
09/08/2010 - CO2 Private Server - 2 Replies
Hello everyone good morning everyone! Well folks I'm trying to use the Coemu but the recent release that came out good I downloaded the source code and compiled it, if I did not know but was sure: D lol but one detail appeared very npcs are with the dialogues as if I was not wrong. Can someone give me a Help please or copille me if I did something wrong! ss follows below! http://img822.imageshack.us/img822/9706/1942037.t h.jpg Uploaded with ImageShack.us
[Release] >>>> CoEmu.V3
11/09/2009 - CO2 PServer Guides & Releases - 20 Replies
i got a new CoEmu from a china site but i don't know how to setup it this is the link of the source 4shared.com - online file sharing and storage - download NewCoemu.rar pass: AhmedZero
[Release]CoEmu Save CPs
08/10/2009 - CO2 PServer Guides & Releases - 3 Replies
People gettin tired of CP's not saving? Stop asking ... its a freakin noob change Go to Database>Database Search for public static void SaveCharacter(Character Client) Replace the whole void with public static void SaveCharacter(Character Client)
[RELEASE]Fixing Guild Conducter Bug
04/05/2009 - CO2 PServer Guides & Releases - 1 Replies
this is for 5017 Sources search for if (CurrentNPC < 618 && CurrentNPC > 613) at the npc do part and replae it with if (CurrentNPC < 618 && CurrentNPC > 613) if (Control == 1) { if (MyChar.Silvers >= 500) { MyChar.Teleport(1038, 350, 339);



All times are GMT +1. The time now is 09:13.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.