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

12/15/2007 04:11 joshvette001#196
For all the noobs out there, I created a new NPC Dialog function for adding a level. Next I will be making a remove item command. What im talking about is for instance through the txt file that you write npcs. Like CheckMoney=0=100 i implemented level=1 so basically you could use this for what ever. For instance you can make a npc take 5 dbs and add 1 level etc this is just a simple add to the code i will update as i make it more sophist acted, right now it basically reads to see if your over 130 if you are it does nothing, I will update this in a bit so that it says through the system were sorry you are 130. if you arent over 130, it will add what ever you set level= in your npc txt file to your current level.

if (CurrentLine.StartsWith("level") == true)
{
string[] ItemCmd = Command[1].Split(' ');
if (Client.Char.Level == 130)
{
break;
}
else
{
Client.Char.Level = Client.Char.Level + Convert.ToInt32(ItemCmd[0]);
Client.SendData(CPacket.Status(Client.Char, 1, Client.Char.Level, StatusTypes.Level));
Client.SendData(CPacket.GeneralData(Client.Char.Ch arID, 0, 0, 0, DataType.Leveled));
Spawn.UpdateLocal(Client, CPacket.GeneralData(Client.Char.CharID, 0, 0, 0, DataType.Leveled));
}
}



Add that into the are where all the other ones are in the Npcs.cs. If you cant figure it out don't even try to make a server.
12/15/2007 23:16 TekiJinn#197
Hi I don't have the internet to download Microsoft Visual Studio 5.0 C# just to compile my database so my server will run.. Could someone please compile for me? Here is my info:

Username: root
Pass : silverstate
database name : conquer_server
12/16/2007 13:18 babyloveG#198
I have everything done and ready to log on, but when I go to log on it gives me two messeges. If I dont put a password in it says wrong password. If I do put one in it says my server.dat file failed to open or is corrupt. How can I fix this? And where in the db is the encrypted password?
12/16/2007 14:17 Cane#199
it is cuase you are using a newer client than what your server is using the sever.dat is currupt down load qconquer and install the first patch when it goes to try to update again hit alt-f4 and it will stop it for you then go back in edit the sever.dat to the ip you need and your in
12/16/2007 14:57 xteutzu#200
Where i can find 4348 cuz if i download from ConquerOnline is 4357 :|?:confused:
12/16/2007 17:38 Udza#201
here you can download co2 version 4343 [Only registered and activated users can see links. Click Here To Register...]

just roll down and find which Co2 version you need and what patch you need to download!
12/16/2007 20:33 Udza#202
Quote:
Originally Posted by babyloveG View Post
I have everything done and ready to log on, but when I go to log on it gives me two messeges. If I dont put a password in it says wrong password. If I do put one in it says my server.dat file failed to open or is corrupt. How can I fix this? And where in the db is the encrypted password?
for wrong password error!
put server.dat info exactly like dadabase info

that mean

Server1=Qonquer = exactly like Database servername Qonquer
Ip1=69.41.179.99 = exactly like Database IP 69.41.179.99
Port1=9958 = exactly like Database Port 9958
ServerName1=Qonquer = exactly like Database servername Qonquer


all entries in database and server.dat need to be exactly the same!!!
12/16/2007 20:48 babyloveG#203
Ok now i am getting a error on line 317 of start.cs file and this is what the error says...

"Auth Packet:Auth Request
System.NullReferenceException: Object reference not set to an instance of an object.
at COServer.Start.Game_FirstDataArrived<Object sender, DataArgs e> in C:\Program Files\Conquer2.0\CoFuture_Release\Server\Start.cs: line 317"

And this is what line 317 in start.cs says...

COClient Cli = ((AuthRequest.AuthBinder)GameClients[e.Conn]).Client;
string User = Cli.Account + ":" + Cli.Char.Name;
ClientList.Items.Add(User);

is this what it is suppose to look like?

but when i get this error i can still log in but my character is invisible and i cant move so i dont know whats going on i probly sound stupid but i would appreciate some help thx
12/17/2007 07:45 Udza#204
babyloveG try this one tuturial!

(quote by master15)

I know how to fix it
extrat and include in the project my attachment
goto AuthPacketsIncomming folder and Open AuthRequest
goto line 121 and replace this Line

Quote:
Start.Auth.SyncSendData(CPacket.KeyResponse(Server IP, Key1, Key2, Port), ClientData.Conn);
for this

Quote:
Start.Auth.SyncSendData(NPacket.AuthResponse(Serve rIP, Key1, Key2), ClientData.Conn);

and goto Start.cs and right click and select "View Code
goto line 30
replace

Quote:
private const int AUTHPORT = 9960;
for

Quote:
private const int AUTHPORT = 9958;
and goto line 42
replace

Quote:
public const int GAMEPORT = 9958;
for

Quote:
public const int GAMEPORT = 5816;

download this file and copy that file in server files!

[Only registered and activated users can see links. Click Here To Register...]


wait! include in project that npacket file you download, by presing on .project file and right sidebar found that file and then right mouse click and choose Include file in project and after then click rebuild project!
12/17/2007 16:18 babyloveG#205
What am I missing? The errors are gone but i still cant move or see my character.

[Only registered and activated users can see links. Click Here To Register...]
12/17/2007 16:47 fabjan#206
when i try to put the cofuture file in visual c# i get this error:
[Only registered and activated users can see links. Click Here To Register...]

and if i just click open file already inside visual c# i dont have the 'build' choice
..
can someone please help me out cuz i dont have a clue about how to fix this
maybe downloading visual c# 2005 but that takes time to download so i first ask it here

thanks for helping me if you did
12/18/2007 00:09 xteutzu#207
I have do all what is write in this guide...i have try all things that can be done and i can't...Look at this plz:
[Only registered and activated users can see links. Click Here To Register...]
btw Database.cs is configured...
[Only registered and activated users can see links. Click Here To Register...]:mad:
Edit: I have read every page (lol) and i have see that peopels that get this thing complie works...can anybody compile for me?
Username: root
Password: spikedhumor25
12/18/2007 03:02 babyloveG#208
ok so i have everything working and the npc's are fine so now i need to know how to do weapon prof and skills and add monsters can anyone help me out or show me a link to a website that explains it thank you
12/18/2007 09:42 Udza#209
Quote:
Originally Posted by xteutzu View Post
I have do all what is write in this guide...i have try all things that can be done and i can't...Look at this plz:
[Only registered and activated users can see links. Click Here To Register...]
btw Database.cs is configured...
[Only registered and activated users can see links. Click Here To Register...]:mad:
Edit: I have read every page (lol) and i have see that peopels that get this thing complie works...can anybody compile for me?
Username: root
Password: spikedhumor25
in database - String UserName need to be --> root
if only you are change it! :) but default username is root
12/18/2007 10:09 Udza#210
Quote:
Originally Posted by babyloveG View Post
ok so i have everything working and the npc's are fine so now i need to know how to do weapon prof and skills and add monsters can anyone help me out or show me a link to a website that explains it thank you
what Co client version you use?