PDA

View Full Version : Documentation for XML format for LOS maps



ultrakorne
April 17th, 2020, 14:01
Hi, I am not sure if this has been posted somewhere but what is the format of the xml file that load the los for a map?

i see something like this, what other keywords are supported? where do i find the documentation?


<root>
<occluders>
<occluder>
<id>0</id>
<points>-258.5,-594.4,147.5,-592.4,553.4,-590.4</points>
<terrain>false</terrain>
</occluder>
...

LordEntrails
April 17th, 2020, 23:29
Welcome to the forums. This has not been documented yet. And given that FGU is in beta it is possible it might change (hopefully not though).

You'll have to just created a map with LOS and reverse engineer it at this point in time.

There are only a few type of things, occluders, terrain, doors and secret doors so you are probably already most of the way there. Only thing is that doors can be locked so that might be included in the xml.

7eptimus
May 26th, 2020, 10:08
If anybody has further info on this I'd be interested too.

I'm supporting Dungeon Scrawl, a new mapping tool in the style of Dyson Logos and planning to request an FGU LOS option, in addition to the folks clamoring for Roll20 LOS.

The online map generator dungen.app is able to create LOS info for FGU, so it seems possible to reverse engineer.
Would be a lot easier though if there was some documentation to point developers towards.

Dungeon Scrawl info:
https://www.reddit.com/r/DnD/comments/gj20eq/oc_im_developing_a_tool_to_sketch_maps_what/fqhxrd8

Zacchaeus
May 26th, 2020, 10:19
Normal Door
<occluder>
<id>1</id>
<points>-141.9,244.1,-103.7,244.1,-103.7,254.2,-141.9,254.2</points>
<door>true</door>
<close>true</close>
<closedpolygon>true</closedpolygon>
</occluder>

Secret Door


<occluder>
<id>23</id>
<points>-1212.3,-436.6,-1179.7,-470.8,-1172.7,-463.7,-1205.7,-430.7,-1212.3,-436.6</points>
<secret>true</secret>
<closedpolygon>true</closedpolygon>
</occluder>

Wall


<occluder>
<id>28</id>
<points>1900,1050.2,1857.2,1010.2,1855.9,936.7,1846.9,936. 7</points>
</occluder>

Terrain


<occluder>
<id>33</id>
<points>702.2,674.1,706.4,661.2,717.3,653.2,730.9,653.2,74 1.8,661.2,746,674.1,741.8,687,730.9,694.9,717.3,69 4.9,706.4,687,702.2,674.1</points>
<terrain>true</terrain>
<close>true</close>
<closedpolygon>true</closedpolygon>
</occluder>

mshall
June 14th, 2020, 19:35
Normal Door
<occluder>
<id>1</id>
<points>-141.9,244.1,-103.7,244.1,-103.7,254.2,-141.9,254.2</points>
<door>true</door>
<close>true</close>
<closedpolygon>true</closedpolygon>
</occluder>

Secret Door


<occluder>
<id>23</id>
<points>-1212.3,-436.6,-1179.7,-470.8,-1172.7,-463.7,-1205.7,-430.7,-1212.3,-436.6</points>
<secret>true</secret>
<closedpolygon>true</closedpolygon>
</occluder>

Wall


<occluder>
<id>28</id>
<points>1900,1050.2,1857.2,1010.2,1855.9,936.7,1846.9,936. 7</points>
</occluder>

Terrain


<occluder>
<id>33</id>
<points>702.2,674.1,706.4,661.2,717.3,653.2,730.9,653.2,74 1.8,661.2,746,674.1,741.8,687,730.9,694.9,717.3,69 4.9,706.4,687,702.2,674.1</points>
<terrain>true</terrain>
<close>true</close>
<closedpolygon>true</closedpolygon>
</occluder>

What is the coordinate system these points are based on? There are some positive and negative numbers, so is the origin in the center of the image? Other?
Thank you.

celestian
June 14th, 2020, 20:01
Is there not a see thru invisible wall ?

Zacchaeus
June 14th, 2020, 22:30
Is there not a see thru invisible wall ?

Not yet live; it's still in development.

Zacchaeus
June 14th, 2020, 22:31
What is the coordinate system these points are based on? There are some positive and negative numbers, so is the origin in the center of the image? Other?
Thank you.

I believe it's the centre of the map but I can't be sure of that.

Imagix
June 15th, 2020, 04:40
Somehow the origin as the center of a map instead of a corner seems to be an odd choice. I wonder why that would be the desirable choice?

LordEntrails
June 15th, 2020, 04:50
Because a map in FGU can be composed of an infinite number of images, and they can grow in any direction. And since things are going to be placed by coordinates, it would be horrible bad to have to recalculate the coordinates of all images and pins/links every time a new asset is added to a negative coordinate position on the map.

In other words, FGU is going to have things with positive and negative coordinates, might as well start in the center.

Imagix
June 15th, 2020, 04:55
Yep, that's fair.