Register for your free account! | Forgot your password?

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

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

Advertisement



general data packet doesn't update client

Discussion on general data packet doesn't update client within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 05/27/2013, 01:45   #16
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
I have no idea, I'll do some testing later. Never actually used the packet xD
Super Aids is offline  
Old 05/27/2013, 01:50   #17
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by Fаng View Post
Code:
    /// <summary> This enumerated type defines the types of interactions that can be executed by the client. </summary>
    public enum HoldingHandsAction : ushort
    {
        WALK_WHILE_HOLDING_HANDS = 1,
        JUMP_WHILE_HOLDING_HANDS = 2
    }
Correct (but that's for coupled jumps). As I said, I'd really be interested to see what else it could be used for with single jumps. I'm just worried that it would try showing the holding hands action with an imaginary character. That's what I experienced, but the interactions action was applied when I tried. It might as well do a regular jump.
If you're going to use C#, why not write* C# standard code?
InfamousNoone is offline  
Old 05/27/2013, 02:03   #18
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 946
Actually only the walk would need a value since the compiler can figure out the value of jump by itself xD

I assume you were referring to caps though?
Super Aids is offline  
Old 05/27/2013, 02:39   #19
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
Ah, yah. I know - you've told me a lot about how I don't follow C# standards with how I name variables and document things. I've never been criticized for my style though by the industry or my education. I've gotten a lot of positive comments about it actually. I know I won't convince you (and I'm not out to convince anyone), but here's why I name things as I do: it makes scope easier to control. For example,

Constants / Enums: VARIABLE_NAME
Public Variables: VariableName
Private Variables: _variableName
Local Variables (in the scope of a method/function): variableName

Why do I do that? Well, let's say I'm writing a function that uses two identifiers: bodyType and BODY_TYPE. Which one is the constant and which one is the argument I passed / declared in my method? Easy when I name things like I've shown above. It's just a trick from C++ that I follow to control variables. It's a lot more powerful than having three identifiers (a constant, private class scope variable, and local method scope variable) all with the same name. To me, that makes no sense. You tell me what the difference between bodyType and bodyType are (besides the "this" you have to put in front of one of them just to use it). It's just personal preference, and it works really well for me. Industry doesn't care how things are done before they hire you, just how things are done after (and if you can do that change). As long as you can show well organized code, you're good to go, and I've found that the way I do it is far more impressive than Microsoft's C# Garbage Style.
Spirited is offline  
Thanks
1 User
Old 05/27/2013, 02:54   #20
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
If you're dealing with a type enumeration it's pretty obvious it's a constant, you don't need the uppercase to emphasize it. Also, Resharper? lol.
InfamousNoone is offline  
Old 05/27/2013, 07:33   #21
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,205
Received Thanks: 4,107
Quote:
Originally Posted by InfamousNoone View Post
If you're dealing with a type enumeration it's pretty obvious it's a constant, you don't need the uppercase to emphasize it. Also, Resharper? lol.
I do understand where you're coming from. Your argument is that it might not be necessary with some of the things I do. However, tell me which of these calls is a call to an enumeration type and which one is a call to a variable in a class: Foo.WooHoo & Foo.WooHoo. Now tell me which is the enumeration type and which is the class type: Foo.WooHoo & Foo.WOO_HOO. Also, you now want people to have Resharper just to read your code? Don't worry, I'm not trying to convince you, that's just my personal opinion. You're welcome to style your code in any which way you find acceptable.
Spirited is offline  
Old 05/27/2013, 13:58   #22
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
Hey, at least he's not using PascalCase for private/local variables
Smaehtin is offline  
Old 05/27/2013, 14:37   #23
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Quote:
Originally Posted by Fаng View Post
I do understand where you're coming from. Your argument is that it might not be necessary with some of the things I do. However, tell me which of these calls is a call to an enumeration type and which one is a call to a variable in a class: Foo.WooHoo & Foo.WooHoo. Now tell me which is the enumeration type and which is the class type: Foo.WooHoo & Foo.WOO_HOO. Also, you now want people to have Resharper just to read your code? Don't worry, I'm not trying to convince you, that's just my personal opinion. You're welcome to style your code in any which way you find acceptable.
Quote:
Originally Posted by InfamousNoone View Post
If you're dealing with a type enumeration it's pretty obvious it's a constant, you don't need the uppercase to emphasize it. Also, Resharper? lol.
ReSharper rocks, it probably makes coding about 35% easier. (That stat came from google. )
_DreadNought_ is offline  
Old 05/27/2013, 21:24   #24
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
Quote:
Originally Posted by Fаng View Post
I do understand where you're coming from. Your argument is that it might not be necessary with some of the things I do. However, tell me which of these calls is a call to an enumeration type and which one is a call to a variable in a class: Foo.WooHoo & Foo.WooHoo. Now tell me which is the enumeration type and which is the class type: Foo.WooHoo & Foo.WOO_HOO. Also, you now want people to have Resharper just to read your code? Don't worry, I'm not trying to convince you, that's just my personal opinion. You're welcome to style your code in any which way you find acceptable.
An enumeration type is almost obvious by its name alone, if it's not, you've chosen a poor name for your enumeration, such as Foo (although just an example ). Also, neither of those are "calls", lol. And yes, I'm aware anyone can write code any way they want, and as such I follow the standard of the language I'm working with because it's more likely that others will be following the same standard, and not one I decided was "better" than the standard set by the language itself.
InfamousNoone is offline  
Reply


Similar Threads Similar Threads
Information about newish subtypes of the general data packet. (Again)
06/18/2011 - CO2 Private Server - 4 Replies
I'm working on a proxy for the Turkish servers, wondering if anyone has information about any of the following subtypes for the general data packet (type 0x271A). 0x6F, 0x7D, 0x81, 0x83-0x88, 0x8A-0x90, 0x92-0x96, 0x98-0x9B, 0x9D-0xA0, 0xA4, 0xA5, 0xAB, 0xAE, 0xAF, 0x193 - server->client (yes, the dashes represent the range) 0x66, 0x6F, 0x7B, 0x84, 0x91, 0x92, 0x94, 0x97, 0x98, 0x99, 0xA1, 0xAD, 0xAC, 0x136, 0x192 - client->server and 0x77, 0x67, 0x7C, 0x3E8, and 0x3E9 (these I've been...
Unknown general data subtypes for client v4267, and "spawn effect" subtype?
03/21/2011 - CO2 Private Server - 19 Replies
Need as much information as possible about any of the following subtypes for the general data packet (type 0x3F2, 1010) for v4267: 0x9B (sent server->client and client->server; When sent server->client, client echoes the packet with character's current coordinates in the 4-byte value, some sort of verification?), 0x9D (sent client->server; no idea.), 0xA0 (sent server->client and client->server; client echoes the packet with the current time in the 4-byte value. But what is it used for?...
5065 General Data Packet
07/08/2010 - CO2 Private Server - 8 Replies
Well I'm currently upgrading Hybrid's to 5065. I successfully got it logged into a 5065 client, updated the characterinfo packet, iteminfo packet, and now I'm working on GeneralData packet. I'm trying to turn this dump into a structure. 18 00 F2 03 8E A0 49 00 F2 D4 4C 00 00 00 00 00 00 00 00 00 00 00 4A 00 54 51 43 6C 69 65 6E 74 As much as Nullable taught me about dumps, all I got from that is 0x18 = 24, which is the length. 0x3F2 = 1010, which is the packet id. It's the rest...
Packet data for Race effect and Archon Buff - Elven Update ?
10/16/2009 - RF Online - 0 Replies
Since elven update ... I think packet for skills and forces have changed .. anyone knows race effect and archon buff packet for RF elven update ... ??
[Question] Packet data , packet editing ??
10/13/2009 - 9Dragons - 2 Replies
I would like to know : What is packet data? How do i get the address for hacking a item in game? How to use it ??



All times are GMT +1. The time now is 15:37.


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.