Register for your free account! | Forgot your password?

You last visited: Today at 14:55

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

Advertisement



Database

Discussion on Database within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
Database

Hi Folks, im trying to create a database but running into a slight problem, i cant get my database to read the strings inside of the file.

These are some examples of the things i have tried.

Code:
        public static Game.Character LoadCharacter(string Name, ref string Account)
        {
            try
            {
                //string Acc = "";
                Game.Character C = new Game.Character();
                MyIni I = new MyIni(@"D:\OldCODB\Database\Chars\" + C.Name + ".ini");
                {
                    C.Name = Name;
                    C.AccountName = I.ReadString("Account", "AccountID", Account);
                  //C.AccountName = I.ReadString("Account", "AccountID", Account);
                  //C.AccountName = Account;
                  //Account = I.ReadString("Account", "AccountID", C.AccountName = Account);
                  //C.AccountName = Account;
                  //Account = I.ReadString("Account","AccountID", Acc);

[Account]
AccountID=GarethWilliams <---- String i need it to read.
Status=
Password=
[Char]
UID=0
Name=Gareth

Help Please
sonofskeletor is offline  
Old 02/27/2012, 17:49   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Yeah theres your problem right there, your using a flatfile database system.
Korvacs is offline  
Old 02/27/2012, 18:06   #3
 
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
Quote:
Originally Posted by Korvacs View Post
Yeah theres your problem right there, your using a flatfile database system.
Are you trying to be sarcastic ?
sonofskeletor is offline  
Old 02/27/2012, 18:23   #4


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by sonofskeletor View Post
Are you trying to be sarcastic ?
...No flatfile databases we're abandoned when managed databases were designed and found to be much more efficient, you wouldn't be having this problem either lol.
Korvacs is offline  
Old 02/27/2012, 18:30   #5
 
elite*gold: 0
Join Date: Jul 2007
Posts: 200
Received Thanks: 31
Well i like Flatfile, there i find them easier to deal with, i cant stand sql, and binary is just a pain in the ***, atleast flatfile is somewhat protected and it is easy to deal with.
sonofskeletor is offline  
Old 02/27/2012, 18:50   #6


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by sonofskeletor View Post
Well i like Flatfile, there i find them easier to deal with, i cant stand sql, and binary is just a pain in the ***, atleast flatfile is somewhat protected and it is easy to deal with.
So your opting for inefficiency because you find them easier to deal with? Come on, really?

The hell is wrong with people nowadays.

**** it, go download a binary, they are easier to deal with than using C# sources aswell, so you might aswell go the whole way.
Korvacs is offline  
Thanks
2 Users
Old 02/27/2012, 18:59   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by Korvacs View Post
So your opting for inefficiency because you find them easier to deal with? Come on, really?

The hell is wrong with people nowadays.

**** it, go download a binary, they are easier to deal with than using C# sources aswell, so you might aswell go the whole way.
Too much work to download, pay TQ to have a server trololol
I don't have a username is offline  
Old 02/27/2012, 21:33   #8
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Isnt xml pretty good for a flatfile database nowadays?
_DreadNought_ is offline  
Old 02/27/2012, 22:32   #9


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by _DreadNought_ View Post
Isnt xml pretty good for a flatfile database nowadays?
Not when compared to a managed database solution no.
Korvacs is offline  
Old 02/27/2012, 22:47   #10
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by _DreadNought_ View Post
Isnt xml pretty good for a flatfile database nowadays?
You can combine it with things like mysql/mssql for database structures etc. that's what I'm doing in the new base I'm coding. Will be xml/mssql xD
I don't have a username is offline  
Old 02/27/2012, 22:59   #11
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
if you've stopped coding projectx-v2 im going to kick your ***. Finish that first.
_DreadNought_ is offline  
Old 02/27/2012, 23:10   #12
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Quote:
Originally Posted by _DreadNought_ View Post
if you've stopped coding projectx-v2 im going to kick your ***. Finish that first.
Lmao, I wouldn't quit it. It's just a source I will do once I'm running ProjectX.
I don't have a username is offline  
Reply


Similar Threads Similar Threads
Database
08/19/2011 - Metin2 Private Server - 4 Replies
Hello, I search the database of metin for make my server but i don't find. I have use the function search and all links is fake or dead. Anybody can help me ?
Best DataBase
03/05/2011 - EO PServer Hosting - 3 Replies
Hey guys i was wondering which database is the best one?
[Help]Database.cs
08/09/2010 - CO2 Private Server - 5 Replies
aite so lately for some reason donation has not been saving and i was looking in the database.cs and i dont really see anything wrong with it unless u count adding that fix 100% code save characters lvl and all for 5165 thread made by memo1340 would that cause the problem any helpers plz help :) ill thanks u thousands of times ahahaha lmfao... well hook da homie up.... but yea foshow... any sugestions
HELP with database
02/08/2010 - EO PServer Hosting - 4 Replies
Hy, i delete my char,pets von database and afterwards I create the same again. Nevertheless I have still the same Item of pieces in the Inventory and/or the weapons of the old Char. Which cq_…. is where one it to delete can? I have Problem with dyna_medal_rank. I donate for King, but the symbol apart from the names is not indicated. and why i have a green name when i have my equitment completely?
Database (help) :(
01/26/2010 - Dekaron Private Server - 5 Replies
Hello Dudes I got a Problem , my Character database was Droped by a SQL Injection (i think) and i dont want open anymore cuz it is not command there to stop such attacks. i was looking for a comand like mysql_escape_string() mysql_real_escape_string()



All times are GMT +1. The time now is 14:56.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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