PacketDB Overhaul

Ind

Development Administrator
Staff member
Messages
1,655
Points
113
PacketDB Overhaul
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
Changes

  • 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
packets.h format

  • for outgoing packets:packet(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);
Improvement

  • 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
Credits

  • Feature Design by GreenBox
Special Thanks

  • to mkbu95 for bringing this topic up! (reworking the packetdb)
Links~!

 
Last edited by a moderator:
I just added..

 packet(0x0868,12); //Sorcerer cancel something packet(0x0844,2); //cashshop button (ragexe) 

both avoids disconnection after clicking it..

 
Wow! I mean... wow! Your work is awesome.
 
Thanks!
default_wink.png

 
Impressive! That'll ease a bit the process of making servers and that's better for us all.

Thank you Ind!

 
i can't understand this. how can i set packet for 2012-04-10 client?
just change your packetver to 20120410, that simple, that easy.
 
Last edited by a moderator:
Just change the 'PACKETVER' in the Herculessrccommonmmo.h

#ifndef PACKETVER #define PACKETVER 20120515#endifAnd don't forget to recompile.If it's not supported, try another client with different date
default_smile.png


 
i do that guide but can't connect to Map server!!! clean connection with login and char but when i entering to the actual game i got failed to connect to server but no error in char log and map server i am using 20120515 RagREexe

how i can fix it help me!!!

thanks in advance by the way here the photo of my server console 

View attachment 265
 
I cant apply it in rathena rev. 17406

Error: pc.h too many Include :/

 
Back
Top