PacketDB Overhaul
Hello~! - What?!
Hello~! - What?!
- 1st, not a overhaul as much as...well we purged the poor thing completely
- 2nd, adding and maintaining packets is now much easier
- packet_db.txt was dropped
- packet_ver was dropped in its entirety, the server has never been able to maintain multiple packet versions at once stably
- packet_ver_flag setting in conf/battle/client.conf was dropped
- packets are now stored at src/map/packets.h
- for outgoing packets
acket(packet_id,length)/* example */packet(0x006a,23);
- for incoming packets:
Code:
packet(packet_id,length,function,offset ( specifies the offset of a packet field in bytes from the begin of the packet ),...)/* example */packet(0x0072,19,clif->pWantToConnection,2,6,10,14,18);
- Users no longer have to touch packet files when changing their client versions, PACKETVER in src/common/mmo.h is now enough.
- With the map server not having to maintain packets for so many versions at once, its ram usage was reduced by 7MB
- Feature Design by GreenBox
- to mkbu95 for bringing this topic up! (reworking the packetdb)
Last edited by a moderator: