Register for your free account! | Forgot your password?

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

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

Advertisement



Keving's Flat-File DB makes Inventory Bug!!

Discussion on Keving's Flat-File DB makes Inventory Bug!! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Keving's Flat-File DB makes Inventory Bug!!

Just to warn peoples ... if you use Keving's Flat-File Database , it makes Inventory bug... After 14 items in inventory and if u dc and re login char is naked and not all items in inventory appears!
stephanyd is offline  
Old 11/16/2008, 20:06   #2
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Check the loading of Inventory, it probably sucks.
tao4229 is offline  
Old 11/16/2008, 21:11   #3
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
lol... i just changed all Cli.WriteString to Save.WriteString in public static void SaveChar(Character Charr) in Database.cs and now no more naked char if dc and relogin... but only save 15 items / 40 in inventory. Now i discovering coding by myself instead copy and paste
stephanyd is offline  
Old 11/16/2008, 22:14   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
lol, try with something like

Save part:
Code:
byte Count = 1;
foreach(string item in Charr.Inventory)
{
Cli.WriteString("Character","Inventory[" + Count.ToString() + "]", item);
}
Get inventory , from get mychar info`s part:

Code:
string wholeinv = "";

for(byte k = 1;k<41;k++)
{
string inv =  Cli.ReadString("Character","Inventory[ + k.ToString() + "]")
wholeinv += inv + "~";
}
Charr.PackedInventory = wholeinv;
it should be working, , just wrote it on a laptop(i`m normaly doing all C# stuff on a pc xP)

forgot to add, 90% from this is Ultimatum`s and 10% mine ( we did it thogheter )
alexbigfoot is offline  
Old 11/17/2008, 05:15   #5
 
Ultimatum's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 277
Received Thanks: 52
Quote:
Originally Posted by alexbigfoot View Post
lol, try with something like
it should be working, , just wrote it on a laptop(i`m normaly doing all C# stuff on a pc xP)
[edit] id rather sort it through msn
Ultimatum is offline  
Old 11/17/2008, 08:29   #6
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
1.yea, i realy wrote it on a laptop , from what i remembered
and 2. i said u helped me ok?
alexbigfoot is offline  
Old 11/17/2008, 15:27   #7
 
Ultimatum's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 277
Received Thanks: 52
Ok sorted through here instead, anyway

Quote:
byte Count = 1;
foreach(string item in Charr.Inventory)
{
Cli.WriteString("Character","Inventory[" + Count.ToString() + "]", item);
Count++;
}
Ultimatum is offline  
Old 11/17/2008, 18:24   #8
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
****, i forgot to add that Count++; ,thx ultimatum
alexbigfoot is offline  
Old 11/17/2008, 18:59   #9
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
i discovered not only inventory have that bug.... Warehouses too... after 15 items deposit , dc and relog and all warehouses are empty..lol
stephanyd is offline  
Old 11/17/2008, 19:30   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
lol...and u wait the answer from us right?
alexbigfoot is offline  
Old 11/17/2008, 21:05   #11
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Quote:
Originally Posted by alexbigfoot View Post
lol...and u wait the answer from us right?
Nope... just telling that problem so peoples can test and see if they have same problem.

i'm back to MySql anyway less problems than converting all source to .ini
stephanyd is offline  
Old 11/17/2008, 21:17   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
yea, and after , if u dont know how to make ur mysql(in ur source) to work properly , lol too many errors
alexbigfoot is offline  
Old 11/17/2008, 22:46   #13
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Quote:
Originally Posted by alexbigfoot View Post
yea, and after , if u dont know how to make ur mysql(in ur source) to work properly , lol too many errors
only 1 error in my server.. the SaveChar thing... what we call RollBack in ShadowCo....lol and i'll find out of epvpers the way to fix that.
stephanyd is offline  
Old 11/18/2008, 08:35   #14
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
try to do an "save of each thing on its command"
alexbigfoot is offline  
Reply


Similar Threads Similar Threads
Inet Flat und HP
07/03/2010 - Off Topic - 6 Replies
moin moin ich suche eine Internet Anbieter der mir Folgendes bieten kann. - Internet Flat - Telefon Flat - Mobilfunk ( Flat ins Dt. Festnetz) - ISDN dann suche ich noch einen Anbieter für eine Hompage. Wo sollte man dort am besten eine kaufen?
Database vs. Flat-Files
04/08/2010 - CO2 Programming - 21 Replies
Post your opinion.
[QUESTION]what file to setting inventory limit bugs..?
01/13/2010 - EO PServer Hosting - 4 Replies
hello im having a inventory bug limits..as u can see TQ inventory limits is 40 places..how do i setting my db or clinet side to make it limit 40..? coz as u can at that pic my limits item in inventory just 30 only..where should im setting..? if u have an idea please share with me..thanks..:rolleyes: http://img694.imageshack.us/img694/5359/2214619.j pg
Editing a flat-file or ini source
01/31/2009 - CO2 Private Server - 4 Replies
The v1.3 ShadeCO source is an example, how do you modify these, like adding coding that normal is done on C# files
Dsl flat+Phone flat.
09/30/2006 - Main - 7 Replies
Hi.Also ich muss jetzt neue dsl machen weil ich umziehe auf neue wohnung,da ich hab kein bog mehr 70 euro für t online ausgeben suche ich etwas was würde mir zusammen kosten bis 55 euro pro month. Ich habe gesehen bei arcor.de dass die haben so einen tarif wo dsl 6000+telefon flat.Ich habe nur nicht verstanden ob ich noch für andere anschluße bezahlen muss,z.B wie T com oder so was.Kann mir jemand links auf günstige angebote senden. Danke.Aber alles muss nicht mehr als 55 euro pro monath...



All times are GMT +1. The time now is 03:45.


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