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 Importer Error Message

I just tried to Import a Map to Roll20. When I copy and paste the content of the .txt file into the chat, I get an error: Failed to import Dungeon Alchemist map data: TypeError: Cannot read properties of undefined (reading 'get') The export was set to Roll20 VTT. I've already restarted the Roll20 Sandbox. The .jpg Map is on the correct Layer. What did I do wrong?
1701285721
The Aaron
Roll20 Production Team
API Scripter
Hmm.  Looking at the code, there are some places where this could happen.  Strange question, but do you have any other pages in the game where you are running this, and have you ever switched to any of them?  There's a minor bug where it relies on the last page you switched to, but if you've never switched to a different page, it won't be set and will get undefined for the page object.
1701289452

Edited 1701292713
Hi, thanks for the quick reply! Since this is my first time using Dungeon Alchemist, I created a blank new Game for testing. In this Testgame, there is only one Page (where I'm trying to import the map data), and there are no other Mods installed. .. After writing this, I created a new Page in my game, and tried to import there. And it just worked? Then I went back to the start page (where it didn't work before), and suddenly it worked there too. So, somehow, adding a new Page to the game fixed this problem. edit: Oh, and now I realised that that was what you asked me, I've completely misread your Question. So yeah, it was the Bug you mentioned.
This is exactly what I came to figure out! I did the same thing started a new game and bam couldn't use DA script anymore. Glad I found this fix! Is it possible to just quickly add in the error that they should try and add a new page, come back to this one and run the import script again? Or does roll20 handle the error message?
1703364255
The Aaron
Roll20 Production Team
API Scripter
I just sent this pull request to fix this issue.&nbsp; It doesn't require a warning, I just set it to default to the player ribbon page if the gm has never changed pages. <a href="https://github.com/Roll20/roll20-api-scripts/compare/master...shdwjk:roll20-api-scripts:DungeonAlchemistLastPageBugfix?expand=1" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/compare/master...shdwjk:roll20-api-scripts:DungeonAlchemistLastPageBugfix?expand=1</a>