Map facility to allow builders to add "Fog of War" (FOW) to their maps or make maps unavailable altogether without using placeable objects. Builders can also make slight code adjustments to add their own maps instead of using the exisiting map.
A replacement minimap.xml is available for those who want the original size mini-map. Simply replace the current minimap.xml file in the hak with this one.
UPDATE v1.02: Removed and tidied some of the debug code and feedback. Added a few checks for invalid areas. Corrected a few typos in the PDF manual.
Earlier v1.01c: Fixes a bug when used in "Passive" mapping mode. NB: This fix also requires a line of code to be added to the Area OnExit. (v1.01c: PDF Updated.) NB: Both the areamap.xml & minimap.xml files *were changed* inside the hak with this version compared to the original separate versions, so be sure to use the new hak instead of the old version.
BUILDER INFORMATION
=================
1) The update rate is currently set at 0.5 seconds, which is fast enough for most areas of medium to large in size. If, however, you intend to use FoW on even very small areas, then you will need to decrease the time between updates so there is no lag in the FoW being updated. Builders may want to experiment with this value to determine the best results to performance. Personally, I do NOT recommend using FoW maps on such small areas and advise using the "No FoW Waypoint" that disables it for an area in such cases.
2) Strict Interior/Exterior observing: The code also makes adjustments depending on whether the area is an exterior or interior and checks this with the GetIsAreaInterior function. If you have set this differently to the tiles expected, then results will be out.
3) If the FOWMAPINCOMBAT variable is left in its default state of 0, then mapping must be restarted by opening the map after combat. This includes "Passive Mode" mapping. To avoid this for Passive Mode, be sure to set FOWMAPINCOMBAT to 1, but recognise that this may affect performance if a combat is CPU intensive.
Attachment | Size |
---|---|
![]() | 4.89 MB |
![]() | 1.51 KB |
Realy nice a nice thing to have.
Have a question is it possebel to to make it save somhow where you been or not cross server resets.
Great work! This should add a new layer of challenge to the game. No more strange places being revealed on map before I've even explored them :)