PDA

View Full Version : Tokens dragged to map questions



Marimar
September 13th, 2009, 14:30
I'm experiencing a strange thing when I drag tokens from the combattracker onto a map.

All the GM-related tokens (nonplayers) comes out about 5-7 times larger than the player tokens even though the original .png files are the same size (100 pixels).

I even tried copying a token to the portraits folder and use that token as a player portrait, then dragging them both to the map (one from a player reference and the other from my gm-tokens. Note that the original file is the same and therefore the same size.
They still come out different sizes when placed on the map.

Anyone else experiencing this?

//Paul

Sorontar
September 13th, 2009, 14:51
They are using the default tokens created by the portraits when the combat tracker populates which are 32x32 I think. There is a line of code that can change this size I believe which someone more knowledgable will no doubt tell you about.

What I do is have the full size tokens created and drop them onto the combat tracker (or character sheet if the ruleset allows) which replaces the default and does the trick I find. When they are then dragged from the combat tracker they have the correct sizing.

Marimar
September 13th, 2009, 19:10
Oh yeah, that worked :)

That was a funny little bug. Anyway, thanks for the help!

incarn
September 14th, 2009, 03:06
Tokens dragged from the token box or to the map via the combat tracker are sized 'as is'.

Tokens dragged from the portrait use portrait_token.png and portrait_token_mask.png in your ruleset's icon folder as a template.

By default 30x30 (in RMC ruleset anyway).

I resized my template icons to be 50x50 and resized any other tokens I use to be relative to this using Paintshop Pro's batch function.

Marimar
January 25th, 2010, 15:35
I've tried resizing all my tokens in my token directory to 32x32 and that maintains the correct format when I drag them to the map and corresponds with the size of the character portraits when they are dragged to the map.

As I have understood it, the character portraits are resized to 32 pixels by default.
Is there a way to change this to 64 pixels so that I can resize all my monster tokens to 64x64 instead to maintain detail?
Someone said there's a line of code that will do that, but where?

Sorontar
January 25th, 2010, 16:18
Is there a way to change this to 64 pixels so that I can resize all my monster tokens to 64x64 instead to maintain detail?
Someone said there's a line of code that will do that, but where?

I think if you follow Incarn's advice above and change the template png's to 64x64 you should be done. Obviously make sure you back up the files before you poke around.

Marimar
January 26th, 2010, 08:24
Well, I'm using the builtin 3.5e ruleset and I can't really find the portrait_token.png and ..mask.png for that ruleset.

Is it hardcoded into FG?
The only rulesets listed under \rulesets is add and Warhammer which I downloaded from the community.

Where should I look for these files?

Thanks /Marimar

Marimar
January 26th, 2010, 12:47
After some further reading in the forums I realized that perhaps the default 3.5e ruleset I'm using is not in a \ruleset directory, but instead packed into the 3.5E.PAK file in my program folder?

If so, is there a way to unpack this file so I can edit the portrait_token.png within?

Or is there another way to override the default 32x32 portrait template that is applied when I drag the character portraits to the combattracker and then to the map?

//Marimar

tdewitt274
January 26th, 2010, 13:17
PAKs are also ZIP files. Unzip, make any modifications, and then ZIP and rename to PAK.

Marimar
January 26th, 2010, 13:59
Awesome!!!
I'm gonna try that right away :)

Marimar
January 26th, 2010, 14:18
tdewitt274!

You're the man!

It worked perfectly. Now my character portraits scale to 64 pixels when dragged onto the map. That's great :)

Thanks a bunch //Marimar