RPTools.net

Discussion and Support

Skip to content

It is currently Sun Feb 25, 2018 10:54 pm 






Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4  Next

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: [Drop-In] [aliasmask]Disguise: Save/use multiple tkn images
PostPosted: Fri Jul 09, 2010 4:47 pm 
This is a variation of something I did earlier, but allows more than 3 images to be saved. Only the asset id is saved, so if your asset cache is cleared, then the images won't be there anymore. Also, if you use the token on a different machine, the assets "may" not be there. If those two machines shared a campaign and you used multiple images (which transfers the asset to the other machine) then some or all could be saved on second machine.

Another way to share assets is with using the same repository either via a url or a zipped file on local machine.

Features:
  • Clicking the "Use Disguise" button will add the current token image to your disguise list.
  • Changing your image and clicking the button again will add a new image to list.
  • A list will be shown for all the possible images you have loaded.
  • You have the option to Change or Delete an image from your list.
  • On the lib file, if you click "autoDisguiseButton" a text box will appear with a token property you can add to your Campaign Property token properties to automatically add the "Use Disguise" button to tokens.
    • autoDisguiseButton property is cleared once the macro button has been put on the token. If you delete the button, the button will not reappear.
    • If you want the button to reappear, then impersonate your token and use the following code in your chat
      Code:
      [resetProperty("autoDisguiseButton")]
  • You can drag macro to Campaign macro window for all to use instead of using autoDisguiseButton (recommended).
  • This lib will not resize or change any stats.

I may decide to have a master list of images in the future saved on the lib token which any other can access, but that would be more of a polymorph kind of situation and this is mostly for quickly changing outfits or mimicking change self ability.
Image

Newest Version: Disguise 1.0a (b88 fix)


File comment: MT version 1.3b70
Disguise v1.0.rptok [43.74 KiB]
Downloaded 216 times

_________________
Downloads:
Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Fri Jul 09, 2010 4:51 pm 
[RESERVED]

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Mon Jul 12, 2010 4:57 am 
I just added this to my campaign and the players really like it. If for nothing else, just so your character can have a different token, set of clothes... whatever without the hassle of searching for your alt images.

_________________
Downloads:


Top
 Profile  
 
 Offline
Dragon
 
Joined: Wed Jan 07, 2009 4:36 pm
Posts: 271
Location: Gloucester, England
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Mon Jul 12, 2010 9:38 am 
Awesome AM!
This is something I've been hoping for for a while, it shall be put to good use :D
Then feedback any bugs (though knowing you I doubt I'll find any that aren't user error xD)

Mal

_________________
Mal


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Wed Dec 03, 2008 5:13 pm
Posts: 93
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Mon Jul 26, 2010 11:03 am 
Brilliant work, I love the utility of this. Is there any way to change the drop-down menu into something that doesn't automatically size to the height of the screen? I was planning on using this to create a generic townspeople token and store a few dozen different images on it so I can just modify copies to look like unique NPCs, but I can't seem to see more than six or seven at a time.

EDIT: Maybe there's some sort of option to add a scrollbar to the list of token images? It doesn't even display one when I change the ICONSIZE in the code, but it automatically adds a scrollbar to text lists.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Mon Jul 26, 2010 2:54 pm 
Changing the ICONSIZE to 40 will make the images the same size as the chat icons. I just used the dropdown for convenience but I can display them in an image grid. How many images do you think you'll have? Originally, I would have you add a label when adding an image, but I simplified it more to not include that. Is that something you would want to see as well? I can get really fancy and have a grid with clickable labels to change the image and a mouseover will show the image in a larger size.

_________________
Downloads:


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Wed Dec 03, 2008 5:13 pm
Posts: 93
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Mon Jul 26, 2010 4:08 pm 
aliasmask wrote:
Changing the ICONSIZE to 40 will make the images the same size as the chat icons. I just used the dropdown for convenience but I can display them in an image grid. How many images do you think you'll have? Originally, I would have you add a label when adding an image, but I simplified it more to not include that. Is that something you would want to see as well? I can get really fancy and have a grid with clickable labels to change the image and a mouseover will show the image in a larger size.


Ooh, the fancy option sounds awesome. I'm probably not the typical user for this macro, but I was going to add LOTS of token images. I like to have things as easy to customize in the future as possible so having generic NPC tokens preloaded with all my human token images would save me having to dig through folders for the right ones. I was going to do something similar for other races, goblins, kobolds, lizardfolk, so that social encounters or mass combats can be more colorful. I'll try that ICONSIZE SETTING and see how many more I can squeeze onto a screen in the meantime.


Top
 Profile  
 
 Offline
Cave Troll
 
Joined: Fri Apr 15, 2011 9:25 am
Posts: 60
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Fri May 20, 2011 11:38 pm 
Hey Aliasmask- Im having some issues implemeting Disguise. Do I just drag and drop the .rptok file into maptool from its file location?
This makes a big red 'X' token. lol how do you drive this thang?


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Fri May 20, 2011 11:43 pm 
It's like any other token. Shouldn't have a red X for the token image. Did you drag/drop, cut/paste, or load from token library?

I just loaded it in to a blank campaign, clicked the onCampaignLoad button. Dragged the Use Disguise button to Campaign Window. I then created another token, clicked Use Disguise (that adds the image). I change the token image with a library image and clicked Use Disguise again (that adds a new image). I can then select from either image now with the Use Disguise button.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9485
Location: Netherlands
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Sat May 21, 2011 5:58 am 
I was wondering. Why don't you use table images in stead of the assets? Granted it's slightly more work to embed th pictures but it is more robust. Possibly both options?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Sat May 21, 2011 7:36 am 
wolph42 wrote:
I was wondering. Why don't you use table images in stead of the assets? Granted it's slightly more work to embed th pictures but it is more robust. Possibly both options?

I think it's more robust the way it is. It's more portable with tables. But then again, I wouldn't want other ppl to have access to images that don't belong to them. You couldn't prevent that with a single table shared by all.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9485
Location: Netherlands
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Sat May 21, 2011 10:43 am 
aliasmask wrote:
wolph42 wrote:
I was wondering. Why don't you use table images in stead of the assets? Granted it's slightly more work to embed th pictures but it is more robust. Possibly both options?

I think it's more robust the way it is. It's more portable with tables. But then again, I wouldn't want other ppl to have access to images that don't belong to them. You couldn't prevent that with a single table shared by all.


Good point. But the how do you solve the issue with asset strings that tend to change?

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Tue Aug 02, 2011 9:30 am 
Something I recently came to realize when importing tokens with saved assets to a campaign without those assets. The Player will see the image just fine, but everyone else will see the big red X. This just means you have the asset on your computer, and the others don't. What you can do is drag the image from your library on to the map. The asset will be copied to the other users and your red X is replaced with the proper image. You can now delete the dropped image or have the DM make an image token out of it and move it to an appropriate area. Doing that will assure the image is available to any new users. I'm not sure if the DM asset cache would be transferred, but I'm guessing it's not.

What you could also do is create your own online repository of images, then give that to your DM to add to the campaign repository. You can create one of those by dropping a bunch of images on a map, then using the export feature to create a Campaign Repository File. Then upload that file to the web. I use sugarsync and dropbox to get free online storage (5 and 2 GB respectively). The best part about giving out a repository file link with those sources is that you can later update it and the campaign will be updated automatically without GM intervention (assuming you replace the file with the same named).

Admittedly, I think a repository is a bit of an overkill, but that will assure your images will be seen by all with the least amount of GM manipulation.

_________________
Downloads:


Top
 Profile  
 
User avatar  Offline
Site Admin
 
Joined: Mon Jun 12, 2006 12:20 pm
Posts: 12111
Location: Tampa, FL
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Tue Aug 02, 2011 4:27 pm 
aliasmask wrote:
I'm not sure if the DM asset cache would be transferred, but I'm guessing it's not.

I'm not sure what this is asking. Images from the server are only sent to the client when the client asks for them. If the client never asks, the image is never sent.


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 8015
Location: Bay Area
 Post subject: Re: [aliasmask] Disguise: Save and use multiple images for t
PostPosted: Tue Aug 02, 2011 5:08 pm 
Azhrei wrote:
aliasmask wrote:
I'm not sure if the DM asset cache would be transferred, but I'm guessing it's not.

I'm not sure what this is asking. Images from the server are only sent to the client when the client asks for them. If the client never asks, the image is never sent.

Well, here's the scenario I envision. DM starts a server. Client 1 connects. Client 1 adds a token. Client 1 uses a saved asset value that is stored on Client 1 using Disguise. DM does not have image in his library. Client 1 sees the new token image, DM sees a red X. Client 1 drops the image from his library on to map. DM now gets the asset image transferred to him and his cache. Client 1 deletes unwanted image. Client 2 connects to server.

Does Client 2 see a red X or is the image transferred from the DMs cache?

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman