Any module for Fantasy Grounds should be built first for Fantasy Grounds Classic and then these additional steps will allow the developer to create additional XML files that can be added to support enhanced Line of Sight (LOS) functionality within Fantasy Grounds Unity.
FGC - Fantasy Grounds Classic
FGU - Fantasy Grounds Unity
LOS - Line of Sight
Prepare your FGC Module with LOS Data
Create a new blank campaign in FGU and call it something like MASTER - [My FGC Module]
Open your FGC Module within FGU
Go to Assets > Images and locate the folder for your module
Open your Images & Maps window and have both it and your module’s image assets open at the same time
Drag an Image Asset that needs LOS over to the Campaign Images folder. This will create a new image record in FGU for this image
Unlock the image and set the following:
Set the grid size and adjust the grid if necessary. This is important even for graphics that don’t have line of sight data since it is used to set the object scale.
The image should be centered by default. Do not move the image around.
Make a copy of your module (mymodule.mod) file somewhere and extract it using a Zip tool like 7Zip or Winzip.
Modules you build for personal use can use whatever LOS Style you want. Any module that is officially sold in the Fantasy Grounds Store or on Steam must follow the LOS Style Guide in order to be accepted by SmiteWorks for distribution.
Extract the XML for your LOS Data
XML files are now extracted directly out of FGU. The XML files generated from here will not work with earlier versions of FGU. They will render everything as solid walls and you won’t have usable doors, windows, terrain, etc.
These exported files can be zipped up for a module and attached to the forum thread below. Please include the module product ID and let us know whether or not you add lights and LOS.