Jump to content
Ind

PacketDB Overhaul

Recommended Posts

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:
    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~!

Edited by Ridley

Share this post


Link to post
Share on other sites

I just added..

 

 

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

 

both avoids disconnection after clicking it..

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

 

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.

 

wow. thanks for this :)

Share this post


Link to post
Share on other sites

Just change the 'PACKETVER' in the Herculessrccommonmmo.h

#ifndef PACKETVER	#define PACKETVER 20120515#endif
And don't forget to recompile.

If it's not supported, try another client with different date :)

Share this post


Link to post
Share on other sites

 

Just change the 'PACKETVER' in the Herculessrccommonmmo.h

#ifndef PACKETVER	#define PACKETVER 20120515#endif
And don't forget to recompile.

If it's not supported, try another client with different date :)

 

 

thanks 

nanakiwurtz

Share this post


Link to post
Share on other sites

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 

post-749-0-28028500-1369125283_thumb.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.