Database

02/27/2012 17:42 sonofskeletor#1
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
02/27/2012 17:49 Korvacs#2
Yeah theres your problem right there, your using a flatfile database system.
02/27/2012 18:06 sonofskeletor#3
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 ?
02/27/2012 18:23 Korvacs#4
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.
02/27/2012 18:30 sonofskeletor#5
Well i like Flatfile, there i find them easier to deal with, i cant stand sql, and binary is just a pain in the ass, atleast flatfile is somewhat protected and it is easy to deal with.
02/27/2012 18:50 Korvacs#6
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 ass, 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? :rolleyes:

The hell is wrong with people nowadays.

Fuck it, go download a binary, they are easier to deal with than using C# sources aswell, so you might aswell go the whole way. :rolleyes:
02/27/2012 18:59 I don't have a username#7
Quote:
Originally Posted by Korvacs View Post
So your opting for inefficiency because you find them easier to deal with? Come on, really? :rolleyes:

The hell is wrong with people nowadays.

Fuck it, go download a binary, they are easier to deal with than using C# sources aswell, so you might aswell go the whole way. :rolleyes:
Too much work to download, pay TQ to have a server trololol
02/27/2012 21:33 _DreadNought_#8
Isnt xml pretty good for a flatfile database nowadays?
02/27/2012 22:32 Korvacs#9
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.
02/27/2012 22:47 I don't have a username#10
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
02/27/2012 22:59 _DreadNought_#11
if you've stopped coding projectx-v2 im going to kick your ass. Finish that first.
02/27/2012 23:10 I don't have a username#12
Quote:
Originally Posted by _DreadNought_ View Post
if you've stopped coding projectx-v2 im going to kick your ass. Finish that first.
Lmao, I wouldn't quit it. It's just a source I will do once I'm running ProjectX.