From aa857cf3ed7f595e90bac5c4a1c2909817beb6bf Mon Sep 17 00:00:00 2001 From: Roflicide Date: Wed, 21 Mar 2018 19:59:20 -0400 Subject: [PATCH 1/2] Readme overviewer update #2 Addendum to issue [#181](https://github.com/MinecraftServerControl/mscs/issues/181). Turns out that you actually need to edit in the API key into multiple points in your system where the source of overviewer is installed. Otherwise, the `index.html` for your world will be overwritten without including that API key. (Tested this out myself on my server) --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bad0c940..1ff0a30b 100644 --- a/README.md +++ b/README.md @@ -491,20 +491,32 @@ supported systems, or build your own binary from source if needed. Overviewer currently requires a free Google API key. You can obtain one [here](https://developers.google.com/maps/documentation/javascript/get-api-key). -On the webpage, Select the blue "Get a Key" button. +On the webpage, select the blue "Get a Key" button. You can create a new project or use the already-made "My Project" to obtain the API key--it doesn't matter. Then, edit line 14 of `/opt/mscs/maps//index.html` to replace - + with - + replacing MYKEY with the key you obtained above. - + +You will also need to update other `index.html` source locations of +where Overviewer is installed with your API key. +Run the following command to find those sources (courtsey of [Zeromusta](https://github.com/overviewer/Minecraft-Overviewer/issues/1308#issuecomment-271848826): + + find /usr/ -name "index.html" -print | grep overviewer_core/data/web_assets + +In my case, there was 3 locations, so I updated the 14th line of each `index.html` +to include my API key as described above. + +You will need to repeat these above steps everytime Overviewer is updated (or, until they +add a fix for this). + In the `mscs.defaults` file (one will be created if you haven't created one manually), you'll find various Overviewer mapping settings which you change to your liking. We've listed the map-related settings below: From 5c780d8293becd7e1f508ad4e8ebd4c6e3030d29 Mon Sep 17 00:00:00 2001 From: Roflicide Date: Wed, 21 Mar 2018 20:01:41 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ff0a30b..dda7acb0 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,7 @@ replacing MYKEY with the key you obtained above. You will also need to update other `index.html` source locations of where Overviewer is installed with your API key. -Run the following command to find those sources (courtsey of [Zeromusta](https://github.com/overviewer/Minecraft-Overviewer/issues/1308#issuecomment-271848826): +Run the following command to find those sources (command courtesy of [Zeromusta](https://github.com/overviewer/Minecraft-Overviewer/issues/1308#issuecomment-271848826)): find /usr/ -name "index.html" -print | grep overviewer_core/data/web_assets