Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Dungeon Alchemist API - Exporting map file issue

May 21 (1 year ago)

Edited May 21 (1 year ago)
Rob
Pro

I'm having a problem importing maps created in Dungeon Alchemist (DA) to Roll20.  Here are the things I checked:

- I do have an active Roll20 Pro account.
- I have the DA API script added successfully in all my Roll20 games.
- I made sure the Dynamic Lighting is activated for the DA map in question.
- The DA map file size is 5.16 MB.
- When dragging the map to Roll20, I made sure it was on the 'Map layer'.
- I made sure the DA map on the map layer was 'selected'.
- I copy and pasted the script carefully into Roll20 and hit the 'Send' button to execute the script.

The screen reloaded and a chat message comes up stating that the DA map data was successfully imported. Yet, the map area of the Roll20 UI is now blank, and when I check the Page settings for the map, the map size dimensions are now cleared out.

Reference image links:

- Roll20 map setting showing the map size dimensions 'before' the DA script was ran: https://i.imgur.com/wZze6jR.png

- Roll20 map setting showing the map size dimensions 'after' the DA script was ran: https://i.imgur.com/McKo5ph.png


- Not that it would really matter but I tried these exact steps several different times on different browsers (Chrome (my default browser), Brave, Firefox, and Edge)...no change. 

- I've tried importing 3 other maps with different file sizes and file names, and the results are still the same.

- I reloaded the DA API script and tried these exact same steps again to no avail.

- This used to work for me with other DA maps I've created in the past using the exact same exporting map file steps/instructions provided on DA's website, but it doesn't appear to do so anymore...at least for me.

- I've already sent DA a similar message concerning this issue as well about 15 minutes before posting this message here.

- I've done a search for DA on the Roll20 forums but this posting (https://app.roll20.net/forum/post/11538229/slug%7D#newtopic) from 10 months ago closely relates to issues I'm having and it's relatively new compared to the other postings which are years old and most likely outdated information with all the changes going on with Roll20.

I appreciate any helpful insights or constructive inputs you can provide to see if I have overlooked anything else that I can try to resolve this issue.  If not, I will wait for DA's customer support to reply.

Thanks.

- Rob

May 21 (1 year ago)
The Aaron
Roll20 Production Team
API Scripter

Could you post the commands you are copying from the DA website and posting in the chat?

May 21 (1 year ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Is this on a regular game, or a Jumpgate game?

May 22 (1 year ago)
Rob
Pro


keithcurtis said:

Is this on a regular game, or a Jumpgate game?


Regular game.

May 22 (1 year ago)

Edited May 22 (1 year ago)
Rob
Pro


The Aaron said:

Could you post the commands you are copying from the DA website and posting in the chat?


It will not allow me to paste commands/scripts here on this post.  

May 22 (1 year ago)

Edited May 22 (1 year ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm.  When I loaded that up and ran the command, it worked for me.  Do you want to PM me an invite to your game and GM me and I can try and sort out what's happening?


May 22 (1 year ago)
Rob
Pro


The Aaron said:

Hmm.  When I loaded that up and ran the command, it worked for me.  Do you want to PM me an invite to your game and GM me and I can try and sort out what's happening?


Thanks.  I appreciate your help. Just sent you a pm.


May 27 (1 year ago)
The Aaron
Roll20 Production Team
API Scripter

The issue turns out to be that DungeonAlchemist relies on the snapping increment for the page.  However, snapping increment is only set if there is a grid for the page.  Without a grid, it has a value of 0, which causes all the dimensions to be scaled to 0.  I've sent a pull request to fix that oversight: https://github.com/Roll20/roll20-api-scripts/pull/1934

In the meantime, just be sure you have a grid set on the page when you run the script.

May 27 (1 year ago)
Rob
Pro

Will do, sir.

So based on what you stated above, this would be part of "Step 4" from Dungeon Alchemist's site (https://www.dungeonalchemist.com/import-to-roll20) explaining the procedural steps of successfully importing a map to Roll20.

Thanks so much for taking the time to troubleshoot and identifying this issue, Aaron.  I sincerely appreciate it!  You guys rock!