Packet Logs

Occasionally we ask for help from the community when working on Clementine.
If there's anything that you feel you could help with then feel free to drop in here!
User avatar
Tony
Posts: 71
Joined: Wed Jul 09, 2014 11:26 pm

Packet Logs

Postby Tony » Tue Jun 23, 2015 9:12 am

People have been asking to see the logs we use for research.
If anyone would like to document anything from these logs, feel free.

If you don't know what these are, or what to do with them, I wont be explaining it. It would take more time to teach than it would be for me to do the research manually (my self). If this isn't for you, don't worry :)

http://www.smidgeindustriesltd.com/nyuwiki/files/binlogs/
"Explaining it is like trying to eat a bear trap... or something"

User avatar
LateNightBuddha
Posts: 42
Joined: Sat Jul 19, 2014 11:53 pm
Location: Pennsylvania
Contact:

Re: Packet Logs

Postby LateNightBuddha » Wed Jun 24, 2015 1:11 am

Updated links: January 28th 2016 @ 12:48AM Eastern:

Update June 25th 2015 @ 6:09AM Eastern:
-Fixed Gui Scrollbar out of view Issue
-Added extra modes for addressing Hex movement
-Added better support for out of range movement
-Added better external hex editing support
-Added easy menu option to configure hex editor
-Changed general Gui Elements
-Cleaned up code and Gui Elements I forgot to remove
-Faster processing than the original Binlogtool SE
-Changed title bar text it was annoying me
-Added new help option for tips and more
-Removed a useless menu option from parser
-Added Clementine Easter Eggs... Wait What?!

This is a public release of BinLogTool to open and parse those files from above:
https://www.mediafire.com/?avqb0ubb1le2c27

Image


Disclaimer:
I don't plan to update this much but if there is something major that needs to be fixed then I will work on it otherwise the software is AS-IS

Old Post:
Spoiler:
Did you want me to build a public clean version of Binlog Tool Second Edition?
Last edited by LateNightBuddha on Thu Jan 28, 2016 5:48 am, edited 13 times in total.
Partner card ID: Missing
Let's play some PSU!

User avatar
Tony
Posts: 71
Joined: Wed Jul 09, 2014 11:26 pm

Re: Packet Logs

Postby Tony » Wed Jun 24, 2015 1:50 am

I don't expect anyone to need it, but if you'd like to post it, you can.
"Explaining it is like trying to eat a bear trap... or something"

User avatar
LateNightBuddha
Posts: 42
Joined: Sat Jul 19, 2014 11:53 pm
Location: Pennsylvania
Contact:

Re: Packet Logs

Postby LateNightBuddha » Thu Jun 25, 2015 10:19 am

Tony wrote:I don't expect anyone to need it, but if you'd like to post it, you can.

I updated my post from above so people can download the software if needed.
Partner card ID: Missing
Let's play some PSU!

Carsomyr
Posts: 10
Joined: Thu Feb 18, 2016 12:08 pm

Re: Packet Logs

Postby Carsomyr » Sun Feb 21, 2016 3:03 am

I understand the complexity and I don't expect you to teach me but I am curious I would love a quick and dirty explanation on how you take the information in the packet logs and turn it into usable code, or maybe some useful links with information... I'd love to get involved in a project like this but even if I cannot make something usable for clementine, i'd still like something just to expand my knowledge :D

Ricewind
Posts: 105
Joined: Mon Feb 01, 2016 12:05 am

Re: Packet Logs

Postby Ricewind » Sun Feb 21, 2016 12:40 pm

These packet logs were recorded over a reasonable time once.

It's kind of translating from another language I guess. You can see what the client sends and the stuff that the client accepts. You then need to figure out what these values mean. At the server side (which you need to program yourself from scratch), you need to process the incoming data and send a processed packet back to the client.

An example for this could be:
>Player opens shop
>Client requests item list from server
>Server collects item list for the according shop and sends it to the client (<Program this yourself)
>Client reads packet from server and uses it to display a shop and it's items.


I'm not currently working on this server and the above information is based on my own speculation and knowledge of programming.

User avatar
Gnome
Posts: 238
Joined: Fri Nov 14, 2014 10:56 am

Re: Packet Logs

Postby Gnome » Thu Apr 07, 2016 3:25 am

Check our wiki, we've documented quite a bit on how alot of these packets work, what they are and their ugly bits.

To get started on something simple, you could check the patch server's section.
http://psu-clementine.net/wiki/doku.php?id=networkprotocol:patch_us:0100

As can be seen on that page, it details what each part is and does, about turning that into usable code, that'd be more down to you of figuring out a way of doing so as we're not open source (yet? maybe?, I don't know).
That packet is sent to the Client as soon as a connection is established, we'll call this the hello packet for now.
I even went to the effort of taking this lovely screenshot, which shows both the 0x0100 packet, as well as the 0x1400 packet that the client instantly responses with
http://psu-clementine.net/wiki/doku.php?id=networkprotocol:patch_us:1400

Image

They're documented exactly how we're sending them (usually).

As for sending them, you could look into some tutorials on how to use WinSock.
http://johnnie.jerrata.com/winsocktutorial/
http://www.tenouk.com/Winsock/Winsock2example.html
http://www.binarytides.com/winsock-socket-programming-tutorial/
http://www.madwizard.org/programming/tutorials/netcpp/

I'm not sure on how good the above are, but I'm sure it'll help somewhat.
Hurt me please

User avatar
Eidolon
Posts: 7
Joined: Sun Nov 29, 2015 6:11 am

Re: Packet Logs

Postby Eidolon » Fri Apr 22, 2016 8:44 pm

I can't thank y'all enough for releasing these and opening up the wiki! Really awesome work, and the wiki is well organized. I will see to building some analysis and development tools when my PSOBB server implementation is closer to feature complete, eventually.


Return to “Job List”

Who is online

Users browsing this forum: No registered users and 1 guest