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.

Location:
binary-improvements/7dtd-server-fixes/src
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/PersistentData/InvItem.cs

    r250 r251  
    1111                public int quality;
    1212                public InvItem[] parts;
     13        public string icon = "";
     14        public string iconcolor = "";
    1315
    1416                public InvItem (string itemName, int count, int quality = -1)
  • binary-improvements/7dtd-server-fixes/src/PersistentData/Inventory.cs

    r250 r251  
    7272                                        item = new InvItem (name, _count);
    7373                                }
     74
     75                // Figure out the icon's name
     76                string icon_name = "";
     77
     78                ItemClass item_class = ItemClass.list [_itemValue.type];
     79
     80                if (!PetesUtils.ValidText (icon_name)) {
     81                    try {
     82                        icon_name = item_class.GetIconName ();
     83                    }
     84                    catch { }
     85                }
     86
     87                if (!PetesUtils.ValidText (icon_name)) {
     88                    try {
     89                        icon_name = item_class.MeshFile;
     90                    }
     91                    catch { }
     92                }
     93
     94                if (!PetesUtils.ValidText (icon_name)) {
     95                    try {
     96                        icon_name = item_class.DropMeshFile;
     97                    }
     98                    catch { }
     99                }
     100
     101                if (!PetesUtils.ValidText (icon_name))
     102                    icon_name = item_class.GetItemName ();
     103
     104                if (icon_name.Contains ("\\"))
     105                    icon_name = icon_name.Substring (icon_name.LastIndexOf ("\"") + 1);
     106
     107                item.icon = icon_name;
     108
     109                try {
     110                    item.iconcolor = item_class.CustomIconTint.ToHexStringRGB ();
     111                }
     112                catch {
     113                    item.iconcolor = "FFFFFF";
     114                }
     115                   
    74116                                return item;
    75117                        } else {
     
    77119                        }
    78120                }
    79 
    80 
    81121        }
    82122}
    83 
  • binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs

    r233 r251  
    66namespace AllocsFixes.PersistentData
    77{
    8         [Serializable]
     8    [Serializable]
    99        public class Players
    1010        {
Note: See TracChangeset for help on using the changeset viewer.