Auto-Mapper Service

Forum for alternative clients, mods & discussions on the same.
voiddancer
Posts: 23
Joined: Wed Aug 16, 2017 4:08 pm

Re: Auto-Mapper Service

Post by voiddancer »

Code: Select all

      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

Code: Select all

      proxy_set_header Host \$host;
      proxy_set_header X-Real-IP \$remote_addr;
      proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
create-distribution.sh
voiddancer
Posts: 23
Joined: Wed Aug 16, 2017 4:08 pm

Re: Auto-Mapper Service

Post by voiddancer »

excuse me, but i cant login.
I'm use MAP_USER as login and MAP_PASSWORD as password there
https://live.staticflickr.com/65535/496 ... 56e3_o.png
i have error in console
https://live.staticflickr.com/65535/496 ... db0a_o.png

my nginx config (with some changes for compitability with my services)

Code: Select all

  server {
    listen 8088;
    server_name map.enot-it.eu;

    client_max_body_size 1M;

    gzip on;
    gzip_comp_level 4;
    gzip_types application/json;

    location / {
      root /home/mapuser/hnh-map/public;
      index index.html;
    error_log /var/log/nginx/automap_error.log error;
    access_log /var/log/nginx/automap_access.log combined;
#      access_log off;
    }

    location /api/ {
      proxy_pass http://127.0.0.1:5000;
      proxy_http_version 1.1;
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
  }
[/spoiler]
what i doing wrong?

upd
i thin, erorr there:
https://live.staticflickr.com/65535/496 ... 86a9_o.png

how i can fix bad path to api? http://map.enot-it.eu/map.enot-it.eu/api/v1/characters double domain.

UPD2
i'm idiot
Last edited by voiddancer on Wed Mar 04, 2020 6:59 am, edited 1 time in total.
User avatar
Vigilance
Posts: 3561
Joined: Fri May 21, 2010 9:30 pm
Location: fog of irrelevancy

Re: Auto-Mapper Service

Post by Vigilance »

yo i dont have fuckin systemd because i'm an idiot and picked the wrong amazon instance

can i just swap it out for other init systems?

edit: im pretty sure ive got upstart
Image
"Tosak gets the guys undressed faster than their girlfriends can." -NaoWhut
http://i.imgur.com/5cQiL.png http://i.imgur.com/lYyAA.png
voiddancer
Posts: 23
Joined: Wed Aug 16, 2017 4:08 pm

Re: Auto-Mapper Service

Post by voiddancer »

generally not working. how it does upload map tiles?

BAG problem with names in cyrillic
in english all ok

What about cave map?
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Auto-Mapper Service

Post by APXEOLOG »

Map backend fix
Issue: Zero-grid folder didn't create after cleanup, therefore server wasnt able to save uploaded minimaps
Commit: https://github.com/APXEOLOG/hnh-auto-ma ... 81bc9cffa4
Please rebuild and update map-backend.jar (you first will need to sudo systemctl stop hnhmap, upload new jar, sudo systemctl start hnhmap)

Workaround: If you don't want to redeploy backend you can just restart it. All folders are created on startup, so the proper folder structure will be restored

saltyfish wrote:Could somebody post simple instructions how to integrate this auto-mapper into Amber ?
You need to add this code into Amber and compile client: https://github.com/APXEOLOG/amber/pull/1


Now regarding mapping issues you've reported. I've compiled Purus Pasta client and got through all steps myself:
1. Login into the client and look into console for the current grid id (It should be like: "Setting character grid 278366768951845501 (-9, -9) null", the id will be 278366768951845501)
2. In client settings define map endpoint (it should not contain ending slash though)
3. Close client
4. Invoke "<map_edpoint>/api/v1/cleanup" on map backend to clear everything (if you didn't install fix from above then you will need to restart server after this step)
5. Access "<map_edpoint>/grids/mapdata_index", it should give you smth like 403 Forbidden
4. Invoke "<map_edpoint>/api/v1/setZeroGrid" on map backend and set grid id to one from step (1)
5. Access "<map_edpoint>/grids/mapdata_index", it should you one line like this "278366768951845501,0,0" with grid id you've set
6. Remove "mapdata_index_global" and "mapdata_index_local" files from the client folder
7. Start the client. Wait a bit at the login screen, ensure that "mapdata_index_global" file is back in your folder (is should contain same line from (5))
8. Login into the game. Your location icon should become green and logs in console should state that grids have been uploaded
Image
9. You can click on it, frontend will open in browser and you should see your map now
Last edited by APXEOLOG on Wed Mar 04, 2020 8:04 am, edited 1 time in total.
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Auto-Mapper Service

Post by APXEOLOG »

voiddancer wrote:What about cave map?
Only surface minimaps being uploaded
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
Vendan
Posts: 10
Joined: Sun Jan 02, 2011 8:56 pm

Re: Auto-Mapper Service

Post by Vendan »

You might consider treating the first location request api call as the 0,0 grid, makes it a bit easier to just "start the server, connect a client, and it'll work". That's what I did in my reimplementation.
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Auto-Mapper Service

Post by APXEOLOG »

Vendan wrote:You might consider treating the first location request api call as the 0,0 grid, makes it a bit easier to just "start the server, connect a client, and it'll work". That's what I did in my reimplementation.
Hm, yes, it actually makes sense. Will check it this evening
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
User avatar
wafflecat
Posts: 260
Joined: Thu Dec 15, 2011 7:46 pm

Re: Auto-Mapper Service

Post by wafflecat »

Thanks! It works now :D
User avatar
Undefined
Posts: 322
Joined: Tue May 18, 2010 12:22 pm
Location: United Kingdom

Re: Auto-Mapper Service

Post by Undefined »

Ditto, thanks a lot for the support, looking forward to playing around with it.

Return to “The Wizards' Tower”