Ignore:
Timestamp:
Oct 28, 2015, 7:51:20 PM (9 years ago)
Author:
peter.souza
Message:

Enemies (zombies and hostile animal entities) are now shown on the map as Hostiles and require permission level 'webapi.gethostilelocation' for web viewers to see.

Animals (non-hostile entities) are now shown on the map as Animals and require permission level 'webapi.getanimalslocation' for web viewers to see.

Permission level for 'webapi.viewallclaims' is now required for a viewer to see all claims, otherwise the permission level for 'webapi.getlandclaims' will only show viewer-owned claims. A viewer requires both 'webapi.getlandclaims' and 'webapi.viewallclaims' to be set for all claims to show (you can't just set 'webapi.viewallclaims').
https://7daystodie.com/forums/showthread.php?12837-Improvements-for-the-dedicated-server&p=317405&viewfull=1#post317405

Permission level for 'webapi.viewallplayers' is now required for a viewer to see all players, otherwise the permission level for 'webapi.getplayerslocation' will only show the player for the currently-authenticated viewer. A viewer requires both 'webapi.getplayerslocation' and 'webapi.viewallplayers' to be set for all players to show (you can't just set 'webapi.viewallplayers').
https://7daystodie.com/forums/showthread.php?12837-Improvements-for-the-dedicated-server&p=317405&viewfull=1#post317405

Banned players are now hidden from the web map.
https://7daystodie.com/forums/showthread.php?12837-Improvements-for-the-dedicated-server&p=320702&viewfull=1#post320702

Items using 'CustomIcon' and 'CustomIconTint' are now supported (although the exact tinting may not be perfectly the same as the game).
https://7daystodie.com/forums/showthread.php?12837-Improvements-for-the-dedicated-server&p=317117&viewfull=1#post317117
https://7daystodie.com/forums/showthread.php?12837-Improvements-for-the-dedicated-server&p=317679&viewfull=1#post317679

Map marker icons for players, hostiles, and animals have been updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/WebConnection.cs

    r250 r251  
    11using System;
    22using System.Collections.Generic;
    3 
     3using AllocsFixes.NetConnections.Servers.Web;
    44using UnityEngine;
    55
     
    2929                        get { return DateTime.Now - lastAction; }
    3030                }
     31
     32        public bool CanViewAllPlayers (int _permissionLevel) {
     33            bool val = false;
     34
     35            try {
     36                const int defaultPermissionLevel = 0;
     37
     38                val = _permissionLevel <= defaultPermissionLevel;
     39
     40                foreach (WebPermissions.WebModulePermission wap in WebPermissions.Instance.GetModules ())
     41                    if (wap.module.Trim ().ToLower () == "webapi.viewallplayers")
     42                        val = _permissionLevel <= wap.permissionLevel;
     43            }
     44            catch { }
     45
     46            return val;
     47        }
     48
     49        public bool CanViewAllClaims (int _permissionLevel) {
     50            bool val = false;
     51
     52            try {
     53                const int defaultPermissionLevel = 0;
     54
     55                val = _permissionLevel <= defaultPermissionLevel;
     56
     57                foreach (WebPermissions.WebModulePermission wap in WebPermissions.Instance.GetModules ())
     58                    if (wap.module.Trim ().ToLower () == "webapi.viewallclaims")
     59                        val = _permissionLevel <= wap.permissionLevel;
     60            }
     61            catch { }
     62
     63            return val;
     64        }
    3165
    3266                public WebConnection (string _sessionId, string _endpoint, ulong _steamId) {
Note: See TracChangeset for help on using the changeset viewer.