Page 1 of 1

"a *" for strings in bRO.pm

Posted: 24 Aug 2012, 09:34
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.

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

Posted: 24 Aug 2012, 18:41
by iMikeLance
fixed in r8125
thanks for the tip !

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

Posted: 10 Sep 2012, 09:48
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??

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

Posted: 10 Sep 2012, 19:57
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.

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

Posted: 10 Sep 2012, 20:07
by iMikeLance
This is one of the packetIDs that LevelUp!Games changes every week, so when I posted/commited this it was different.