Register for your free account! | Forgot your password?

You last visited: Today at 19:38

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

Advertisement



[HELP]Console

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
[HELP]Console

I often get this error spamming my console, any ideas on what might be causing it or how to fix it.

Hanibal is offline  
Thanks
1 User
Old 02/04/2010, 03:55   #2
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Check database.cs line 1268 ......
hunterman01 is offline  
Old 02/04/2010, 06:13   #3
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Go to C:\\PSERVER\users\Characters\TwinBladez.chr and delete it or something. it says its being used by another program or sumtin. I dont really know actually. Nevermind lol
CIRASH is offline  
Old 02/04/2010, 12:09   #4
 
elite*gold: 0
Join Date: Sep 2006
Posts: 36
Received Thanks: 27
Quote:
Originally Posted by hunterman01 View Post
Check database.cs line 1268 ......
Ya that's the first thing I did and this is the line the error is reporting on.

Code:
FileStream FS = new FileStream(@"C:\PSERVER\Users\Characters\" + C.Name + ".chr", FileMode.Open);
And that's whats got me stumped, I can't quite figure out what it is referring to.
Hanibal is offline  
Old 02/04/2010, 12:25   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
it's opening the file @ C:\PSERVER\Users\Characters\CharacterName.chr so it can update it.

If that path is invalid, there is something wrong with the file in question, it's in use or anything similar you will get the error you are experiencing.
pro4never is offline  
Old 02/04/2010, 13:39   #6


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,125
Received Thanks: 2,518
Adding to what pro4never said, if it happens alot to various characters then the server is opening a file in order to update it and failing to close it, and then trying to open it again to update it again, which will cause that exception.
Korvacs is offline  
Old 02/04/2010, 15:07   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
A simple fix for save would be probably, creating the buffer with the data inside it, then open the file, save the buffer, close the file... it will be a lot faster and probably wouldn't error that much, and for loading, you can use byte[] buffer = File.ReadAllBytes(path); BinaryReader r = new BinaryReader(new MemoryStream(buffer));
-impulse- is offline  
Old 02/09/2010, 01:11   #8
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
-impulse- How can we do it? anyone know it? where to put the code for fixing this?
please I'm a new don't know how to code it please?
salem rey is offline  
Reply


Similar Threads Similar Threads
GM Console
07/25/2015 - Perfect World - 13 Replies
from a few months back..I heard elitepvpers planning to make a GM Console...that really works.... I wonder if it finish or not..?
[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; ...
Console
07/28/2010 - SRO Private Server - 6 Replies
how to open console :pimp::pimp::pimp::pimp::pimp::pimp::pimp: shift+alt after shift+' :pimp::pimp::pimp::pimp::pimp::pimp::pimp::pimp: SAY "THANKS"
help with the Console
02/12/2010 - CO2 Private Server - 6 Replies
ok in the console get alot of *blah blah* has suspicious amounts of cps so was wondering whats the command to delete there cps or change there cps to like 1 lol any help would be appreciated



All times are GMT +2. The time now is 19:38.


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.