pandorabox-io / in-game

Random code and stuff for in-game things
MIT License
3 stars 0 forks source link

Make it easier to view "areas" (from area protection mod) #53

Closed dennisjenkins75 closed 3 years ago

dennisjenkins75 commented 3 years ago

The mapserver shows "prot-blocks" when zoomed way in. This is nice. Would be really nice if one could also see an overlay of the "areas" as well. This would make it easier to see unclaimed territory (for yourself, or for helping a new player find a "good spot" for their own use).

The areas are currently exposed via a json API and can be scraped out-of-game:

$ wget -q https://pandorabox.io/api/areas -O - | jq -c '.[] | select(.owner == "1hit")'

I have multiple ideas, and they are not necessarily mutually exclusive:

  1. Enhance the map server to allow viewing of areas. Granted that the map server shows a 2d slice, and areas are 3d and can be quite tall (up to 128, or 512, depending on player's priv)
  2. Create an offline tool (python or lua script) that one can run manually that would grab their areas and convert them into a SVG. However, doing this won't make it super easy to correlate the resulting 3d image with the map server.
Klaranth commented 3 years ago

@OgelGames @S-S-X I like to see some response to this idea.

OgelGames commented 3 years ago

@BuckarooBanzay is the one that does the mapserver stuff, I have no clue how that all works :D

Also it's probably better to move this to the mapserver issues.

Klaranth commented 3 years ago

@OgelGames @BuckarooBanzay Ok, how do I move stuff?

OgelGames commented 3 years ago

I don't think it's possible to move issues between organizations, only to other repos in the same one. I think the only way is to copy it to a new issue. (and maybe also link the previous issue)

Klaranth commented 3 years ago

Okay, so where is the mapserver repo ? Is this the one : https://github.com/minetest-mapserver/mapserver/issues

OgelGames commented 3 years ago

Is this the one : https://github.com/minetest-mapserver/mapserver/issues

Yes

dennisjenkins75 commented 3 years ago

(Manually) Moved to https://github.com/minetest-mapserver/mapserver/issues/178