PDA

View Full Version : How do I import a LOS .XML file into my campaign?



DragonBetween
December 25th, 2020, 22:29
Dungeon Painter Studio 2 just released, and when you export a file it adds LOS for Fantasy Grounds Unity. It gives a .jpeg file and .xml file. I haven't been able to find a way to import the .xml file for the LOS. Is there a way to do this?

Zacchaeus
December 25th, 2020, 22:41
Interesting question.

You can’t import a file that I am aware of. Normally the xml file will be in the images folder inside a module. So you could try putting the xml file in the same folder as the image, I’d suggest putting the image and the xml file in the images folder inside the campaign folder.

DragonBetween
December 25th, 2020, 22:50
That is what I did first but here is what I did wrong, because of the video I found. I opened a blank map and brought the map image onto that new map and it didn't work. I just opened my assets and double clicked the map image that had the same named .xml file in the campaign image folder and then clicked the import to campaign button and it worked. I had both files in the campaign image file from the start. Thank you, your suggestion lead me to the fix.

Jiminimonka
December 26th, 2020, 11:59
That is what I did first but here is what I did wrong, because of the video I found. I opened a blank map and brought the map image onto that new map and it didn't work. I just opened my assets and double clicked the map image that had the same named .xml file in the campaign image folder and then clicked the import to campaign button and it worked. I had both files in the campaign image file from the start. Thank you, your suggestion lead me to the fix.

Arghh - I used DunGen LOS - and it made a LOS file. I put it in the moduledb folder and the maskedimages folder and neither worked. So then I edited the db.xml file and inserted it there... Now I know for future reference where to put it LOL.

similarly
December 26th, 2020, 13:48
I found a script/exe that will make an LOS xml file for dungeondraft maps, and putting it in the images file worked!

LordEntrails
December 26th, 2020, 16:27
I'm sure it would be greatly appreciate if one of you who have figure it out made a step by step tutorial :)

Jiminimonka
December 26th, 2020, 17:39
I'm sure it would be greatly appreciate if one of you who have figure it out made a step by step tutorial :)

Zacchaeus already did. Put the .xml in the images folder.

Japzer
May 5th, 2021, 14:36
I am not sure what I am doing wrong..

I used dungen site to generate a dungon with a LOS.xml file..

I put the xml file and jpg file of same name into images folder for campaign and FG/images folder. I also tried importing the map via assets and images with the xml file in same folders..

So far LOS is not empty

Zacchaeus
May 5th, 2021, 14:46
There's no guarantee that third party created LoS will work. But as noted above others have discovered that placing the image and the .xml file with the same name in the images folder inside the campaign works. If it isn't working for you then perhaps the .xml foramt isn't correct.

Japzer
May 5th, 2021, 15:16
When you say inside the campaign what do you mean.. I have been putting the images in

C:\Users\<username>\AppData\Roaming\SmiteWorks\Fantasy Grounds\campaigns\<campaignname>\images

Then go to images window and import the file..

is this what you mean?

Regards

Moon Wizard
May 5th, 2021, 16:08
Yes, if you are adding an image with an LoS file to a campaign, you need to place in the campaign images folder; and the LoS XML file must have the exact same name as the image file, but with a .xml file extension instead of the image file extension (Ex: A.png; A.xml)

Then, once you've restarted the campaign, you need to create a new image record with that asset by opening the Assets window Campaign folder, then dragging the asset to the Images campaign list.

Regards,
JPG

Garmorn
May 5th, 2021, 23:50
I had the same problem with Dungeondraft. What I have to do is put the xml file in the campaign folder, the open FGU and import the png (mape) file. It took a while to figure it out.

similarly
May 5th, 2021, 23:59
I had the same problem with Dungeondraft. What I have to do is put the xml file in the campaign folder, the open FGU and import the png (mape) file. It took a while to figure it out.

I also use Dungeondraft. I create a map in dungeondraft, export to VTT format, then use a third-party exe/script to convert the .vtt file to an image file and an xml file. I go to c:/users/[username]/appdata/roaming/smiteworks/fantasy grounds/campaigns/[campaign name]/images and drop the files into the images folder. Open FGU. Go to the assets tab. Click "images" then "campaign". Find the file. Click on it. Click the button to create image record (note, if I want it in a particular group in the images tab, I can open the images tab and leave the group open when I create the image record. This will create an image with LOS ... except that Dungeondraft treats doors and windows as all windows, so if I want LOS to pass, I need to redo the windows inside FGU ... unless there's an easier way I don't know about.

Griogre
May 6th, 2021, 00:04
Other way around - the script to convert .vtt to xml treats all *windows* as *doors* not vice versa.

similarly
May 6th, 2021, 03:19
Yup. Sorry. You're right. Too early in the morning!