PDA

View Full Version : Is there a way to enable fractional distance measurement?



meathome
February 28th, 2014, 11:02
Battles for the game I am trying to implement (IKRPG) use measurements like a tabletop game and no squares. My idea was to simply set a grid to establish how big 1 inch should be and then disable snap to grid. The problem is that the distance measurements are only from grid to grid and that isn't what I would need (since base size etc. do also matter). Exact measurements would work nicely. Also can I make the grid invisible, while still present for measurement?
Is there a way to preset options in the options menu and maybe predefine a standard grid size?

Trenloe
February 28th, 2014, 11:31
These would all require creating a custom ruleset extension to be written.

Except hiding an active grid - that is all built in so you can't change that.

I know the GURPS community produced ruleset has point-to-point measuring in it - see the library for a copy of the ruleset: https://www.fantasygrounds.com/library/

Also, the original enhanced images extension had a measuring feature: https://www.fantasygrounds.com/forums/showthread.php?14916-4E-Enhanced-Images I didn't migrate this code when I updated the enhanced images extension for FG 3.0 - trying to reduce the work load... ;)

meathome
February 28th, 2014, 13:30
I am already half done with the custom ruleset. So that is not a problem. The question was more about how to implement these changes. So I am off to look at the gurps ruleset and the enhanced images extension.
EDIT: Ok What the gurps extension does is not what I meant. There is already a kind of measuring tool in FG simply by pressing both mouse buttons. This draws an arrow pointer quickly and is perfect for this.
The problem is that the distance returned is counted only in whole squares and on top of that if you start on the far right side of one square and measure to the left part of the next square beside it it returns 1 because the arrow points from one square to an adjacent one, while the actual distance is less than 0.5. I hope I managed to explain what my problem is.
I have no idea where the scripts for this distance measurement are (I am searching right now).

Zeus
February 28th, 2014, 13:36
Do I search in the GURPS forum (I think) for a tape measure extension that provides in basis what I believe your describing. I can't for the life of me remember who in the community developed it.

meathome
February 28th, 2014, 14:27
It was actually easier to implement it than finding it... Looks like I am a bit blind, It was right there in the ruleset reference for the imagecontrol: The onMeasurePointer function. Pixellength is a parameter so it works now! Sorry for posting at all. Should have read the library more thoroughly.