- BhoritzTokens.jpg (68.39 KiB) Viewed 1782 times
[BETA FEATURE] Isometric Map & new Token type - Please test
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
I have started adding support for Figures on the Object Layer. Doors seem to work quite well.
The picture below shows a door token on the object layer, that has been assigned a size of "Medium" and then placed upon a Vision Blocking Line. Because the player gets to see at least half the token base, they see all of the door.
The picture below shows a door token on the object layer, that has been assigned a size of "Medium" and then placed upon a Vision Blocking Line. Because the player gets to see at least half the token base, they see all of the door.
Last edited by Jagged on Tue Jun 16, 2015 4:02 am, edited 1 time in total.
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
i dont understand. if i view the picture you added with the vbl lines 'classically' then the entire door is *behind* the drawn vbl line. so how on earth can the player token 'see at least half the door' ?
don't get me wrong, the end result is great! its just that i don't understand your explanation.
don't get me wrong, the end result is great! its just that i don't understand your explanation.
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: [BETA FEATURE] Isometric Map & new Token type - Please t
That's the special behaviour of Figure type tokens. If you can see at least half the base of a Figure token (even if its on the Object layer) the whole token is displayed.wolph42 wrote:i dont understand. if i view the picture you added with the vbl lines 'classically' then the entire door is *behind* the drawn vbl line. so how on earth can the player token 'see at least half the door' ?
don't get me wrong, the end result is great! its just that i don't understand your explanation.
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
If you look at the previous post, the token is large and the door is in the center, so the figure appears on both sides of the vbl.wolph42 wrote:i dont understand. if i view the picture you added with the vbl lines 'classically' then the entire door is *behind* the drawn vbl line. so how on earth can the player token 'see at least half the door' ?
don't get me wrong, the end result is great! its just that i don't understand your explanation.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
Thats not the part that puzzles me. Its the position of door image, the vbl line and the character that puzzles me. If I draw a 'vision line' from the character towards the door image then the first thing I hit before I see ANYTHING is a VBL line, where vision stops. So you don't see half (and thus whole) you see nothingJagged wrote:That's the special behaviour of Figure type tokens. If you can see at least half the base of a Figure token (even if its on the Object layer) the whole token is displayed.
ah ok, I should not look at the door *image* (which is behind the VBL line) but at the door *bounding box* (which is cut in half by the VBL line) right?aliasmask wrote:If you look at the previous post, the token is large and the door is in the center, so the figure appears on both sides of the vbl.
Assuming that's correct, as there're a vbl line running through the bounding box that means that (let's say) 10% of the bounding box will never be visible (as its covered by VBL). If the box is divided perfectly in half that means that on both sides of the VBL at most 45% of the image is visible and would hence not show up as you need to see at least half to see the whole...
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: [BETA FEATURE] Isometric Map & new Token type - Please t
The keyword here is half the "base". The code doesn't consider the actually image (which may have been scaled or offset), it only considers the Tokens footprint. To work as described, the object really needs to be given a size, otherwise its size does become the image boundary rectangle rather than the token footprint.wolph42 wrote:Thats not the part that puzzles me. Its the position of door image, the vbl line and the character that puzzles me. If I draw a 'vision line' from the character towards the door image then the first thing I hit before I see ANYTHING is a VBL line, where vision stops. So you don't see half (and thus whole) you see nothingJagged wrote:That's the special behaviour of Figure type tokens. If you can see at least half the base of a Figure token (even if its on the Object layer) the whole token is displayed.
For academic interest, I re-use the code that decides whether or not you can move into a cell you can only partially see. Plus when I say you need to see "half" the base, that is a gross approximation of what the code does. It actually divides the cell into 9ths, takes the middle, divides that to 9ths again and checks to see if you can see at least 4 of the middle.
I shall try and work on a better explanation
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
Jagged wrote: The keyword here is half the "base". The code doesn't consider the actually image (which may have been scaled or offset), it only considers the Tokens footprint. To work as described, the object really needs to be given a size, otherwise its size does become the image boundary rectangle rather than the token footprint.
For academic interest, I re-use the code that decides whether or not you can move into a cell you can only partially see. Plus when I say you need to see "half" the base, that is a gross approximation of what the code does. It actually divides the cell into 9ths, takes the middle, divides that to 9ths again and checks to see if you can see at least 4 of the middle.
I shall try and work on a better explanation
If you would have read the 2nd part of my post then you would have noticed that I came to the same conclusion (although I called the 'base' 'bounding box', but its the same). Incidentally you've also (more or less) answered the other question I had in follow up of this one. (as part of the bounding box is covered in VBL, when divided exactly in 2 then the two visible parts would ALWAYS be <50%, hence the question).
I get the '9ths' explanation, but in "...and checks to see if you can see at least 4 of the middle" again how do you define "see". In an exact middle slice you can always see 3 fully and 3 partially (<50% as explained earlier) so do you 'see' 3 or 6? (or ~<4.5?)
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: [BETA FEATURE] Isometric Map & new Token type - Please t
I would have to dive into the code to answer that fully, as its not a routine I wrote myself.
I think the function is called something like "checkCenterRegion" and is called when there is Fog and Vision to see if a token can move into a given cell. I seem to recall that after dividing the middle 9th into 9, it does some comparison of closed sections vs open. I can't remember the exact numbers, so 4 may not be right. However I do remember that when checking the inner blocks, its only checks for intersection. So it doesn't need to see the complete block.
IMO its quite a nice little function that does a good job of answering the "approximately half" question, I tip my virtual hat to whoever wrote it.
*hat tip*
I think the function is called something like "checkCenterRegion" and is called when there is Fog and Vision to see if a token can move into a given cell. I seem to recall that after dividing the middle 9th into 9, it does some comparison of closed sections vs open. I can't remember the exact numbers, so 4 may not be right. However I do remember that when checking the inner blocks, its only checks for intersection. So it doesn't need to see the complete block.
IMO its quite a nice little function that does a good job of answering the "approximately half" question, I tip my virtual hat to whoever wrote it.
*hat tip*
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
clear (enough) thanks!
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
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
So...does this logic only apply to Isometric grid maps?
Because I can see it being a nice feature for regular square grid maps as well. Mainly for doors. A lot of times, players question "is that a door?" because it's chopped in half by VBL and only leaves a partial graphic to view.
Being able to see top-down doors "fully" would be a nice addition. Although, the door would never be seen 50% or more from both sides as you are usually drawing a 2px VBL over a 50px object.
This could have interesting affects for cars/doors,trees that have an X over them. I know it's scope creep, but you really have something close to a feature that's been wanted for a while.
Because I can see it being a nice feature for regular square grid maps as well. Mainly for doors. A lot of times, players question "is that a door?" because it's chopped in half by VBL and only leaves a partial graphic to view.
Being able to see top-down doors "fully" would be a nice addition. Although, the door would never be seen 50% or more from both sides as you are usually drawing a 2px VBL over a 50px object.
This could have interesting affects for cars/doors,trees that have an X over them. I know it's scope creep, but you really have something close to a feature that's been wanted for a while.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
The logic applies to Figure tokens whatever type of grid they are on. So it would be interesting to see how that might work on a square rid with a top down graphic (but type set to "Figure").
Mind you, I think the better solution for the type of stuff you put an "X" on, were some of the ideas discussed in the VBL Stamps thread.
[EDIT] I don't really have any suitable top down door tokens, but it does seem to work on square grids as well. Mind you, all the top down door images I have, have large transparent areas so the door can be easily rotated, so they don't work very well.
Mind you, I think the better solution for the type of stuff you put an "X" on, were some of the ideas discussed in the VBL Stamps thread.
[EDIT] I don't really have any suitable top down door tokens, but it does seem to work on square grids as well. Mind you, all the top down door images I have, have large transparent areas so the door can be easily rotated, so they don't work very well.
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
attached are doors designed to be used with the bag of tricks. These you can use to test if you like.Jagged wrote:[EDIT] I don't really have any suitable top down door tokens
- Attachments
-
- Doors.zip
- (101.2 KiB) Downloaded 86 times
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
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
I guess the main reason I bring it up here is, if we were to implement something similar for "top-down" type tokens (or for that matter, any type), that is, "show all the image if x% is seen", are we implementing it the best way and consistently?Jagged wrote:The logic applies to Figure tokens whatever type of grid they are on. So it would be interesting to see how that might work on a square rid with a top down graphic (but type set to "Figure").
Mind you, I think the better solution for the type of stuff you put an "X" on, were some of the ideas discussed in the VBL Stamps thread.
[EDIT] I don't really have any suitable top down door tokens, but it does seem to work on square grids as well. Mind you, all the top down door images I have, have large transparent areas so the door can be easily rotated, so they don't work very well.
SHOULD this logic be tied to "figure" token type, or should it be another flag that can be used for any token type? Should it be restricted/hard coded to 50% seen or should that be any/50%/100%? Or should we add a new layer for these sort of objects? (not a fan of the later, just throwing things at a wall...)
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: [BETA FEATURE] Isometric Map & new Token type - Please t
They are the doors I was usingwolph42 wrote: attached are doors designed to be used with the bag of tricks. These you can use to test if you like.
They don't work that well for this purpose because they are designed with a large transparency area. This is great of rotating te door, but means its highly likely that wherever you position the door, most of the image is going to be hidden and therefore the code to make all of the image appear will never kick in.