Auto Mapping Implementation #2

Forum for alternative clients, mods & discussions on the same.

Re: Auto Mapping Implementation #2

Postby shubla » Thu Mar 26, 2020 3:55 pm

Vassteel wrote:so I wrote down every command I needed to do while I fumbled my way through getting the map setup

It prob could be shorter but I don't know enough about Linux stuff to know that

sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
docker pull andyleap/hnh-auto-mapper
docker run -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3
vim /lib/systemd/system/docker.hnhmap.service

I for insert

P for Paste

[Unit]
Description=HnH map
After=docker.service
Requires=docker.service

[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker exec %n stop
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull andyleap/hnh-auto-mapper:v-3
ExecStart=/usr/bin/docker run --rm --name %n -v /srv/hnh-map:/map -p 80:8080 andyleap/hnh-auto-mapper:v-3

[Install]
WantedBy=default.target

Escape :wq

service docker.hnhmap enable
service docker.hnhmap start

Close SSH

Navigate to your URL

Login admin/admin
Create new admin dont forget the check boxes
create user accounts check applicaple boxes
Generate Upload tokens

put url/token in client
restart client


hope it helps

Instead of custom service you could perhaps use dockers own autostart functionality as it is easier etc. https://docs.docker.com/engine/reference/run/#restart-policies---restart Basically adding --restart=always argument when you start the container I think.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Auto Mapping Implementation #2

Postby Vassteel » Thu Mar 26, 2020 4:35 pm

eh I find it amusing that you think I know how to do that <3
jorb wrote:Stop shitposting.
User avatar
Vassteel
 
Posts: 701
Joined: Thu Aug 15, 2013 12:38 pm

Re: Auto Mapping Implementation #2

Postby Vendan » Sun Mar 29, 2020 7:07 am

Newest version is v4.4, supports mapping cave layers, multiple disjoint maps, automatic merging of disjoint maps when connections are discovered, and overlaying another layer on the current layer. Currently supported in Amber client.
Vendan
 
Posts: 10
Joined: Sun Jan 02, 2011 8:56 pm

Re: Auto Mapping Implementation #2

Postby Sarge » Thu Apr 02, 2020 12:22 pm

Custom map markers wehn?
factnfiction101 wrote:^I agree with this guy.
User avatar
Sarge
 
Posts: 2029
Joined: Fri Oct 09, 2009 3:41 am

Re: Auto Mapping Implementation #2

Postby Sarge » Sun Apr 05, 2020 8:39 pm

Sarge wrote:Custom map markers wehn?


BUMP

EDIT: Just learnt that custom added map markers from ingame pulls through to this private mapper.

Image
factnfiction101 wrote:^I agree with this guy.
User avatar
Sarge
 
Posts: 2029
Joined: Fri Oct 09, 2009 3:41 am

Re: Auto Mapping Implementation #2

Postby Fevix » Tue Oct 13, 2020 12:45 am

I'm trying to get this running, but having not much luck. I've followed the instructions given previously by Vassteel, but when I try to run the service commands, it tells me "docker.hnhmap: unrecognized service"

EDIT: Alright, I got it all working, even got my map to start uploading, but the problem now is that my friend simply can't. I gave them their own account and everything, set up their tokens, etc etc. They're using the same client I am too.
Fevix
 
Posts: 10
Joined: Mon Jan 19, 2015 5:13 am

Previous

Return to The Wizards' Tower

Who is online

Users browsing this forum: Naylok and 9 guests