Difference between revisions of "Packet Length Extractor"

From OpenKore Wiki
Jump to navigation Jump to search
(how to use v3)
m
Line 4: Line 4:
 
* NPCs, players and monsters are not recognized by Kore (shown as Unknown)
 
* NPCs, players and monsters are not recognized by Kore (shown as Unknown)
  
Then generating a new recvpackets.txt might solve the problem. It's advisable to '''''always''''' extract the recvpackets before running Openkore. The file must be on tables folder.
+
Then generating a new recvpackets.txt might solve the problem. It's advisable to '''always''' extract the recvpackets before running Openkore. The file must be on tables folder.
  
'''''Note.''''' You may have problems extracting the recvpackets if your server's client has some kind of protection. You should deal with it (like unpack if binary is packed) before using packet extractor, if it fails to find anything.
 
 
== About ==
 
 
The network data that the server sends to Kore, is a byte stream. Kore must be able to recognize messages inside that byte stream to be able to do something with it. But the size of the messages can vary from to server to server. Recvpackets.txt contains information about the size of each message, so Kore can correctly split the byte stream into messages.
 
The network data that the server sends to Kore, is a byte stream. Kore must be able to recognize messages inside that byte stream to be able to do something with it. But the size of the messages can vary from to server to server. Recvpackets.txt contains information about the size of each message, so Kore can correctly split the byte stream into messages.
  
== Download ==
+
== RO Tools ==
There are two programs you can use to extract the recvpackets:
 
  
*[http://www.megaupload.com/?d=7PXQ9J1N JCV's RO Tools v1.0.3]
+
* [http://www.megaupload.com/?d=7PXQ9J1N JCV's RO Tools v1.0.3]
*[http://www.megaupload.com/?d=MLUVJLSL OpenKore Packet Length Extractor v1.1.0]
 
: You can also get Openkore Packet Lenght Extractor though SVN.
 
  
 
It's better to use JCV's RO Tools as it is more up to date and have some fixes for newer clients. Also it's much easier to maintain, but it has undesirable and outdated options in addition to the Openkore packet extractor.
 
It's better to use JCV's RO Tools as it is more up to date and have some fixes for newer clients. Also it's much easier to maintain, but it has undesirable and outdated options in addition to the Openkore packet extractor.
  
+
=== Usage ===
== Extracting Recvpackets ==
 
 
# Open RO Tools.
 
# Open RO Tools.
 
# Click in the button with '''...''' beside the box. Search for your's server executable (not server patcher) and open it. <br/>[[File:button.PNG]]
 
# Click in the button with '''...''' beside the box. Search for your's server executable (not server patcher) and open it. <br/>[[File:button.PNG]]
 
# On Extractor Type, check '''Full Disarm''' box. <br/>[[File:full.PNG]]
 
# On Extractor Type, check '''Full Disarm''' box. <br/>[[File:full.PNG]]
 
# Click on '''Start''' button and wait it to finish. <br/>[[File:start.PNG]]
 
# Click on '''Start''' button and wait it to finish. <br/>[[File:start.PNG]]
# After it finishes, it will ask for you to save the file. Save it on ''tables'' folder, inside your Openkore's root folder. Override current file if needed.
+
# After it finishes, it will ask for you to save the file. Save it on [[tables]] folder, inside your Openkore's root folder. Override current file if needed.
 +
 
 +
== Packet Extractor ==
 +
 
 +
* [http://www.megaupload.com/?d=MLUVJLSL OpenKore Packet Length Extractor v1.1.0]
 +
* Also in OpenKore SVN.
  
=== Notes ===
+
== Packet Extractor v3 ==
  
You can rename recvpackets file name as long as you change '''recvpackets''' option on servers.txt. (See [[Connectivity Guide]])
+
* In OpenKore SVN.
  
= v3 branch =
 
 
Packet extractor branch to work with new insert server list here clients.
 
Packet extractor branch to work with new insert server list here clients.
  
== Usage ==
+
=== Usage ===
 
# Run <code>packet_extract.pl</code> with your ragexe file name as an argument. It will generate <code>extractor.exe</code>.
 
# Run <code>packet_extract.pl</code> with your ragexe file name as an argument. It will generate <code>extractor.exe</code>.
 
# Run <code>extractor.exe</code> (works with wine on non-Windows) which will output recvpackets contents to STDOUT.
 
# Run <code>extractor.exe</code> (works with wine on non-Windows) which will output recvpackets contents to STDOUT.
 +
 +
== Notes ==
 +
* Recvpackets file can be renamed as long as recvpackets option on [[servers.txt]] is set accordingly. (See [[Connectivity Guide]])
 +
* There may be problems extracting the recvpackets if your server's client has some kind of protection. '''You''' should deal with it (like unpack if binary is packed) before using packet extractor, if it fails to find anything.

Revision as of 20:45, 14 December 2010

If you're having server problems, such as:

  • Packet Tokenizer: Unknown switch: xxxx
  • Getting disconnected after a few seconds
  • NPCs, players and monsters are not recognized by Kore (shown as Unknown)

Then generating a new recvpackets.txt might solve the problem. It's advisable to always extract the recvpackets before running Openkore. The file must be on tables folder.

The network data that the server sends to Kore, is a byte stream. Kore must be able to recognize messages inside that byte stream to be able to do something with it. But the size of the messages can vary from to server to server. Recvpackets.txt contains information about the size of each message, so Kore can correctly split the byte stream into messages.

RO Tools

It's better to use JCV's RO Tools as it is more up to date and have some fixes for newer clients. Also it's much easier to maintain, but it has undesirable and outdated options in addition to the Openkore packet extractor.

Usage

  1. Open RO Tools.
  2. Click in the button with ... beside the box. Search for your's server executable (not server patcher) and open it.
    File:button.PNG
  3. On Extractor Type, check Full Disarm box.
    File:full.PNG
  4. Click on Start button and wait it to finish.
    File:start.PNG
  5. After it finishes, it will ask for you to save the file. Save it on tables folder, inside your Openkore's root folder. Override current file if needed.

Packet Extractor

Packet Extractor v3

  • In OpenKore SVN.

Packet extractor branch to work with new insert server list here clients.

Usage

  1. Run packet_extract.pl with your ragexe file name as an argument. It will generate extractor.exe.
  2. Run extractor.exe (works with wine on non-Windows) which will output recvpackets contents to STDOUT.

Notes

  • Recvpackets file can be renamed as long as recvpackets option on servers.txt is set accordingly. (See Connectivity Guide)
  • There may be problems extracting the recvpackets if your server's client has some kind of protection. You should deal with it (like unpack if binary is packed) before using packet extractor, if it fails to find anything.