Guide/Release: Conquer Server (CoFuture) Using MySql!

01/15/2008 18:32 damianpesta#391
"so please post it in here i mean (good start.cs) if u know how to do this cause i dont want to wasnt my time on rewriting code" ... LEARN TO READ >.< i said "cause i dont want to wasnt my time on rewriting code"
01/15/2008 19:17 JoieJones#392
Quote:
Originally Posted by damianpesta View Post
the start.cs IS FUCKeD UP im sure of 99% thers an error ... u did bad mistake ... databses is keeping passwords and they r coded EG: 1AdsaDA32FA the database reads password u types in client eg:qwerty and the 1AdsaDA32FA is qwerty i think u forgot about it and it connects to the database with matching pasword qwerty to 1AdsaDA32FA But its not the same ... it have to read password then it have to go through the database n then connect thers also error on line 317 in start.cs well ... i can make it works but i wont post it here cause u need to learn what u did bad ... so please post it in here i mean (good start.cs) if u know how to do this :) cause i dont want to wasnt my time on rewriting code ...
just going to tell ya the password qwerty getting hashed to MD5 password that the MYSQL getting the pass from.. its mean MD5 is likely if some1 "hacks" ur database they cant get ur password unless they use Cain & Abel or other cracker... please read forum search after MD5 Tutorials or whatever!
What does/means MD5?Eng
What does it means? Br/portuguese
01/15/2008 19:41 damianpesta#393
GOD DAmn u think im stupid >.< ?? i know what the md5 means >.< n i didnt even clicked on those guides omg ...this thread is getting spammed its about the server ...
01/15/2008 21:19 JoieJones#394
Quote:
Originally Posted by damianpesta View Post
GOD DAmn u think im stupid >.< ?? i know what the md5 means >.< n i didnt even clicked on those guides omg ...this thread is getting spammed its about the server ...
i dont think i see ur stupid!
01/15/2008 22:05 damianpesta#395
OMG what is the passsword coded in algorythm mb5?? Cause im debugging in C# and i see the password coded in some algorythm but i dunno in what alorythm is that omg ... JoieJones maybe u know cause ur after this steps ?? did u have same problem?? omg the file where there is some of those kind a things would be good 4 me cause i cant find the bug .....:/ plx help
01/16/2008 12:59 damianpesta#396
Korvac i did everything what u wrote up there ................ Nothing works still Connection to the server is interupted please relog in... well like i said i think thats the database and start.cs cause the client connects to the database and sends password md5 but i didnt change the code in start.cs to send the md5 to database so ... i really dunno whats going on and sorry for double post :/
01/16/2008 13:05 IRCFREAK#397
All Works for me now im hard working on the source.^^
01/16/2008 13:09 Niex#398
Quote:
LEARN TO READ >.<
Maybe you need to learn to type, so I can understand what the **** are you saying.

Quote:
All Works for me now
It works for IRCFREAK, that means that you are doing something wrong. Read the guide again.
01/16/2008 13:14 damianpesta#399
well icefreak would u send me ur own source? i mean start.cs ?? :( cause ive got no points whats wrong with it ....... and i dunt want to rewrite it... would be nice if u can do that for me ICEFREAk X)
01/16/2008 13:38 Korvacs#400
Quote:
Originally Posted by damianpesta View Post
Korvac i did everything what u wrote up there ................ Nothing works still Connection to the server is interupted please relog in... well like i said i think thats the database and start.cs cause the client connects to the database and sends password md5 but i didnt change the code in start.cs to send the md5 to database so ... i really dunno whats going on and sorry for double post :/
did you do all of this?

Also for all people receiving the 317/318 error:

Change your database type from 0 to 1, a noob error on mine and futures part,

Quote:
Originally Posted by Walos
Ok if you get try to log in and get an error similar to this
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer.Start.Game_FirstDataArrived(Object sender, DataArgs e) in CoFuture_ReleaseServerStart.cs:line 317
which should be one of these 2 lines
Code:
                COClient Cli = ((COServer.AuthServerPackets.AuthRequest.AuthBinder)GameClients[e.Conn]).Client;
                string User = Cli.Account + ": " + Cli.Char.Name;
and get the Error: Connection with Server is interupted. Please re-login. on your client
make sure in your account table auth is set to 1
eg
Code:
AccountID    Password    Type   Auth     Address
NewChar                    0      1       NULL
Also make sure tha the password field is blank

Changing the Auth to 1 and having a blank password try to log in again and now you should have the create char screen on the client

If you get
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at COServer.Start.Game_FirstDataArrived(Object sender, DataArgs e) in CoFuture_ReleaseServerStart.cs:line 317
and get to the create char screen of the client then what i think is happening is that it is connecting you to the game server without first making sure that there is a row in the character table (CharID) with the same accountid as in the account table. CharID == AccountID.... This will raise the exception but allow you to create the char.

After you successfully created the char you should be able to login and these error will not appear for that account/char

I hope this helps the thing to make sure is that Auth is 1 and password is blank
Cheers
Walos

I Have had a bit of a look through this again and if you change this in start.cs
Code:
     
string User = Cli.Account + ": " + Cli.Char.Name;
ClientList.Items.Add(User);
to
Code:
if (Cli.Status != Mode.CreateCharacter)
{
   string User = Cli.Account + ": " + Cli.Char.Name;
   ClientList.Items.Add(User);
}
Assumming that Auth is set right in the account table you shouldnt see this error again.
Its caused when you are creating a new Character as Cli.Char does not exist yet
Cheers
Walos
also, its not an md5 hash, conquer uses its own encryption and decryption of passwords which is why the hash is stored in the database, not plain txt.

and im not going to post a working start.cs because its obvious you have no idea how to fix it and like alot of people expect me to do the work for you, i think ive done more than enough by allowing this to be released, if you can follow instructions its not my problem, no amount of complaining will sway me on this matter

also anyone planning on msning me regarding this source, they will be deleted and blocked :)
01/16/2008 13:47 damianpesta#401
yea i did ^.^i also did all over the guide still same prob i disabled firewalls everything what should be ...:(
01/16/2008 13:54 damianpesta#402
I did evrything right either idk what is going on and its weird >.< again sry 4 dub post
01/16/2008 14:30 IRCFREAK#403
We have Character saving after logout workings and some npcs more.
Visit use: [Only registered and activated users can see links. Click Here To Register...]
We need helpers.
01/16/2008 14:35 Korvacs#404
damianpesta: Which client version are you using?
01/16/2008 14:44 damianpesta#405
Qonquers one cause i cant edit my conquer 2.0 server dat 4348..... but that doesnt matter ? ya? if it does may u post the link to the Conquer 2.0 client with patch 4348??