[QUESTION] Costume strings

10/12/2013 19:30 Basser#1
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?
10/12/2013 19:34 ToxicData#2
Add me @skype..
10/12/2013 19:43 Sleutel#3
"^" is an empty slot.
10/12/2013 19:44 Basser#4
Quote:
Originally Posted by Sleutel View Post
"^" is an empty slot.
But if there is a value, does the position matter?
10/13/2013 10:59 Sleutel#5
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.
10/13/2013 13:05 ~iToXiiC#6
Well its for the costume parts like it:

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

BA10 = Costume not a part :p

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

Have fun ^_^
10/13/2013 15:22 .BlackHat#7
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).
10/13/2013 16:11 ~iToXiiC#8
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;
10/13/2013 16:19 Basser#9
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
10/13/2013 16:25 ~iToXiiC#10
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
10/13/2013 16:28 Basser#11
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.
10/13/2013 17:25 .BlackHat#12
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. :D
10/13/2013 18:02 ~iToXiiC#13
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. :D
There exists 'CRC' check (MD5 + WIN32) at startup & login server ;)
10/13/2013 18:31 Basser#14
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"