Wolph42's 'Drop-in' Bag of MT Tricks v.49
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.47 [MT Tables]
hi thanks for the interest and the kind words.
The entire invisibility (actually nearly the entire BoT) works on basis of the onTokenMove function. That means that most functions are triggered when you move a token. Note that this has to be a manual movement or what you call: drag and drop.
now it IS possible to implement all that stuff inside a macro so that the ranges for invis are calculated when you run that macro, but that is something you will have to program yourself!
as for the movementpad, i havent'seen that thing in ages, didn't know it was still active. its for sure that its not mainteined though.
but out of curiosity why do you use the movement pad?
The entire invisibility (actually nearly the entire BoT) works on basis of the onTokenMove function. That means that most functions are triggered when you move a token. Note that this has to be a manual movement or what you call: drag and drop.
now it IS possible to implement all that stuff inside a macro so that the ranges for invis are calculated when you run that macro, but that is something you will have to program yourself!
as for the movementpad, i havent'seen that thing in ages, didn't know it was still active. its for sure that its not mainteined though.
but out of curiosity why do you use the movement pad?
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
I'm unsure of the version I'm using (and I really looked), so this may or may not be applicable.
After updating to 1.10.x, if Bag of Tricks does not pass this line:
This Maptool version supports automatic vision blocking manipulation, this functionality will be enabled
It could be that onCampaignLoad is using the following line:
To fix it, I went to lib token: lib:OnTokenMove
Under the Util group, I edited onCampaignLoad
And changed that line to:
I did it to account for the fact that the maptool version went from 1.#.# to 1.##.#
After updating to 1.10.x, if Bag of Tricks does not pass this line:
This Maptool version supports automatic vision blocking manipulation, this functionality will be enabled
It could be that onCampaignLoad is using the following line:
Code: Select all
[h:id = strfind(mtVersion, "\\d+\\.(.?)\\.(.*)")]
Under the Util group, I edited onCampaignLoad
And changed that line to:
Code: Select all
[h:id = strfind(mtVersion, "\\d+\\.(\\d+)\\.(.*)")]
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
I haven't tested version10 yet so its possible that something is going wrong there. ill keep an eye out for when this happens.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
ok fixed it in version 49l
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
Cool. I'll need to get that in case mine isn't the most recent.
Off-topic question: We still have the 2-Code Level issue? I've been coding in Mote for the past few years and have just returned to Maptool.
Off-topic question: We still have the 2-Code Level issue? I've been coding in Mote for the past few years and have just returned to Maptool.
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
yes and no. At its core MT still has the 2 level restriction, however I've devised a way around that years ago and am using it for close to a decade now, hence im inclined to say: no not an issue, albeith still most people aren't aware of the methodology...sigh...link in sig. (2 code levels)
is mote still a thing?
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
Thank for the reply
On that note:
Though it IS a nice surprise to return to Maptool and see how much more feature rich it has become.
Ah, well as it happens, I could have phrased it as: "We still have the 2-Code Level issue, or do I continue to use your work-arounds"
On that note:
It has not been developed for years. I had been using it because it performed better in some circumstances. The editor is pretty amazing, for example. And no code-level limitations. All that said, I have been learning coding tricks to employ in it by looking at your code and writing it MOTE style.
Though it IS a nice surprise to return to Maptool and see how much more feature rich it has become.
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
So I noticed that the invisibility stuff wasn't updating when moving multiple tokens, went to check "deferOnMultipleTokensMove" and, sure enough, "bot_checkInvisibility" was nowhere to be found. I wasn't sure what in the code needed to be changed so that "doInvisibility" was properly passed to the function, so I made my own hacky workaround, but this is something you might want to look at fixing for the next version.
Thanks!
Thanks!
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.49
good point I think i simply forgot to update that part, could you share your hack?
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS