jcageman / d2mapapi

d2 map rest API to retrieve the map layout per area given a map seed
69 stars 55 forks source link

collisionmap? #4

Closed dkati closed 3 years ago

dkati commented 3 years ago

i saw the source code contains collision map stuff. how can i take it ?

jcageman commented 3 years ago

The readme explains how you can interact with the program after starting it. Specifically the get of a specific Map also gives back all the collision information. Feel free to ask specific questions

SilasMueller commented 3 years ago

When you request a map, you get back a json formatted string that contains information about the map. Most of them are pretty self-explanatory. But what do all the different values in the "mapRows" array mean? If you paste them into npp++, format them and zoom waay out, it starts to look like a real map :D but that cant be their real purpose, right?

jcageman commented 3 years ago

It's the real map indeed. Every row is just a row in the diablo grid (map). for an example implementation how to use it look at the diablo09 clientless repository (also in my repositories). It uses this project for automated navigation

dkati commented 3 years ago

how do i get the json file guys?

Sorry for being such noob.

./d2mapapi "MYpath" start the server thing. no json found

jcageman commented 3 years ago

You need to make the required http POST and GET requests mentioned in the readme. You could do that with for example with a tool called postman