FG Spreadshirt Swag
Page 1 of 2 12 Last
  1. #1

    DungeonDraft LOS

    I tried using a 3rd party utility to pull LOS data to XML files from DungeonDraft VTT files. The files appear to be generated but I can't seem to get FGU to use them. Is this no longer a feature? I notice that FGU natively does not appear to use .xml files for LOS any idea how to make this work, or perhaps we need to wait until it all settles.

    Thanks

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,147
    Blog Entries
    9
    Where did you put the LOS file? What was it named? What is the module name? What about the image name?

    Not sure, I do know their is a LOS utility that was recently updated, Might you need to use it? Just don't know because I've never done this. Here's teh utility; https://fantasygroundsunity.atlassia...ta+for+Modules

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    I made a file called GraveYardLOS.dd2vtt used their extractor and it produced GraveYardLOS.png and GraveYardLOS.xml. I placed them both in a temp folder.

    Then I just imported the .png and I had assumed it would find the XML.

    Then I tried placing them first in the campaign folder but I got an error saying it could not import it as it was already in the campaign.

    It looks from the documentation you provided that it needs to be embedded in a module. Is this always needed? I am just doing this for my home game, not for a external use.

  4. #4
    If the XML is the same name as the PNG (except for the extension), then that is what FGU looks for. They are side-loaded when the image is added to a map.

    If you are not seeing the data, then I would guess that the XML format is not correct.

    Regards,
    JPG

  5. #5
    OK, perhaps that is the case. The utility is 3 months old so perhaps the format changed since it was built.

  6. #6
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,147
    Blog Entries
    9
    I don't think that when you import the image that it imports the xml as well. You need to place the xml file into your campaign, but I'm not exactly sure where.

    I would load a different image, add a few LOS segments to it, exit your campaign and see where the file is. Then place the xml the same path/structure.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  7. #7
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    925
    Blog Entries
    2
    Quote Originally Posted by LordEntrails View Post
    I don't think that when you import the image that it imports the xml as well. You need to place the xml file into your campaign, but I'm not exactly sure where.

    I would load a different image, add a few LOS segments to it, exit your campaign and see where the file is. Then place the xml the same path/structure.
    LOS added to image if saved in the db.xml. As Moonwizard said, if an XML file with the same name as an image exists in the directory with the image, FGU attempts to side-load that data and apply it to the asset when it is added to an image. In the OP's example, the file GraveYardLOS.png and GraveYardLOS.xml would be placed in the campaign's image folder. Dragging the asset from the asset window to the image window will create a new image from the asset and apply the XML data. Following those steps, if the data is not applied the XML is likely formatted wrong.

    @JesterOC - Can you post the XML file generated by DungeonDraft?

  8. #8
    Quote Originally Posted by pindercarl View Post
    LOS added to image if saved in the db.xml.
    Thanks I just now found that out by doing a Find in Files for the word <occluders>! Brute force works I guess.

    I notice the the LOS files that where generated did not have the <closedpolygon> tag.

    When finding the replacement I made in the session db.xml file I noticed that all entrants for occlusions had this

    <closedpolygon>true</closedpolygon>
    Attached Files Attached Files

  9. #9
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    925
    Blog Entries
    2
    Quote Originally Posted by JesterOC View Post
    Thanks I just now found that out by doing a Find in Files for the word <occluders>! Brute force works I guess.

    I notice the the LOS files that where generated did not have the <closedpolygon> tag.

    When finding the replacement I made in the session db.xml file I noticed that all entrants for occlusions had this

    <closedpolygon>true</closedpolygon>
    I put your XML file in my <campaign>/images/ directory along with an image named xGraveYardLOS.jpg and the LOS data imported with the asset.

    The <closedpolygon> tag just indicates that the first an last point of the occluder are implicitly connected.

  10. #10
    So does this actually work? What's the 3rd party tool that extracted the LOS data?

    I'd love to be able to grab my Dungeondraft maps and be able to build LOS data directly from the image! That would be amazing and such a time saver!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in