Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 01:09

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

Advertisement



[Help] PServer Console

Discussion on [Help] PServer Console within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
[Help] PServer Console

K, a lot of the things my console tells me I do not understand. I try! Don't get me wrong. I know a lot more then I used to. But this one got by me...I have no clue what it means. It appears as soon as ANYONE (except myself) logs in.

System.InvalidOperationException: Connection must be valid and open
at MySQL.data.MySQLClient.MySQLCommand.CheckState<>
at MySQL.data.MySQLClient.MySQLCommand.ExecuteNonQuer y<>
at COServer_Project.Database.SaveHB<Character Charr> in D:\Documents and Settings\******\Desktop\Pyro Source\Source\COServerProject\database.cs:line 1169


I thought I had an idea of what it could have been but I was wrong =\ I still got the error. What I did was take "Points" out of SaveHB so it wouldn't save them there (It never did anyways -.-') but it failed =\
Now I need help =p
Jay1029 is offline  
Old 09/15/2009, 04:23   #2
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
i admire your persistence in learning c# very much. you for one, unlike *cough* blade *cough*, persist at it, so i'll be glad to try to help ya out.

kk, first: SaveHB -- what's it saving? if i were you i would just make the SaveMyChar or w/e, saving everything in you Char Table.

instead of having it save both your char & points with a different timer (or w/e it's saving off of).

Goto your .cs that the error is in, copy the whole line & post it here.
.Guru is offline  
Old 09/15/2009, 04:45   #3
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
Quote:
D:\Documents and Settings\******\Desktop\Pyro Source\Source\COServe rProject\database.cs:line 1169
can't you read?
danielachraf is offline  
Old 09/15/2009, 04:48   #4
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
Quote:
Originally Posted by danielachraf View Post
can't you read?
why say can't you read if he is only this post you no he can read .. just tell him to read the earror it says it there and help him undersand what the earror is saying "can't you read?" how can that help any one?
taylor2846 is offline  
Old 09/15/2009, 23:03   #5
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
When I go to the error in my source it brings me here

Code:
        public static void SaveHB(Character Charr)
        {
            try
            {
                MySqlCommand Command = null;
                Command = new MySqlCommand("UPDATE `Characters` SET `HeavenBless` = '" + Charr.HBEnd.ToString() + "',`WhichBless` = '" + Charr.WhichBless + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
                Command.ExecuteNonQuery();

            }
            catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
        }
Command.ExecuteNonQuery(); is the actual line where I am getting the error.
It's so confusing just because I don't know what is causing the error.
Jay1029 is offline  
Old 09/16/2009, 00:07   #6
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
Quote:
Originally Posted by Jay1029 View Post
When I go to the error in my source it brings me here

Code:
        public static void SaveHB(Character Charr)
        {
            try
            {
                MySqlCommand Command = null;
                Command = new MySqlCommand("UPDATE `Characters` SET `HeavenBless` = '" + Charr.HBEnd.ToString() + "',`WhichBless` = '" + Charr.WhichBless + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
                Command.ExecuteNonQuery();

            }
            catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
        }
Command.ExecuteNonQuery(); is the actual line where I am getting the error.
It's so confusing just because I don't know what is causing the error.
is HB in your database?
.Guru is offline  
Old 09/16/2009, 00:09   #7
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
How is this confusing??!?!?!
'System.InvalidOperationException: Connection must be valid and open'
Can you not read plain and flat english?!!?!?!
_tao4229_ is offline  
Old 09/20/2009, 04:33   #8
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
@tao4229
Yeah, sorry I actually have a life so I can't learn this sh*t 24/7 like yourself. Well you probably have everything memorized. Anyways.."'System.InvalidOperationException:"
Wtf does that mean...Your answer was the most retarded thing I'd seen all day. What was the f*cking point in replying. If you were going to take the time of day to type that you might as well have typed something useful.
Jay1029 is offline  
Old 09/20/2009, 04:51   #9
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by Jay1029 View Post
@tao4229
Yeah, sorry I actually have a life so I can't learn this sh*t 24/7 like yourself. Well you probably have everything memorized. Anyways.."'System.InvalidOperationException:"
Wtf does that mean...Your answer was the most retarded thing I'd seen all day. What was the f*cking point in replying. If you were going to take the time of day to type that you might as well have typed something useful.
"Connection must be valid and open."
This is telling you that your connection is either not valid, or not open.
This means you should find what's causing the connection to be closed or invalidated.
Your turn, ignorant idiot.
_tao4229_ is offline  
Old 09/20/2009, 20:36   #10
 
elite*gold: 0
Join Date: Jul 2009
Posts: 14
Received Thanks: 1
You are retarded!! Thats not even what hes saying. He doesn't understand what "'System.InvalidOperationException:" means you idiot. You are blind or something? Two times you misread what he said so go take English lessons you illiterate son of a *****.
dsSharkk is offline  
Old 09/20/2009, 20:42   #11
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Quote:
Originally Posted by Jay1029 View Post
@tao4229
Yeah, sorry I actually have a life so I can't learn this sh*t
Then why the hell are you here? Making a server?
kinshi88 is offline  
Old 09/20/2009, 20:48   #12
 
Zion~'s Avatar
 
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 650
That's one of the stupidest things I've ever heard.
I think learning things is making something of your life, also only a complete noob coder will have to sit in front of the computer all day trying to code something.

#Poor argument.
Zion~ is offline  
Old 09/22/2009, 02:21   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
@tao4229
Roflz! You just got owned.

@dsSharkk
Respect bro lol.

@Zion~
Well according to kinshi apparently making a server means you have no life.

@kinshi
Umm..Why don't you try quoting the whole sentence. "Yeah, sorry I actually have a life so I can't learn this sh*t 24/7 like you"
I still learn when I have time. I'm pretty sure you can make a server and have a life at the same time. I have a job, go to school, play hockey etc..I don't need to explain myself.
Jay1029 is offline  
Old 09/22/2009, 03:58   #14
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by Jay1029 View Post
K, a lot of the things my console tells me I do not understand. I try! Don't get me wrong. I know a lot more then I used to. But this one got by me...I have no clue what it means. It appears as soon as ANYONE (except myself) logs in.

System.InvalidOperationException: Connection must be valid and open
at MySQL.data.MySQLClient.MySQLCommand.CheckState<>
at MySQL.data.MySQLClient.MySQLCommand.ExecuteNonQuer y<>
at COServer_Project.Database.SaveHB<Character Charr> in D:\Documents and Settings\******\Desktop\Pyro Source\Source\COServerProject\database.cs:line 1169


I thought I had an idea of what it could have been but I was wrong =\ I still got the error. What I did was take "Points" out of SaveHB so it wouldn't save them there (It never did anyways -.-') but it failed =\
Now I need help =p
You said the error doesn't appear for u that means it works , and if u r sure that the source is saving all other players attributes then the only wrong thing i can figure out is u forgot to close the last connection
Code:
                MySqlCommand Command = null;
                Command = new MySqlCommand("UPDATE `Characters` SET `HeavenBless` = '" + Charr.HBEnd.ToString() + "',`WhichBless` = '" + Charr.WhichBless + "' WHERE `Account` = '" + Charr.MyClient.Account + "'", Connection);
                Command.ExecuteNonQuery();
                Command.Connection.Close();
                Command.Connection.Dispose();
                Command.Dispose();
samehvan is offline  
Thanks
1 User
Old 09/22/2009, 04:09   #15
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by dsSharkk View Post
You are retarded!! Thats not even what hes saying. He doesn't understand what "'System.InvalidOperationException:" means you idiot. You are blind or something? Two times you misread what he said so go take English lessons you illiterate son of a *****.
If you can't understand that the "System.InvalidOperationException:" is REFERRING to the next ******* statement you're the one who needs to take English lessons.
_tao4229_ is offline  
Closed Thread


Similar Threads Similar Threads
[RELEASE] Console Commands for Lame Console Look
12/07/2011 - CO2 PServer Guides & Releases - 12 Replies
Well, to avoid any further useless posts on this subject... here are a ton of console based commands that will control the game from the server console. I will not explain what each does, it should be pretty easy to figure out, and I don't intend to answer stupid questions. If its a good question, I will answer it. public static void DoStuff() { bool flag = true; Console.Clear(); Console.ForegroundColor = ConsoleColor.Red; ...



All times are GMT +2. The time now is 01:09.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.