Git Product home page Git Product logo

Comments (8)

LucBerge avatar LucBerge commented on May 29, 2024 1

Done, check the wiki : https://github.com/LucBerge/B4D/wiki/Support-new-socket-parsing

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

Maybe yes. We should be able to get these informations and B4D must use it. However, I haven't done it yet. In order to do it you'll first need a network analyzer like WireShark, identify the socket(s) received when changing the map and reverse engineering it to find the data you need.

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

Could you be interested in a documentation about "How to parse sockets" ?

from b4d.

corentin-ballot avatar corentin-ballot commented on May 29, 2024

I would ! I tried it alone but wasn't able to achived it yet...

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

Ok, I'll make a documentation about how to parse chat message sockets. It could be interesting to ask other bot developers how they did it (Flatybot...etc)

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

By the way, I think that ressources locations are not in the "change map socket", same for the monsters locations

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

Note that the socket ids defined in the SocketType class are for Dofus V2.58. The socket ids change at every update. The current Dofus version is 2.59 which means that the ids are wrong and need to be updated.

Also, the change map event is already parsed in the ChangeMapEventParser class. From what I remember, the socket is pretty small and doesn't contain usefull informations.

  • The monsters informations (location, level, monsters...etc) must be in an other socket received when changing map and when a group pop.
  • The resources locations must be in local files.
  • The resources status (if it can be harvested or not) must be in an other socket received when changing map and when a resource pop.

To find the sockets you want to parse, I recommend you to go on a map and wait for a group/resource to pop.

from b4d.

LucBerge avatar LucBerge commented on May 29, 2024

When you change of map, multiple sockets are received.
What I've seen so far for the version 2.59:

  • 0x01 simple map change event (socket is empty)
  • 0x6d : Unknown (looks like a hash)
  • 0x4f : Informations about players (sure) and maybe more

from b4d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.