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

04/06/2008 15:41 StrykerX12#691
Hi,

I tried setting up my Private Server too but i get the error.
Connection Interrupted in the Qonquer Online Client. Even when i install patch 4348 on Conquer online, and i run Conquer online client but doesnt go further then autopatch(version.dat is 9999). My password in mysql is right too. What am i doing wrong?
04/06/2008 15:47 Kiyono#692
Quote:
Originally Posted by StrykerX12 View Post
Hi,

I tried setting up my Private Server too but i get the error.
Connection Interrupted in the Qonquer Online Client. Even when i install patch 4348 on Conquer online, and i run Conquer online client but doesnt go further then autopatch(version.dat is 9999). My password in mysql is right too. What am i doing wrong?
did you used the right IP? or else try Hamachi
04/06/2008 16:37 cjainy#693
Quote:
Originally Posted by Djago160 View Post
does somebody know where HP and Mana are located cause i just noticed you don't jave mana and only 1 hp
database is where your hp is stored you need to create the function in your source that updates your hp in the characters table
04/06/2008 20:38 Kiyono#694
Quote:
Originally Posted by cjainy View Post
database is where your hp is stored you need to create the function in your source that updates your hp in the characters table
O.o thats weird i spent an hour on searching and couldn't find it btw do yuo know where is located how much mana str agi vit 1 attribute point give cause i don't think it's correct atm
04/06/2008 21:16 accountwhore#695
I've got a server set up, did everything right including port forwarding, so I know I'm missing something, could be router/ip related, any ideas would be appreciated, damn the flamepedos!


edit:

I got the server up correctly now, except only I can connect, yes I modified the other peoples accounts with auth 1 type 2 no pass. Any help would be great, I'm looking back over posts now in case it's already covered.
04/06/2008 22:09 walmartboi#696
Quote:
Originally Posted by accountwhore View Post
I've got a server set up, did everything right including port forwarding, so I know I'm missing something, could be router/ip related, any ideas would be appreciated, damn the flamepedos!


edit:

I got the server up correctly now, except only I can connect, yes I modified the other peoples accounts with auth 1 type 2 no pass. Any help would be great, I'm looking back over posts now in case it's already covered.
Forward ports 9958, 9960, and 5816 on your router as UDP and TCP. Then everyone can connect to your server using your external IP address.
04/06/2008 23:01 accountwhore#697
Quote:
Originally Posted by walmartboi View Post
Forward ports 9958, 9960, and 5816 on your router as UDP and TCP. Then everyone can connect to your server using your external IP address.
Appreciate the help, wasn't that, but I figured out what it was. Next project would be warehouse spots, I figure going through the character table and add each warehouse spot individually, unless theres an easier way. On a side note for those of you who cant figure out port forwarding and don't mind the risk, DMZ is a good way to enable all connections. Not sure if all routers have this feature, but Linksys do. But they're shitty routers anyway, again thanks for the help I'll keep updated on the warehouse solution.


Edit:
Found something that needs to be worked on sooner, any time someone exits char creation screen the server crashes. I'll see what I do but if leavemealone gets to it first use his.

Second Edit..:

Decided to work on something else first, I noticed that the level of the chars did not save, same as the money, I fixed the money at least in inventory with
Code:
public static void UpdateCharMoney(COClient Client)
        {
            MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `Money` = "" + Client.Char.Money + "" WHERE `CharID` = "" + Client.Char.CharID + """, DatabaseConnection);
            try
            {
                Command.ExecuteNonQuery();
            }
            catch
            {

            }
        }
This worked perfectly, also I tried the same thing, but I might be dealing with a wrong class or something, because no matter what I tried, it wouldn't save the level, so I'm looking forward to some correction to this code:

Code:
public static void UpdateCharLevel(COClient Client)
        {
            MySqlCommand  Command = new MySqlCommand("UPDATE `Characters` Set `Level` = "" + Client.Char.Level + "" WHERE `CharID` = "" + Client.Char.CharID + """, DatabaseConnection);
            try
            {
                Command.ExecuteNonQuery();
            }
            catch
            {

            }
        }
Also, I was going over stat points remaining, I came up with this so far, but they wont save right and theres not a value for the chars mana attributes:

Code:
public static void UpdateStatPoints(COClient Client)
        {
            MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `StatPoints` = "" + Convert.ToInt16(Client.Char.Level * 3 - (Client.Char.Str + Client.Char.Vit + Client.Char.Dex) ) + "" WHERE `CharID` = "" + Client.Char.CharID + """, DatabaseConnection);
            try
            {
                Command.ExecuteNonQuery();
            }
            catch
            {

            }
        }
Yet another edit:

Sorry for all the edits, though no one else is posting this late and I'd annoy myself if i double posted. Found the mana point count was labeled Client.Char.Spi. So that brings us to:

Code:
public static void UpdateStatPoints(COClient Client)
        {
            MySqlCommand Command = new MySqlCommand("UPDATE `Characters` SET `StatPoints` = "" + Convert.ToInt16(Client.Char.Level * 3 - (Client.Char.Str + Client.Char.Vit + Client.Char.Dex + Client.Char.Spi) ) + "" WHERE `CharID` = "" + Client.Char.CharID + """, DatabaseConnection);
            try
            {
                Command.ExecuteNonQuery();
            }
            catch
            {

            }
        }
Perhaps future(leavemealone) or korvacs could pm me and we could get together and add more database updating? I'm fairly new to C# in fact this is my first night with it, so if you can think of what I'm doing wrong with the updating off the top of your head let me know. You all need to post moar! I feel alone :(
04/07/2008 05:41 yourworstnightmare#698
wat patch of qonquer do i need for my private server?or wat do i need to do? cuz im downloading qonquer with patch 4351 do i need to do anything? help me out plz :p
04/07/2008 06:33 CONQUER 2.0#699
yea dont get it kinda lol
04/07/2008 17:23 Kiyono#700
finaly i have mobs...
[Only registered and activated users can see links. Click Here To Register...]
and only a few errors

1. they disappear when you go offscreen
2. they don't have hp or a name and you can't attack them

btw i jsut noticed that when you play as trojan that the 2nd weapon de-equips when you change maps/relog
04/08/2008 20:49 StrykerX12#701
Quote:
Originally Posted by Djago160 View Post
did you used the right IP? or else try Hamachi
Did it but still not working:confused:, i dont get it.
When pass is empty i get incorrect password.
I dont get any errors in the Console only Auth Packet: Auth Request
Had to do patch 4349 else i couldnt bypass.

Any Ideas.
04/09/2008 01:41 walmartboi#702
Quote:
Originally Posted by StrykerX12 View Post
Did it but still not working:confused:, i dont get it.
When pass is empty i get incorrect password.
I dont get any errors in the Console only Auth Packet: Auth Request
Had to do patch 4349 else i couldnt bypass.

Any Ideas.
Get Qonquer Online Client, and make sure in your database for servers if looks like this:

Code:
ServerName: "Your Server Name"
ServerIp: "Your IP(internal)"
ServerPort: [U]9958[/U]
04/09/2008 02:32 Nirion#703
I got a server up and running using this guide and I messed around adding ncp and stuff but I was wondering if someone could post a tutorial on how to create a mob or even just one enemy spawn
04/09/2008 03:00 big toe#704
why would u need that patch for it to run???
04/09/2008 18:02 StrykerX12#705
Quote:
Originally Posted by walmartboi View Post
Get Qonquer Online Client, and make sure in your database for servers if looks like this:

Code:
ServerName: "Your Server Name"
ServerIp: "Your IP(internal)"
ServerPort: [U]9958[/U]
Did it but still not working.:(

edit: with qonquer client i get error line 316 of start.cs