- Joined
- Jul 1, 2010
- Messages
- 430
- Reaction score
- 41
Re: Updating a Server from One Version to Another [Wall of Text/Unfinished]
OKAYOKAYOKAY. I'm not understanding here. Okay. I want to update v83 - v1.0 right? But why do I need to know about the handlers? They seem fine to me, I thought I just had to update the packets. Like
//v.83
Received MOVE_SUMMON [00A2] (26)
[header"A2 00] [42 73 55 00] [gm"00] [?10 00] [text"52 3E 42 50 71 20 20 53 3E 47 46 41 20 37 6D 21] [show?"00]
¢.BsU....R>BPq S>GFA 7m!.
^^^^
Wth is all of that????? Shouldn't it be like this-
MOVE_SUMMON = 0xA2 < In Send/RecvOps?
Where would all of that go?//v.99
Received CHATTEXT [00C2] (13)
[header"C2 00] [DD 0C 02 00] [gm"00] [?03 00] [text"68 65 79] [show?"00]
Â.Ý......hey.
[/php]
OKAYOKAYOKAY. I'm not understanding here. Okay. I want to update v83 - v1.0 right? But why do I need to know about the handlers? They seem fine to me, I thought I just had to update the packets. Like
nice nice I've learn a few things and so let me do a little test:
Information:
PHP://v.83 Received MOVE_SUMMON [00A2] (26) [header"A2 00] [42 73 55 00] [gm"00] [?10 00] [text"52 3E 42 50 71 20 20 53 3E 47 46 41 20 37 6D 21] [show?"00] ¢.BsU....R>BPq S>GFA 7m!. //v.99 Received CHATTEXT [00C2] (13) [header"C2 00] [DD 0C 02 00] [gm"00] [?03 00] [text"68 65 79] [show?"00] Â.Ý......hey.
I've updated from v.83 to v.97 and learned a bit on packet, so I was thinking why not test my ability here to make sure I'm doing this correctly..first time I've played with packets and upgraded..PHP:public static MaplePacket getChatText(int cidfrom, String text, boolean gm, int show) { MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();//TODO since theres a limit in text in global mplew.writeShort(0xC2); mplew.writeInt(cidfrom); mplew.write(gm ? 1 : 0); mplew.writeShort(text.length() > 10 : 10 : text.length()); // I'm guessing the text length if past 10 stays in 10/0A? mplew.writeMapleAsciiString(text);//add a getRightPaddedStr prob? mplew.write(show); return mplew.getPacket(); }
//v.83
Received MOVE_SUMMON [00A2] (26)
[header"A2 00] [42 73 55 00] [gm"00] [?10 00] [text"52 3E 42 50 71 20 20 53 3E 47 46 41 20 37 6D 21] [show?"00]
¢.BsU....R>BPq S>GFA 7m!.
^^^^
Wth is all of that????? Shouldn't it be like this-
MOVE_SUMMON = 0xA2 < In Send/RecvOps?
Where would all of that go?//v.99
Received CHATTEXT [00C2] (13)
[header"C2 00] [DD 0C 02 00] [gm"00] [?03 00] [text"68 65 79] [show?"00]
Â.Ý......hey.
[/php]
PHP:
[COLOR="red"]Where does this go? My v.83 repack is already coded?
vvvvv[/COLOR] public static MaplePacket getChatText(int cidfrom, String text, boolean gm, int show) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();//TODO since theres a limit in text in global
mplew.writeShort(0xC2);
mplew.writeInt(cidfrom);
mplew.write(gm ? 1 : 0);
mplew.writeShort(text.length() > 10 : 10 : text.length()); // I'm guessing the text length if past 10 stays in 10/0A?
mplew.writeMapleAsciiString(text);//add a getRightPaddedStr prob?
mplew.write(show);
return mplew.getPacket();
}
Sorry if this is a stupid question...