Register for your free account! | Forgot your password?

Go Back   elitepvpers > Shooter > WarRock
You last visited: Today at 03:23

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

Advertisement



[QUESTION] Costume strings

Discussion on [QUESTION] Costume strings within the WarRock forum part of the Shooter category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
[QUESTION] Costume strings

I know the server communicates about costumes using 1 string.
Example: BA11,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^ ,^,^,^,^,^,^

I realize that the commas are seperators, but what are the ^'s?
Does the position relate with the 'meaning' of the value? Do they represent a certain structure?
Basser is offline  
Old 10/12/2013, 19:34   #2
 
ToxicData's Avatar
 
elite*gold: 32
Join Date: Dec 2009
Posts: 937
Received Thanks: 1,307
Add me @skype..
ToxicData is offline  
Old 10/12/2013, 19:43   #3
 
Sleutel's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 746
Received Thanks: 567
"^" is an empty slot.
Sleutel is offline  
Old 10/12/2013, 19:44   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by Sleutel View Post
"^" is an empty slot.
But if there is a value, does the position matter?
Basser is offline  
Old 10/13/2013, 10:59   #5
 
Sleutel's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 746
Received Thanks: 567
Quote:
Originally Posted by Basser View Post
But if there is a value, does the position matter?
I haven't tested it, but I assume that it just starts at the beginning.
No empty spaces. But I'm not sure haven't tested this.
Sleutel is offline  
Old 10/13/2013, 13:05   #6
 
elite*gold: 0
Join Date: Nov 2012
Posts: 592
Received Thanks: 393
Well its for the costume parts like it:

BA10,BB01,^,^,^,^,^,^,^,^,^,^,BM01,^,^,^,^,^,BS05, ^,^,BV03,^,BX07,^,^,^,^,^,^

BA10 = Costume not a part

The client sends where the part should be placed when you equip it (position), string has 30 slots

Have fun ^_^
~iToXiiC is offline  
Thanks
1 User
Old 10/13/2013, 15:22   #7
 
elite*gold: 1
Join Date: Apr 2013
Posts: 461
Received Thanks: 216
Quote:
Originally Posted by Basser View Post
I know the server communicates about costumes using 1 string.
Example: BA11,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^,^ ,^,^,^,^,^,^

I realize that the commas are seperators, but what are the ^'s?
Does the position relate with the 'meaning' of the value? Do they represent a certain structure?
Check items.bin:

Code:
    <CHARACTER>
        Flatform                        =   A
        Head                            =   B
        Headop                          =   C
        Headop                          =   D
        Face                            =   E
        Faceop1                         =   F
        Faceop2                         =   G
        Upper                           =   H
        Upperop1                        =   I
        Upperop2                        =   J
        Upperop3                        =   K
        Upperop3                        =   L
        Lower                           =   M
        Lowerop1                        =   N
        Lowerop2                        =   O
        Lowerop3                        =   P
        Lowerop3                        =   Q
        Vest                            =   R
        Vestop1                         =   S
        Vestop2                         =   T
        Vestop3                         =   U
        Hand                            =   V
        Hand                            =   W
        Shoes                           =   X
        Shoesop                         =   Y
        Package                         =   Z
    </CHARACTER>
As you can see, you have an overall of 26 slots (^ is placeholder; equals nothing in a slot).
.BlackHat is offline  
Thanks
1 User
Old 10/13/2013, 16:11   #8
 
elite*gold: 0
Join Date: Nov 2012
Posts: 592
Received Thanks: 393
Quote:
Originally Posted by .BlackHat View Post
Check items.bin:

Code:
    <CHARACTER>
        Flatform                        =   A
        Head                            =   B
        Headop                          =   C
        Headop                          =   D
        Face                            =   E
        Faceop1                         =   F
        Faceop2                         =   G
        Upper                           =   H
        Upperop1                        =   I
        Upperop2                        =   J
        Upperop3                        =   K
        Upperop3                        =   L
        Lower                           =   M
        Lowerop1                        =   N
        Lowerop2                        =   O
        Lowerop3                        =   P
        Lowerop3                        =   Q
        Vest                            =   R
        Vestop1                         =   S
        Vestop2                         =   T
        Vestop3                         =   U
        Hand                            =   V
        Hand                            =   W
        Shoes                           =   X
        Shoesop                         =   Y
        Package                         =   Z
    </CHARACTER>
As you can see, you have an overall of 26 slots (^ is placeholder; equals nothing in a slot).
Yes you're right bro, but client self send the position i do this way:

int WhereToPlace = int.Parse(getBlock(5));

string[] Placment = Costume.Split(new char[] { ',' });
Placment[WhereToPlace] = Code;
~iToXiiC is offline  
Old 10/13/2013, 16:19   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by ~iToXiiC View Post
Yes you're right bro, but client self send the position i do this way:

int WhereToPlace = int.Parse(getBlock(5));

string[] Placment = Costume.Split(new char[] { ',' });
Placment[WhereToPlace] = Code;
We shouldn't assume the client is playing by the rules
Basser is offline  
Thanks
1 User
Old 10/13/2013, 16:25   #10
 
elite*gold: 0
Join Date: Nov 2012
Posts: 592
Received Thanks: 393
Quote:
Originally Posted by Basser View Post
We shouldn't assume the client is playing by the rules
Client reads out from items.bin ;P
~iToXiiC is offline  
Old 10/13/2013, 16:28   #11
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by ~iToXiiC View Post
Client reads out from items.bin ;P
The problem is that the player can cheat; edit item.bin or use a hacked/custom client.
Basser is offline  
Old 10/13/2013, 17:25   #12
 
elite*gold: 1
Join Date: Apr 2013
Posts: 461
Received Thanks: 216
Quote:
Originally Posted by Basser View Post
The problem is that the player can cheat; edit item.bin or use a hacked/custom client.
True. I created an ItemInformation Class, splitting ItemCode into Enums.
.BlackHat is offline  
Old 10/13/2013, 18:02   #13
 
elite*gold: 0
Join Date: Nov 2012
Posts: 592
Received Thanks: 393
Quote:
Originally Posted by Basser View Post
The problem is that the player can cheat; edit item.bin or use a hacked/custom client.
Quote:
Originally Posted by .BlackHat View Post
True. I created an ItemInformation Class, splitting ItemCode into Enums.
There exists 'CRC' check (MD5 + WIN32) at startup & login server
~iToXiiC is offline  
Old 10/13/2013, 18:31   #14
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by ~iToXiiC View Post
There exists 'CRC' check (MD5 + WIN32) at startup & login server
And those values are just as easily "faked"
Basser is offline  
Reply




All times are GMT +2. The time now is 03:23.


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.