OLD Wolph42's 'Drop-in' Bag of MT Tricks OLD

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

ok I've came up with a doable and (hopefully) useful solution based on your earlier described issue. i've added a 'help' button under the menu-->setup-->utils section of the BoT menu (book with a ? on top of it). This shows a short reference overview of the descriptor options from which you can also copy paste to speed things up.

What is required is that you re-download the zip and import the "Table.Bag of Tricks Table.mttable" table as it contains an additional pic (the book with the ?) and the BoT.rptok file (lib:ontokenmove) with the new code and menu. Version 40d (IRC).

edit: @FB: missed a part of your last post creating a new one currently.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

I've done some extra bug checks in the same version, so if you downloaded anything, do so again. i've e.g. also updated the NILDIK example token in the zip (so it shows title and info link use).
That's not what the titlelink tag is supposed to produce.
then you misinterpreted his intentions. The titlelink creates the title of the link on which you can click to open the screen with the additional info.

I can have a look to see if it can ALSO change the title of the new form (no promises). I'll post once more when I've done that

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

ok the title now sticks to the new frame, allowing to have multiple frames open. I didn't change the version number so download the bot.rptok (only change for this one) to update.

@FB: I've read your suggestion for input() or form{} a couple of times... the input screen is doable save the 'sort' section that sounds like a hellish pain to make in MT. I also think that the customizability will be highly compromised with it. For example I can imagine that a gm has 5 descriptions ready to share and depending on the player actions will share these and wants to have a couple of links and/or images to share with it as well. Doing this in an input field, it could have e.g. 10 text/image/infolinks sections which you can fill up and then it creates the gm text. Then as you point out, you should create something to sort these fields (which I'm not going to make due to the staggering amount of work that would require to create something that would be crappy to use in the end...) which the user can only use after he has submitted all the fields...then he wants to update a couple of things...it would be really messy.

In other words: not worth the effort to create. The new nildik help macro pop-up though should make things simpler as you have everything at hand.

taustinoc
Dragon
Posts: 515
Joined: Mon Aug 03, 2015 6:30 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by taustinoc »

wolph42 wrote:
taustinoc wrote:I've had good luck with Google Drive so far. (Except when saving from MapTool. If I try to save while it's doing a sync, it locks the file and I have to quit Drive to get it unlocked. Other than that, though, it seems to work pretty well.)
What I'm aiming at is stable public links that don't go obsolete all of a sudden to files that are 'locally' stored (or in other words: automatically synced with the cloud).
Is that something that google drive supports/
Yes. You have to install the desktop app (I'm assuming Windows here - I don't actually know if there's a Mac version), which gives you a folder that will sync automatically (I believe the current version also supports syncing other folders, too, as more of a backup system). You right click on the file you want to share, and there's a context menu link to share through Google Drive. You can share with specific people (by email address) or "Get shareable link".

I would test it first to make sure it's doing what you need, but once it's set up, it should be stable.

(I believe the free account include 15 GB of storage. I could be wrong, but it's more than most free cloud services. 100 GB is $2/month.)


taustinoc
Dragon
Posts: 515
Joined: Mon Aug 03, 2015 6:30 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by taustinoc »

I will give you one head's up: There's a weirdness between Drive and MapTool and Windows that causes me issues occasionally when I save large campaign files. If I try to save again while Drive is syncing, Drive will have the .cmpgn file locked. When that happens, I have to exit Drive completely to unlock it.

So if you're dealing with large .cmpgn files, it's safest to put Drive on Pause (there will be a white triangle icon in the system tray where you can do this) while you're working on stuff, then unpause it when you're done. (I *think* you have to unpause it manually when you're done, or it will remain on pause even on a reboot. Alternately, you can exit out of the desktop Drive entire and it will restart when you reboot, or you can restart it manually. It should be somewhere on your start menu.)

I really only get this with really big (for me, anyway) campaign files, like over 50 meg.

BTW, you can also share entire folders as well as individual files. Just right-click on the folder instead of a file.


taustinoc
Dragon
Posts: 515
Joined: Mon Aug 03, 2015 6:30 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by taustinoc »

I'd be very cautious about trying to sync the same folder to two different cloud services (if that's what you're thinking). I know that Drive does some hard core file locking. I suspect most of the other cloud backups do as well (they'd pretty much have to, to work right). If they both try to sync at the same time (and Drive syncs every couple of minutes), you could end up with a mess, or something could crash. (Sometimes, when I'm doing silly things, like forgetting to turn syncing back on, then updating the same file on a different computer) I end up with multiple copies of the same thing, and it's hard to figure out which is more recent.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by Full Bleed »

wolph42 wrote:ok the title now sticks to the new frame, allowing to have multiple frames open. I didn't change the version number so download the bot.rptok (only change for this one) to update.
Excellent! Thanks. :)

It would be nice if the same method was applied to send titles of the images and text links to the chat window, too. That way it would be easier for players to go back and look for a specific room's description or image instead of having to click though a bunch of generic "Click to view image/description" links. ;)

Oh, and out of curiosity, do you know what fonts MT has available to use (like in the shareText macro)? Is it any that are on a person's computer or some java supported subset?
@FB: I've read your suggestion for input() or form{} a couple of times... the input screen is doable save the 'sort' section that sounds like a hellish pain to make in MT. I also think that the customizability will be highly compromised with it. For example I can imagine that a gm has 5 descriptions ready to share and depending on the player actions will share these and wants to have a couple of links and/or images to share with it as well. Doing this in an input field, it could have e.g. 10 text/image/infolinks sections which you can fill up and then it creates the gm text. Then as you point out, you should create something to sort these fields (which I'm not going to make due to the staggering amount of work that would require to create something that would be crappy to use in the end...) which the user can only use after he has submitted all the fields...then he wants to update a couple of things...it would be really messy.

In other words: not worth the effort to create. The new nildik help macro pop-up though should make things simpler as you have everything at hand.
I think I'll make a quick room input since most rooms from modules follow a pretty predictable pattern: Public Description followed by GM Notes. I think I know how I'd do sorting that wouldn't make it too bad, but it's really not worth filling in sort fields when I'd use them so rarely. Any extra image, text share, or gm info display could just go into a "Room Appendix" at the bottom where the order would be less important.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by Full Bleed »

Full Bleed wrote:It would be nice if the same method was applied to send titles of the images and text links to the chat window, too. That way it would be easier for players to go back and look for a specific room's description or image instead of having to click though a bunch of generic "Click to view image/description" links. ;)
Actually, the more I toy with this, the more I think displaying images, text, and info box titles might need to be an option. I could see some situations where a GM might want to obscure the actual title or limit the number of windows on their screen (i.e always have shared room descriptions go into a single box.) So I think that it should probably look for a flag on the titles. Maybe if it has a "-h" at the end, it could hide the title name and use a generic name. I do this when naming maps that I want to hide from my player's map selection options.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

Full Bleed wrote:It would be nice if the same method was applied to send titles of the images and text links to the chat window, too. That way it would be easier for players to go back and look for a specific room's description or image instead of having to click though a bunch of generic "Click to view image/description" links. ;)
we're still talking about Nildiks room descriptor right? (just to be sure)

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by Full Bleed »

wolph42 wrote:
Full Bleed wrote:It would be nice if the same method was applied to send titles of the images and text links to the chat window, too. That way it would be easier for players to go back and look for a specific room's description or image instead of having to click though a bunch of generic "Click to view image/description" links. ;)
we're still talking about Nildiks room descriptor right? (just to be sure)
Yes. When you "share text" it always posts "Click to view description" in chat. When you "share image" it sends "Click to view image" to chat. It would be much better if you could provide "target tags" for the descriptions and images to be sent to the chat.

"Click to view description" could be "Click to view Main Entrance."

"Click to view image" could be "Click to view Engraving on Wall."

Otherwise you end up with all these links in chat that look the same and make it harder for players to go back and find things.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

clear!, I'll have a look.

edit: (after having a look) and how do you envision the appearance of 'main entrance' in 'share text: main entrance' ? As in where does the title 'main entrance' come from?

Should ALL tags be preceded with a <titleLink> tag? Or should each have its own title tag e.g. <titleLink>, <titleText> and <titleImage> or a completely different method?

Keep in mind that the initial set titleLink defined the variable 'title' which is used from thereon. It only changes when the tag is used again.
E.g. having three infoLinks tags preceeded by only one titleLink tag, will give all three the infoLinks the same title!!

edit: ah wait, I think I know a way to reset the titleLink after each tag. This means that if you wnat to set the title for e.g. <image> you can again use <titleLink> and given that this is all early stage I'm gonna change 'titlelink' into 'title' its shorter and more generic.

I'll post when I'm done.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by wolph42 »

ok i've updated it with the title options (note that <titlelink> no longer works, it now is <title> and it works in front of ALL the special links.

you only need to replace rptok. version number hasn't changed. give me some feedback and then i'll finalize it.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.43 [EMBARKATION]

Post by Full Bleed »

wolph42 wrote:ok i've updated it with the title options (note that <titlelink> no longer works, it now is <title> and it works in front of ALL the special links.

you only need to replace rptok. version number hasn't changed. give me some feedback and then i'll finalize it.
Nice. I like it.

I made a couple changes to the showDescription macro so that it shows the title tag value in the GM links when you're using a title tag:

Code: Select all

[textBox	= replace(textBox,"<share>", "[h:share='")]
[textBox	= replace(textBox,"</share>", "']<table border=1 width=100% bgcolor=silver><tr><td border=0>[r: share]<br>[h: linkText = if(title == '', 'Share text', 'Share text: '+title)][r: macrolink(linkText, 'sendMacroChat@lib:OnTokenMove' , 'all',json.append('',title, share))]</table>[h: title='']")]
	
[textBox	= replace(textBox,"<image>", "[h: image=")]
[textBox	= replace(textBox,"</image>", "]<img src=[r:image]-100></img><br>[h: linkText = if(title == '', 'Share image', 'Share image: '+title)][r: macrolink(linkText, 'sendMacroChat@lib:OnTokenMove' , 'all' , json.append('',title,image,"+height+"))][h: title='']")] 
Thanks for the updates!
Last edited by Full Bleed on Fri Feb 16, 2018 5:47 am, edited 1 time in total.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Locked

Return to “Drop-In Macro Resources”