"a *" for strings in bRO.pm

This place is for Closed bug reports only. NOT for asking help!

Moderators: Moderators, Developers

Message
Author
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

"a *" for strings in bRO.pm

#1 Post by EternalHarvest »

Code: Select all

# '035F' => ['party_join_request_by_name', 'a24', [qw(partyName)]],
$name = substr ($name, 0, 24) if 24 < length $name;
$name .= "\x00" x (24 - length $name);
Just use Z24, like it's used in other pack strings.

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: "a *" for strings in bRO.pm

#2 Post by iMikeLance »

fixed in r8125
thanks for the tip !

ROX_Leopardo
Developers
Developers
Posts: 37
Joined: 19 Nov 2011, 14:06
Noob?: No
Location: Brazil
Contact:

Re: "a *" for strings in bRO.pm

#3 Post by ROX_Leopardo »

EternalHarvest wrote:

Code: Select all

# '035F' => ['party_join_request_by_name', 'a24', [qw(partyName)]],
$name = substr ($name, 0, 24) if 24 < length $name;
$name .= "\x00" x (24 - length $name);
Just use Z24, like it's used in other pack strings.
035F is the correct packet?
I think that is 0802, someone tested it??

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: "a *" for strings in bRO.pm

#4 Post by kLabMouse »

ROX_Leopardo wrote:
EternalHarvest wrote:

Code: Select all

# '035F' => ['party_join_request_by_name', 'a24', [qw(partyName)]],
$name = substr ($name, 0, 24) if 24 < length $name;
$name .= "\x00" x (24 - length $name);
Just use Z24, like it's used in other pack strings.
035F is the correct packet?
I think that is 0802, someone tested it??
0802 is PACKET_CZ_PARTY_BOOKING_REQ_REGISTER
035F is PACKET_CZ_REQUEST_MOVE2

So I RLY can't Tell what's Right or Wrong.
But None of known to me Packet Sets matches ID's provided.

The Correct packet (For ST 0) should be this one:

Code: Select all

// packet: 0x2c4
// len: 26
struct PACKET_CZ_PARTY_JOIN_REQ {
  /* this+0x0 */ short PacketType
  /* this+0x2 */ char characterName[24]
} 
and the answer:

Code: Select all

// packet: 0x2c5
// len: 30
struct PACKET_ZC_PARTY_JOIN_REQ_ACK {
  /* this+0x0 */ short PacketType
  /* this+0x2 */ char characterName[24]
  /* this+0x1a */ enum PACKET_ZC_PARTY_JOIN_REQ_ACK::enumAnswer answer // len 4
  /*
    ANSWER_ALREADY_OTHERGROUPM =  0x0,
    ANSWER_MEMBER_OVERSIZE =  0x3,
    ANSWER_JOIN_ACCEPT =  0x2,
    ANSWER_JOIN_REFUSE =  0x1,
    ANSWER_DUPLICATE =  0x4,
    ANSWER_JOINMSG_REFUSE =  0x5,
    ANSWER_UNKNOWN_ERROR =  0x6,
    ANSWER_UNKNOWN_CHARACTER =  0x7,
    ANSWER_INVALID_MAPPROPERTY =  0x8
  */
} 
As for bRO. There situation is Different. the ID changes each Maintenance. So talking about packet ID is useless.

iMikeLance
Moderators
Moderators
Posts: 208
Joined: 01 Feb 2010, 17:37
Noob?: No
Location: Brazil - MG
Contact:

Re: "a *" for strings in bRO.pm

#5 Post by iMikeLance »

This is one of the packetIDs that LevelUp!Games changes every week, so when I posted/commited this it was different.

Post Reply