A21 Dashboard Map

Yes, no web module "web", but "web.map" (as you did in your sceenshot) should be just fine. This looks like you actually removed the MapRendering mod from your server.
I am actually having similar issues with setting up the web part of the server. I followed what you said so far and just for some reason can't connect to it. I have the settings setup to how I had it similarly before A21 (of course updated but similar information setup) and its just not working 😕

It may be something to deal with the WebDashboardUrl, I have been trying varying thing i use a no-ip address and honestly just don't know what to put as I followed the notated reference and nothing as well

 
Last edited by a moderator:
my server seems to be giving a warning on the permissions file... shows

2023-07-04T22:44:39 1.087 WRN Ignoring unknown section in permissions file: apitokens
2023-07-04T22:44:39 1.087 WRN Ignoring unknown section in permissions file: webmodules
2023-07-04T22:44:39 1.087 WRN Ignoring unknown section in permissions file: webusers


would this be a issue getting web dashboard to work?

 
my server seems to be giving a warning on the permissions file... shows

would this be a issue getting web dashboard to work?
Yes, you have to add your token! add it in F1 it would look like this but the name and password you pick for it.    webtokens add your name your password 0

Make sure it is the same in webpermissions file.

mine looks like this but not my real one lol

webtokens add ZombieVirus This1isMypass 0

 
I am actually having similar issues with setting up the web part of the server. I followed what you said so far and just for some reason can't connect to it. I have the settings setup to how I had it similarly before A21 (of course updated but similar information setup) and its just not working 😕

It may be something to deal with the WebDashboardUrl, I have been trying varying thing i use a no-ip address and honestly just don't know what to put as I followed the notated reference and nothing as well
Well, "it's not working" is not going to get you help. We need more details, i.e. *what* is not working, logs?

my server seems to be giving a warning on the permissions file... shows

would this be a issue getting web dashboard to work?
That would happen if your server does not have the TFP mods available.

 
When it comes to my issues, I have the ports forwarded added the permissions as you showed earlier in this thread. I have it setup to the correct ip address with the :8080 cause, I just cannot connect to the webserver part at all. I type in the no-ip address and it ends up timing out in the browser.

image.png


 
Last edited by a moderator:
If you can't connect to the page at all it's not related to permissions. Logs might give further hints.

 
If you can't connect to the page at all it's not related to permissions. Logs might give further hints.
image.png


It doesn't seem to throw errors when starting it up. I am not trying to come off as knowing anything, but I am having some difficulty after updating to A21...

 


It doesn't seem to throw errors when starting it up. I am not trying to come off as knowing anything, but I am having some difficulty after updating to A21...
Are you behind the firewall, some routers don't like to redirect your external IP adress on the local network, maybe try from a smartphone. There's also the old "Is your firewall set to forward the port" of course. I had issues untill I added the port to the address in the serverconfig file. like ":8080" at the end.  

 
Are you behind the firewall, some routers don't like to redirect your external IP adress on the local network, maybe try from a smartphone. There's also the old "Is your firewall set to forward the port" of course. I had issues untill I added the port to the address in the serverconfig file. like ":8080" at the end.  
Yeah I made sure everything was port forwarded correctly. I currently have friends playing on the server, just don't have access to the webserver portion. It may just be an issue because I am using a no-ip based redirect? I might just swap it in a minute and see lol

Edit: Just updated it to my normal external IP and yeah still unable to connect.
Edit 2: Was able to use 127.0.0.1:8080 and connect to it, just wondering why it is timing out when it is connected externally, could it be a permissions issue?

 
Last edited by a moderator:
serveradmin.xml

<webmodules>
<module name="web.map" permission_level="2000" />
<module name="webapi.Command" permission_level="1000">
<method name="GET" permission_level="inherit" />
<method name="POST" permission_level="inherit" />
<method name="PUT" permission_level="inherit" />
<method name="DELETE" permission_level="inherit" />
</module>
</webmodules>



serverConfig.xml

<property name="WebDashboardEnabled" value="true"/>
<property name="WebDashboardPort" value="8080"/>
<property name="WebDashboardUrl" value="www.mydomain.com:8080"/>
<property name="EnableMapRendering" value="true"/>



These are the exact settings that worked for me. I know the advice was that you didn't need to restart the server to add new perms, but I found that the web map didn't work until I restarted my server. Hard refreshing the browser probably wouldn't hurt either (Ctrl+F5).

 
Last edited by a moderator:
In "Basic" this mod worked now, but i have 3 questions:
1. What is "Login"? dont work at all for me
2. why i cand "scroll" on the "mods" entry?

3. What are "markers? Only some bvlue "?" bulbs...

 
Last edited by a moderator:
> 1. What is "Login"? dont work at all for me
It allows you to log in to the page. The login popup tells you what to do to create a user.

> 2. why i cand "scroll" on the "mods" entry?

Bug in the first release, it's already fixed and the fixed version will be included in 21.2

> 3. What are "markers? Only some bvlue "?" bulbs...

It's just an example mod to show how mods can interact with this new system to add their own stuff. If you don't want it to show up you can disable it by removing permissions (i.e. permissions to e.g. -1), or you can delete the whole mod from the mods folder. 

 
If you have been using Alloc's extensions then you may still have the "webpermissionxs.xml" file around.  This file is no longer used and the permissions have moved into "serveradmin.xml".  I have found that if I add the module entries manually to the serveradmin.xml file in A21.2b14 that I have to restart the server for some of the values to take affect.

I'm using CPM so I had to add the "webapi.viewallclaims" module entry which is an extension when using Prisma's custom map.js file with the CPM mod.

Here is what I ended up setting so there is one more example around.  We allow our players to see the animals, other player land claims (to help with base placement), reset regions, and a few other things.

I set webapi.map to mods and above so that our players would have to use the legacy map so we can render the extra map information from CPM.

Hopefully, this helps you as this thread is a bit all over the place.

Code:
serverconfig.xml
    <property name="WebDashboardEnabled" value="true"/>
    <property name="WebDashboardPort" value="8080"/>
    <property name="WebDashboardUrl" value=""/>
    <property name="EnableMapRendering" value="true"/>



serveradmin.xml
    Note:  level 1 is what my moderators are set at, so mods and admins

  <webmodules>
    <module name="web.map" permission_level="2000" />
    <module name="webapi.GetAnimalsLocation" permission_level="2000" />
    <module name="webapi.GetHostileLocation" permission_level="1" />
    <module name="webapi.GetLandClaims" permission_level="2000" />
    <module name="webapi.GetPlayerInventories" permission_level="1" />
    <module name="webapi.GetPlayerInventory" permission_level="1" />
    <module name="webapi.GetPlayerList" permission_level="2000" />
    <module name="webapi.GetPlayersLocation" permission_level="1" />
    <module name="webapi.GetPlayersOnline" permission_level="1" />
    <module name="webapi.Map" permission_level="1" />
    <module name="webapi.viewallclaims" permission_level="2000" />
  </webmodules>
 
Last edited by a moderator:
I have found that if I add the module entries manually to the serveradmin.xml file in A21.2b14 that I have to restart the server for some of the values to take affect.
Would still be interested in knowing what exactly you changed and didn't seem to apply. Permissions are definitely reloaded live (you'll see that in the log output when it happens), so I assume it must be something very specific I missed.

I'm using CPM so I had to add the "webapi.viewallclaims" module entry which is an extension when using Prisma's custom map.js file with the CPM mod.
Actually that's vanilla. It just defines what permission level is required so that a user can view landclaims of all players, not just his own.

I set webapi.map to mods and above so that our players would have to use the legacy map so we can render the extra map information from CPM.
Note that this API only provides info about the Map to the frontend, it doesn't actually control whether the map images can be accessed. For the vanilla web dashboard that indeed means it would not show the "Map" menu entry as it requires access to this API to know details on what to show, so for *most* practical reasons that is doing what you want. But it might not meet other people's use cases so wanted to make this one clear :)

 
Back
Top