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
When executed, the output will typically be one line per Lib: token with an empty set of brackets as the value. (Sometimes it may work. See below.)
Expected Behaviour
Each Lib: token that contains macros or properties should produce a non-empty list of those values.
Here is example output from a campaign with multiple Lib: tokens showing how the output should look. Note that the first Lib: token, Coords, has no macros and no properties.
In many cases, executing the above macro will produce output that looks like this:
| Anonymous User: Coords []
GlobalsSRDPF []
CannedSpeech_v1 []
cifTemplates []
disguise []
chat []
players []
### MapTool Info
_No response_
### Desktop
_No response_
### Additional Context
It appears that `listLibraryContents()` from `src/main/java/net/rptools/maptool/client/functions/LibraryFunctions.java` is creating a `CompletableFuture` but not waiting for it to finish, so the JSON object is returned and (potentially) used before being populated with data.
The text was updated successfully, but these errors were encountered:
Describe the Bug
Calling
library.getContents()
can often return an empty JSON array when there are multiple properties and macros on the Lib: token.(See this Discord post.)
To Reproduce
Expected Behaviour
Each Lib: token that contains macros or properties should produce a non-empty list of those values.
Here is example output from a campaign with multiple Lib: tokens showing how the output should look. Note that the first Lib: token, Coords, has no macros and no properties.
Screenshots
In many cases, executing the above macro will produce output that looks like this:
| Anonymous User: Coords []
GlobalsSRDPF []
CannedSpeech_v1 []
cifTemplates []
disguise []
chat []
players []
The text was updated successfully, but these errors were encountered: