Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 13:20

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

Advertisement



[Arco.]Database.error line 1312

Discussion on [Arco.]Database.error line 1312 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
[Arco.]Database.error line 1312



Arco can you help me ? I got that error and I don't know how to fix it

Database.cs Line 1312 is:

Code:
FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + C.Name + ".chr", FileMode.Open);

My Save Characters void


Code:
 public static void SaveCharacter(Game.Character C, string Acc)
        {
            try
            {
                FileStream FS = new FileStream(@"C:\OldCODB\Users\Characters\" + C.Name + ".chr", FileMode.Open);
                BinaryWriter BW = new BinaryWriter(FS);

                int DoubleExp = C.DoubleExpLeft;
                if (C.DoubleExp)
                    DoubleExp -= (int)(DateTime.Now - C.ExpPotionUsed).TotalSeconds;

                BW.Write(Acc);
                BW.Write(C.EntityID);
                BW.Write(C.Avatar);
                BW.Write(C.Body);
                BW.Write(C.Hair);//Hair
                BW.Write(C.Loc.Map);//Map
                BW.Write(C.Loc.X);//X
                BW.Write(C.Loc.Y);//Y
                BW.Write(C.Loc.PreviousMap);//Previous Map
                BW.Write(C.Job);
                BW.Write(C.PreviousJob);//Previous Job, 1st RB
                BW.Write(C.Level);//Level
                BW.Write(C.Experience);//Experience        
                BW.Write(C.Str);
                BW.Write(C.Agi);
                BW.Write(C.Vit);
                BW.Write(C.Spi);
                BW.Write(C.StatPoints);//Stat Points
                BW.Write(C.CurHP);
                BW.Write(C.CurMP);//MP
                BW.Write(C.Nobility.Donation);
                BW.Write(C.Silvers);//Silvers
                BW.Write(C.CPs);
                BW.Write(C.WHSilvers);//Warehouse Silvers
                BW.Write(C.VP);//Virtue Points
                BW.Write(C.PKPoints);//PK Points
                if (C.MyGuild != null)
                {
                    BW.Write(C.MyGuild.GuildID);//Guild
                    BW.Write(C.GuildDonation);//Guild Donation
                    BW.Write((byte)C.GuildRank);//Guild Rank
                }
                else BW.Write(new byte[7]);
                C.Equips.WriteThis(BW);
                BW.Write((byte)C.Inventory.Count);
                foreach (Game.Item I in C.Inventory)
                    I.WriteThis(BW);
                C.Warehouses.WriteThis(BW);
                BW.Write((byte)C.Skills.Count);
                foreach (Game.Skill I in C.Skills.Values)
                    I.WriteThis(BW);
                BW.Write((byte)C.Profs.Count);
                foreach (Game.Prof I in C.Profs.Values)
                    I.WriteThis(BW);
                BW.Write((byte)C.Friends.Count);
                foreach (Game.Friend I in C.Friends.Values)
                    I.WriteThis(BW);
                BW.Write((byte)C.Enemies.Count);
                foreach (Game.Enemy I in C.Enemies.Values)
                    I.WriteThis(BW);
               
                BW.Write(C.DoubleExp);
                BW.Write(DoubleExp);
                BW.Write(C.BlessingLasts);
                BW.Write(C.BlessingStarted.Ticks);
                if (C.GettingLuckyTime)
                {
                    if (!C.Prayer)
                        C.LuckyTime += (uint)(DateTime.Now - C.PrayDT).TotalSeconds;
                    else
                        C.LuckyTime += (uint)(DateTime.Now - C.PrayDT).TotalSeconds * 3;
                    C.PrayDT = DateTime.Now;
                }
                BW.Write(C.LuckyTime);
                BW.Write(C.ExpBallsUsedToday);
                BW.Write(C.Reborns);
                BW.Write((byte)C.Merchant);// 
                BW.Write(C.VipLevel);//   
                BW.Write(DateTime.Now.Ticks);//When logged off, for otg feature purposes
                BW.Write((ushort)(C.TrainTimeLeft + ((DateTime.Now - C.LoggedOn).TotalMinutes * 10)));//Train time left (in minutes)
                BW.Write(C.InOTG);
                BW.Write(C.LotteryUsed);
                BW.Write(C.WHPassword);
                BW.Write(C.Spouse);
                BW.Write(C.UniversityPoints);//Quiz Pts 
                BW.Write(C.FlameStone);//Quest Flame toist 
                BW.Write(C.Top);
                
                if (C.MyClient != null && C.MyClient.AuthInfo.Status != "[GM]" && C.MyClient.AuthInfo.Status != "[PM]")
                {
                 //   if (C.WHSilvers + C.Silvers >= 50000000)
                  //      Console.WriteLine(C.Name + " has suspiciously much silvers: " + (C.WHSilvers + C.Silvers));
                  //  if (C.CPs >= 100000)
                     //   Console.WriteLine(C.Name + " has suspiciously much cps: " + C.CPs);
                }
                BW.Flush();
                FS.Flush();
                BW.Close();
                FS.Close();
            //    SaveFlowerRank(C);
            }
            catch (Exception Exc) { Console.WriteLine(Exc); }
        }
thanks
Sp!!ke is offline  
Old 06/24/2010, 17:46   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Some other program is already accessing the character file, or the server itself has already opened it and is trying again for some reason.
Korvacs is offline  
Reply


Similar Threads Similar Threads
[Guide]CoEmuV2 Line 30 and line 34 error FIX *Changed Name*
02/26/2021 - CO2 PServer Guides & Releases - 57 Replies
CoEmu V2 Common 2 Error fixes After you have followed one of these 3 guides *ORIGINAL AMAZING RELEASE* CoEmuv2.Nano(5095) Source Code GOOD VIDEO GUIDE Video+All Files+Source oF CoEmu v2 Setup Explained Guide (Pics) CoEmu v2 Source Setup NONE OF THE ABOVE GUIDES ARE CREATED BY ME
PortMap Error: RichEdit line insertion error
02/16/2012 - Metin2 Private Server - 5 Replies
Hey Leute, habe mir letztens nen Metin2 P-Server mit Hamachi erstellt. Alles läuft super, wenn da dieser kack nicht wäre. PortMap zeigt eine Fehlermeldung, nachdem man sich eingeloggt hat: RichEdit line insertion error. Diese erscheint einmal zusätzlich pro Sekunde und PortMap und Metin2 wird beendet, sobald ca. 100 von diesen Meldungen auf dem Bildschirm sind. Was soll ich machen? Hat jemand ne Lösung? Vielen Dank im Vorraus =)
[HELP] Siege Error line
07/30/2009 - Dekaron Private Server - 2 Replies
I have a problem in the script when I run the Siege it appears that image below someone can help me solve this problem please thanks http://img195.imageshack.us/img195/5173/siege1a.j pg http://img30.imageshack.us/img30/4411/siege2u.jpg please help
[Help] Loading items (Database.cs line 1210)
07/09/2009 - CO2 Private Server - 9 Replies
Ok this happened after not even touching Database.cs but adding a new health pot. But whenever i start the gameserver up (LOTF) it now says "Specified Cast is not valid" and then says "Database.cs:line 1210" And what is on that line: else if (Level == 89)//Line 1209 return 31033236;//Line 1210
MLE 1312 error
06/02/2009 - Grand Chase Philippines - 6 Replies
can someone fix this problem about the Updated MLE 1312 well its now detected in GCph but it doesnt scan anything.. theres an error on it... maybe theres somethins is missing try it..



All times are GMT +2. The time now is 13:20.


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.