maptool
maptool copied to clipboard
[Bug]: User defined functions in the functions.json file are not being defined for add-ons.
Describe the Bug
The functions.json file for add-ons contains a list of the functions that should be defined as user defined functions, but it has stopped working.
To Reproduce
Load the example campaign provided in https://github.com/cwisniew/test-maptool-add-on-lib None functions defined in the functions.json are defined until running the Setup macro (this is old and was just for testing).
Expected Behaviour
Load the example campaign provided in https://github.com/cwisniew/test-maptool-add-on-lib The functions defined in the functions.json should be defined.
Screenshots
No response
MapTool Info
MapTool 1.12.Alpha (possibly 1.11 too)
Desktop
All
Additional Context
No response
I started on this, but while doing it I came to the conclusion that user defined macros are way too messy in MT. Since the bug with defineMacro()
was fixed for add-ons the urgency for this is now less, so I am going to put it on hold until I can come up with a better, saner way of doing this.