Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 09:42

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

Advertisement



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

Discussion on Guide/Release: Conquer Server (CoFuture) Using MySql! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 12/04/2007, 02:28   #106
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Thanks man, ive just added that to the thread long time no see.
leavemealone is offline  
Old 12/04/2007, 02:48   #107
 
elite*gold: 0
Join Date: Sep 2007
Posts: 24
Received Thanks: 10
Im currently trying to create an autosave feature, By sending the the Database.UpdateClientsCharacter(Client); command after x amount of seconds,
So im trying to put a timer command in start.cs , that loops Database.UpdateClientsCharacter(Client); , though i get an error " client does not exist in current context. Obviously the definition for client is in the command.cs file, which is where i took the code Database.UpdateClientsCharacter(Client);. So any ideas on how i could make this work?
yotop456 is offline  
Old 12/04/2007, 02:54   #108
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Your database connection info is wrong.
leavemealone is offline  
Old 12/04/2007, 02:55   #109
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Quote:
Originally Posted by yotop456 View Post
Im currently trying to create an autosave feature, By sending the the Database.UpdateClientsCharacter(Client); command after x amount of seconds,
So im trying to put a timer command in start.cs , that loops Database.UpdateClientsCharacter(Client); , though i get an error " client does not exist in current context. Obviously the definition for client is in the command.cs file, which is where i took the code Database.UpdateClientsCharacter(Client);. So any ideas on how i could make this work?
Show me the code your putting in.
leavemealone is offline  
Old 12/04/2007, 03:21   #110
 
elite*gold: 0
Join Date: Oct 2005
Posts: 46
Received Thanks: 0
THanks for the help magmas. It was my fault I was editing the wrong file I wasn't in the project file that why it would't build. SO now on to this problem. I got the sever up and running right now I am trying to connect to it though a Co folder I installed patach 4348.

Under Php I think I set the sever up right when I went into the sever table and clicked on browse it pulled up the old sever info from Co fusion. I just checked the box and edited the old sever info and put in my which is Severname is Konker SeverIP is 192.168.1.100 since I am on a router now should that be my wireless modem ip or the one my router gives me like it is now.

After that On my Co client folder on sever.dat file, Should I only edit 1 sever to match my router ip or my wireless modem ip or should I delete every sever and just have mine in there?

And Lasted question. Can you explain the making account a little but better when I go to browse and insert it brings up two differnt boxes one has account id password type auth address then other 1 has a ignore box that you can check so I firgured that was it so I add the info into the first group Cane for Id password was blank type was 2 auth was 2 and address was 0 is that correct?

Oh and by the way right now when I am trying to logg in to my sever my Co client just freezes and does nothing till I have to make it close though taskmanager.
Cane is offline  
Old 12/04/2007, 03:25   #111
 
elite*gold: 0
Join Date: Sep 2007
Posts: 24
Received Thanks: 10
start.cs

private void autosaveon_CheckedChanged(object sender, EventArgs e)
{
while (true)
{
Database.UpdateClientsCharacter(Client);

Console.WriteLine("AutoSave Loop has occured");
}
}

This is the code i made without the timer installed yet. Just a loop. I no know this is most likely wrong because i am new to c#.
yotop456 is offline  
Old 12/04/2007, 03:31   #112
 
elite*gold: 0
Join Date: Sep 2007
Posts: 24
Received Thanks: 10
Quote:
Originally Posted by Cane View Post
THanks for the help magmas. It was my fault I was editing the wrong file I wasn't in the project file that why it would't build. SO now on to this problem. I got the sever up and running right now I am trying to connect to it though a Co folder I installed patach 4348.

Under Php I think I set the sever up right when I went into the sever table and clicked on browse it pulled up the old sever info from Co fusion. I just checked the box and edited the old sever info and put in my which is Severname is Konker SeverIP is 192.168.1.100 since I am on a router now should that be my wireless modem ip or the one my router gives me like it is now.

After that On my Co client folder on sever.dat file, Should I only edit 1 sever to match my router ip or my wireless modem ip or should I delete every sever and just have mine in there?

And Lasted question. Can you explain the making account a little but better when I go to browse and insert it brings up two differnt boxes one has account id password type auth address then other 1 has a ignore box that you can check so I firgured that was it so I add the info into the first group Cane for Id password was blank type was 2 auth was 2 and address was 0 is that correct?

Oh and by the way right now when I am trying to logg in to my sever my Co client just freezes and does nothing till I have to make it close though taskmanager.
You only have to edit 1 server in server.dat, you can leave the rest.
You have to enter your account name, leave password blank and address blank, leave ignore checked, unless your entering 2 accounts.
Make sure both ips in server.dat and database are your local ones command.com/ipconfig.
yotop456 is offline  
Old 12/04/2007, 04:42   #113
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Quote:
Originally Posted by yotop456 View Post
start.cs

private void autosaveon_CheckedChanged(object sender, EventArgs e)
{
while (true)
{
Database.UpdateClientsCharacter(Client);

Console.WriteLine("AutoSave Loop has occured");
}
}

This is the code i made without the timer installed yet. Just a loop. I no know this is most likely wrong because i am new to c#.
You shouldn't need a loop the timer will loop it now try this

Code:
private void autosaveon_CheckedChanged(object sender, EventArgs e)
{
Database.UpdateClientsCharacter(Client);
Console.WriteLine("AutoSave Succesfull");
}
else
{
Console.WriteLine("AutoSave Failed");
}
Not tested!
leavemealone is offline  
Old 12/04/2007, 07:57   #114
 
marhazk2's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 53
Received Thanks: 1
lol anyway..

what's happened? i'd already rebuilded all, mysql fixed, fixed database.cs and i see the codes looks fine.. did i miss something?

Code:
Database Connection: Successful
Loaded: 0 Guilds
Loaded: 124 Maps
Loaded: 11151 items from the database
Loaded: 1 Servers
Loaded: 40 Portals
Loaded: 27 Shops
Loaded: 22 Rev Points
The Auth server has been started successfully
The Game server has been started successfully
Auth Packet: Auth Request
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at COServer.Start.Game_FirstDataArrived(Object sender, DataArgs e) in C:coC
oFuture_ReleaseServerStart.cs:line 317
Auth Packet: Auth Confirmed
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at COServer.Network.Packet.ConquerPacket.CharInfo(Character Char) in C:coCo
Future_ReleaseServerNetworkPacketConquerPacket.cs:line 254
   at COServer.AuthServerPackets.AuthCompletion.AuthComplete(Byte[] Data, DataAr
gs e) in C:coCoFuture_ReleaseServerAuthPacketsIncommingAuthCompletion.cs:li
ne 77

EDIT::

nevermind.. fixed by myself.. +k
marhazk2 is offline  
Old 12/04/2007, 09:44   #115
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Well, you would of accidently created the error yourself so easy to fix.
leavemealone is offline  
Old 12/04/2007, 10:45   #116
 
marhazk2's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 53
Received Thanks: 1
btw, I guess ur Guild and WH structures isnt complete yet. And i noticed there's a bug in Database.cs line 660-690.

p/s: bcoz /createguild command works but the guildname doesnt appears, including in Guild remote command
marhazk2 is offline  
Old 12/04/2007, 10:50   #117
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
They are not complete yet there for its not a bug, at least there shouldn't be a bug there.
leavemealone is offline  
Old 12/04/2007, 11:39   #118
 
marhazk2's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 53
Received Thanks: 1
ya i know its pretty hard especially the guild structure.. but anyway.. keep it up ty and grat for a better releases.
marhazk2 is offline  
Old 12/04/2007, 15:23   #119
 
leavemealone's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 2,168
Received Thanks: 8,593
Quote:
Originally Posted by [GMs] View Post
y dont u answer mine and answer other ppl i need help
Your database connection details are wrong >.< if you read the error its quite simple, cant connect to database.
leavemealone is offline  
Old 12/04/2007, 16:33   #120


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by marhazk2 View Post
btw, I guess ur Guild and WH structures isnt complete yet. And i noticed there's a bug in Database.cs line 660-690.

p/s: bcoz /createguild command works but the guildname doesnt appears, including in Guild remote command
that peice of code creates the guild within the database, hence its in Database.cs it is meant to be used in conjunction with other peices of code around the source, however due to a lack of available time i never finshed writing the guild system
Korvacs is offline  
Closed Thread


Similar Threads Similar Threads
[Guide]cofuture source
06/11/2011 - CO2 PServer Guides & Releases - 91 Replies
hi guys am new here and i hope stay here for long time ------------ i make this guide Couz i found alot pll cant work with cofuture source --------------- Coder source:future <<<Thanks to hime 1st helping me:haydeZ<<<<Thanks to hime 2nd --------------------------------------- What we are need? 1:cofuture source>>>Download Here 2:AppServ(MySQL, Apache, and PhpMyAdmin all in one)>>>>AppServNetwork
[Request]Conquer Server (CoFuture) Using MySql
06/25/2008 - Conquer Online 2 - 2 Replies
hey I want to get the Conquer Server (CoFuture) Using MySql Source but all links down Can someone add it on rapidshare? or other Site? thank you if you up it in a site ps:sorry for my bad english :)
Need help Guide/Release: Conquer Server (CoFuture) Using MySql!
05/28/2008 - Conquer Online 2 - 1 Replies
Hello i tryed that Guide/Release: Conquer Server (CoFuture) Using MySql! But it don't work i can't do that phpmyadmin think anyone can help me the language is german but i wanted to change it to english but idk how. If anyone got Teamviewer or somethink like that would be nice greetz



All times are GMT +1. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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