Register for your free account! | Forgot your password?

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

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

Advertisement



[Question] definition of CPs

Discussion on [Question] definition of CPs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
Question [Question] definition of CPs

i'm having a problem with CPs it goes minus ..
and i've been told to find out the definition of CPs ..

and i don't know where the **** is definition of CPs stored at ..

can any one give me a little guide where to find that ? ( definition of CPs ) .

which file ?

...................
Sport is offline  
Old 12/30/2009, 14:20   #2
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by Sport View Post
i'm having a problem with CPs it goes minus ..
and i've been told to find out the definition of CPs ..

and i don't know where the **** is definition of CPs stored at ..

can any one give me a little guide where to find that ? ( definition of CPs ) .

which file ?

...................
Character.cs, then change your definition type of CPs to uint.
ImmuneOne is offline  
Old 12/30/2009, 14:36   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 47
Received Thanks: 3
hmmm ,,, it's unit ..

and i found that ..

Code:
public uint CPs
        {
            get { return _CPs; }
            set
            {
                _CPs = value;
                if (Loaded)
                {
                    MyClient.AddSend(Packets.Status(EntityID, Status.CPs, _CPs));
                }
            }
        }
should i chane that value ? and make it unit ? ... or what :S
Sport is offline  
Old 12/30/2009, 16:22   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Sport View Post
hmmm ,,, it's unit ..

and i found that ..

Code:
public uint CPs
        {
            get { return _CPs; }
            set
            {
                _CPs = value;
                if (Loaded)
                {
                    MyClient.AddSend(Packets.Status(EntityID, Status.CPs, _CPs));
                }
            }
        }
should i chane that value ? and make it unit ? ... or what :S

Make it a int so it is unsigned.
This post should help.
Arcо is offline  
Old 12/30/2009, 17:25   #5
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
unsigned integer i think arco's already mentioned this instead of going from -2147483648 to 2147483648 it just goes from 0 to 4294967295.
.Guru is offline  
Old 12/30/2009, 18:25   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Hepatitis B View Post
unsigned integer i think arco's already mentioned this instead of going from -2147483648 to 2147483648 it just goes from 0 to 4294967295.
Indeed.

Quote:
Originally Posted by Sport View Post
hmmm ,,, it's unit ..

and i found that ..

Code:
public uint CPs
        {
            get { return _CPs; }
            set
            {
                _CPs = value;
                if (Loaded)
                {
                    MyClient.AddSend(Packets.Status(EntityID, Status.CPs, _CPs));
                }
            }
        }
should i chane that value ? and make it unit ? ... or what :S
try this:


Code:
public uint CPs
        {
            get { return _CPs; }
            set
            {
                if(value > 0)
                    _CPs = value;
                if (Loaded)
                {
                    MyClient.AddSend(Packets.Status(EntityID, Status.CPs, _CPs));
                }
            }
        }
It should work now...but I can not really understand why it would get under 0 when its a uint.
-impulse- is offline  
Old 12/30/2009, 19:04   #7
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
i think there was a bug with this, don't quite remember. the source (really lotf updated) has alot of bugs and i see alot of uint values go negative. (silvers/cps/etc).
.Guru is offline  
Old 12/30/2009, 20:27   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Probably incorrect use of pointers in the packet, making an unsigned integer back into a signed one again.
Korvacs is offline  
Old 12/30/2009, 20:59   #9
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Unsigned integers should never decrement below 0, as Korvacs said probably misuse of pointers
Nullable is offline  
Reply


Similar Threads Similar Threads
Trainingsplan für Definition so gut?
10/28/2009 - Off Topic - 13 Replies
Guten Abend liebes Forum , Ich trainiere schon 3 Jahre, hatte allerdings zwischendurch eine Pause. Nun möchte ich meinen Körper gut definieren, da ich genug Masse habe. Mit 190 cm und knapp 85 kg Körpergewicht, bin ich zwar nicht dick, aber man kann meine Muskeln auch nicht soo gut sehen. Ich habe gelesen, dass sich am Training für Definition nicht allzu viel ändern soll, sondern es an der Ernährung & an Ausdauertraining liegt. Momentan sieht das bei mir so aus: Montag:...
[REQ] Definition of TradeList
07/15/2009 - CO2 Private Server - 4 Replies
This is of kinshi's thread (Trade for CoEmu v2) how to define the TradeList? I got everything else. just this one Help will be appreciated!
Die Definition eines Menschen?
11/02/2004 - Off Topic - 0 Replies
Wer kann mir was zu dieser Philosophischen Aufgabe was sagen würde nun gerne auch eine Diskussionsrunde machen ;) (18:52:32) (olo2001) wie würdet ihr einen menschen definieren? (18:52:49) () organischer klumpen fleisch (18:53:05) () streich das fleisch ^^ (18:53:26) () oder sagen we das gegenteil von buu, k? (18:53:28) (olo2001) was hälst du von ein machthungriges,lügendes und sich anderen fügendes Lebewesen (18:53:51) () wenn dus so siehst ises buu (18:54:08) (olo2001) stimmt ^^...



All times are GMT +1. The time now is 02:42.


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