You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
20:41:53.233 DEBUG net.rptools.maptool.client.MapToolLineParser - net.rptools.parser.ParserException: createMap: "lib://net.dovesoft.trinity-continuum/images/StoryGuideScreen.png" is not a valid asset ID or URL
20:41:53.233 ERROR net.rptools.maptool.client.swing.MapToolEventQueue - java.util.concurrent.CompletionException: net.rptools.parser.ParserException: createMap: "lib://net.dovesoft.trinity-continuum/images/LobbyBackground.png" is not a valid asset ID or URL
java.util.concurrent.CompletionException: net.rptools.parser.ParserException: createMap: "lib://net.dovesoft.trinity-continuum/images/LobbyBackground.png" is not a valid asset ID or URL
at net.rptools.maptool.model.library.addon.AddOnLibrary.lambda$callMTSFunction$15(AddOnLibrary.java:653) ~[MapTool.jar:1.14.3]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [?:?]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:?]
The image url is known to work, as I have tested it with [h:broadcast("<img src='" + lobbyImage + "'></img>")], which showed the image nicely in the chat window.
To Reproduce
Create an add-on
Add an image in the public folder and an onInit.mts file to the mtscript folder.
Describe the Bug
It is not possible to use the new
createMap
function with an image from an add-on.When I attempt to use the function with e.g. these parameters:
I get the following exception:
The image url is known to work, as I have tested it with
[h:broadcast("<img src='" + lobbyImage + "'></img>")]
, which showed the image nicely in the chat window.To Reproduce
Where the lobbyImage variable points to the correct image with the correct namespace.
4. Import the add-on
5. Observe the exception.
Expected Behaviour
I expect the lib:// URI to be treated exactly as an asset:// URI. Even more so, as the ´createMap` function is so newly added.
Screenshots
No response
MapTool Info
1.14.3
Desktop
Windows 11
Additional Context
No response
The text was updated successfully, but these errors were encountered: