Register

Roger's Additional Metric Ruler Labels

An Add-on Module for Foundry Virtual Tabletop

Author: Roger Project: Source Foundry Versions 0.8.5 to 14 (Verified 14) Last Updated 1 month, 1 week ago

Roger's Additional Metric Ruler Labels

For everyone that uses the metric system in the real world and wants to know the metric distances without changing the underlying game system. Or do you want to add your own custom measurement conversions? Or maybe travel times?

GM:

A 20 feet wide gorge lies ahead of your party. What do you do?

You are asking yourself:

20 feet ... is this wide? Should I try jumping across it?


This module will help you to better understand distances.
It adds additional labels for the metric measurements to your ruler. It is not changing any systems etc. It only applies an additional label to the UI.

 

V14 - Compatability

The latest version is compatible with V14. If you find problems with future subversions of V14, then please let me know.

NEW --- NEW --- NEW

You can now add your Customizable Measurement Conversions and Travel times if you want :) Have fun! Compatability with V14 and localized numbers, that use a comma as decimal separator!!! Flickering of V13 ruler labels should be gone now :)

Table of Contents

The following units are supported with the built-in conversion

  • ft, ft. and feet will get converted to meters (5 ft -> 1,5 m)
  • mi, mi., and miles will be converted to kilometers (1 mile -> 1,61 km)

Example feet to meters

Module-Ruler-Drag-Feet-Meter-ezgif com-video-to-gif-converter

Example miles to kilometers

Module-Ruler-Miles-kilometer-ezgif com-video-to-gif-converter

Works with FoundryVTT's MeasureTemplates

Module-Ruler-Templates-Feet-Meter-ezgif com-video-to-gif-converter

Customizable Conversions

You can also add your own custom conversion with custom labels, etc. Just go to the settings and add all the information for your own conversion. The module has the concept of a small and a big measurement unit. For example, feet and miles. Or meters and kilometers. That way you can support normal maps, as well as bigger travelmaps. Fill in the original labels so that the module can find the measurements that it should convert with your custom factor. That way you will receive your own custom measurement with a label of your choice.

Your players then can decide if they want to see the built-in metric conversion for feet and miles or your custom one, or just BOTH :). If you want to get rid of the original foundry measurements, then there is an option too. I hope this helps all the people that have some different szenarios than imperial to metric.

Module-Custom-Conversions

Foundry + Built-In + Custom Conversions

Module-Ruler-All-ezgif com-video-to-gif-converter

Built-In + Custom Conversions

Module-Ruler-WithoutFoundry-ezgif com-video-to-gif-converter

Only Built-In Conversions

Module-Ruler-OnlyBuiltIn-ezgif com-video-to-gif-converter

Only Custom Conversions

Module-Ruler-OnlyCustom-ezgif com-video-to-gif-converter

Travel times

You can now add travel times to the ruler. Just go to the settings and add all the information for your own conversion. You will need to define the label that the module should look for (e.g. miles) and then the distances for that measuring unit that your group would travel at a slow, normal and fast travel speed. You can also define if you want to display the travel times in days, hours or whatever you want.

To save some space, you can also toggle on the option to only show the total travel time on the last segment of a ruler, instead of both the total and the travel time to this segment from the previous one.

Module-Travel-Time-Settings

Module-Ruler-Travel-Times-ezgif com-video-to-gif-converter

Rounding Modes

You can configure rounding behavior in the module settings for converted distances and travel times. Optionally, you can also apply the rounding mode to Foundry's original distance labels.

The following rounding modes are available:

Rounding Mode Description Examples
No additional rounding Keeps the calculated conversion without extra step rounding. 1.23 → 1.23
Tenths (round up) Rounds up to the nearest multiple of 0.1. 1.21 → 1.3
1.20 → 1.2
0.04 → 0.1
Quarters (round up) Rounds up to the nearest multiple of 0.25. 1.05 → 1.25
1.25 → 1.25
1.26 → 1.50
1.60 → 1.75
Halves (round up) Rounds up to the nearest multiple of 0.5. 1.01 → 1.5
1.50 → 1.5
1.51 → 2.0
Full (round up) Rounds up to the nearest whole integer (1.0). 1.01 → 2
1.80 → 2
2.00 → 2
One decimal (standard rounding) Standard mathematical rounding to one decimal place. 1.24 → 1.2
1.25 → 1.3
1.26 → 1.3

Related Settings

  • Rounding mode for distances: Controls how converted metric / custom distances are rounded (default: No additional rounding).
  • Rounding mode for travel times: Controls how travel times for slow, normal, and fast speeds are rounded (default: Quarters (round up)).
  • Apply rounding to Foundry label: When enabled, applies the selected distance rounding mode directly to Foundry's original distance label on the ruler.

Support for other packages

Hover Distance

This module supports the HoverDistance module from TheRipper93. You can enable/disable the labels in the settings.

Module-Hover-Distance-ezgif com-video-to-gif-converter

Installation

To install, follow these instructions:

  1. Inside Foundry, select the "Add-on Modules" tab in the Configuration and Setup menu.
  2. Click the Install Module button and enter the following URL: https://github.com/roger92/metric-ruler-labels/releases/latest/download/module.json or search for Metric Ruler Labels in the search.
  3. Click Install and wait for installation to complete.

Compatibility

Works with V9 to V14 Please note that Release 1.1.0 and above are not compatible with foundry versions below V9 :)(They might work with earlier versions than V9, but it's not officially supported)

1.1.0 - 4.1.7 (V9 - V13)

4.2.0 - 4.2.2 (V13)

5.0.0 - current (V13 + V14)

Dependencies

Also thanks to ruipin for the libWrapper and TheRipper93 for the Hover Distance module :)

Planned

Feel free to recommend enhancements.

Feedback

If you find a bug or have any feedback for me just add an issue in the issuetracker. Thx alot and i hope this module helps you in your game :)

Changelog

v5.1.0

  • Added support for TheRipper93's Hover Distance Module
  • Removed Drag-Ruler settings, as measurements on drags are now part of base foundry
  • Updated some labels in the settings.

v5.0.1

  • Removed debug messages, fixed incompatibility check and fixed libwrapper dependency check

v5.0.0

  • V14 compatible

v4.2.2

  • Russian localization (fixed treiling comma)

v4.2.1

  • Russian localization (thanks to @nPocToI4eJI)

v4.2.0

  • Rounding options can be chosen in the settings
  • This and newer versions are only compatible with V13 upwards

v4.1.7

  • The V13 ruler labels are now handled better and don't cause flickering or wrong styling anymore

v4.1.6

  • Fixed a bug where a label could be doubled

v4.1.5

  • Fixed a bug where travel times were not displayed correctly when they were the only label
  • Fixed a bug where spacing was off when foundry labels were hidden
  • Fixed styling of delta labels when you have multiple ruler segments

v4.1.4

  • French Localization (thanks to @rectulo)
  • Added selection for rounding mode for travel times

v4.1.3

  • Changed handling for V13 CSS
  • Improved the handling when multiple rulers are visible. Now every ruler is handled separately, when it comes to CSS updates.

v4.1.2

  • Fixed a small whoopsie :D

v4.1.1

  • V13 Ruler Labels now also work on hosted FoundryVTT instances like "The Forge"
  • Fixed a bug with travel time in combination with localized numbers, that use a comma as decimal separator

v4.1.0

  • Support for localized distances. The module now also works if you use a foundry localization that uses the comma as decimal separator

v4.0.3

  • Fixed CSS access errors that caused the libwrapper hook registration to fail

v4.0.2

  • Fixed module.json

v4.0.1

  • Fixed module.json

v4.0.0

  • Support for V13 :)
  • There might be some not 100% smooth UI things with the new ruler labels of V13, but i will try to minimize weird behavior in subsequent minor releases

v3.3.1

  • Cleanup of manifest.json to remove a warning because of deprecated/unknown field

v3.3.0

  • Changed the way the labels are converted, so that it should work with more different variations out of the box.

v3.2.2

  • Setting for Drag Ruler support is now a dropdown

v3.2.1

  • Compatibility for PF2e Token Drag Ruler (and build in Drag Ruler of the pathfinder system)
  • Italian Language Support (Thx to GregoryWarn)
  • Fixed warning for unsupported manifest field

v3.2.0

  • V12 Compatibility

v3.1.9

  • Just removed some console logs :)

v3.1.8

  • Fix for Measurement Templates on V11

v3.1.7

  • Fix for incompatibility dialog

v3.1.6

  • Compatibility with V11

v3.1.5

  • Fix for elevation ruler. Now displays metric conversions on drag ruler if elevation ruler is active.

v3.1.2

  • Fixed bugs with disappearing labels, when dragruler is active and foundryLabels are disabled

v3.1.1

  • Added option to only show the total travel time on the last ruler segment

v3.1.0

  • Travel time label customizable
  • Fixed bug where travel time did not display on ruler segments
  • Fixed bug where settings for conversions where available to players

v3.0.2

  • New Travel time ruler option
  • Bugfix for gridless maps

v2.1.3

  • Small Bugfix

v2.1.2

  • DragRuler (By Stäbchenfisch) V10 Support
  • Support for moving of Measurement Templates
  • Smaller Bugfixes

v2.1.0

  • V10 Support

v2.0.1

  • Fixed German localization bug

v2.0.0

  • Added Support for custom conversions

v1.1.0

  • Added support for V9
  • Fixed MeasureTemplates support that didn't work anymore in V9

v1.0.0

  • Added support for FoundryVTT's MeasureTemplates

v0.9.1

  • Added support for the DragRuler module by Stäbchenfisch ( you can activate/deactivate metric labels for this module in the settings)
  • All segments of the ruler now have metric labels
  • Added german localization
  • Added a dialog if dependency is missing
  • Removed libRuler as a dependency (yay ... less dependencies are always better \(°0°)/ )

v0.9.0

  • First release with the conversions for miles and feet for the ruler tool.

Categories

Available Versions

  1. Version 5.1.0

    1 month, 1 week ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL Read Notes
  2. Version 5.0.1

    4 months, 4 weeks ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL Read Notes
  3. Version 5.0.0

    6 months, 1 week ago
    Foundry Version 13 - 14 (Verified 14) Manifest URL Read Notes
  4. Version 4.2.2

    11 months ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  5. Version 4.2.1

    11 months, 4 weeks ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  6. Version 4.2.0

    1 year ago
    Foundry Version 13 - 13 (Verified 13) Manifest URL Read Notes
  7. Version 4.1.7

    1 year ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  8. Version 4.1.6

    1 year ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  9. Version 4.1.5

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  10. Version 4.1.3

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  11. Version 4.1.2

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  12. Version 4.1.1

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  13. Version 4.1.0

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  14. Version 4.0.3

    1 year, 1 month ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  15. Version 4.0.2

    1 year, 2 months ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  16. Version 4.0.1

    1 year, 2 months ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  17. Version 4.0.0

    1 year, 2 months ago
    Foundry Version 9 - 13 (Verified 13) Manifest URL Read Notes
  18. Version 3.3.1

    1 year, 10 months ago
    Foundry Version 9 - 12 (Verified 12) Manifest URL Read Notes
  19. Version 3.3.0

    1 year, 10 months ago
    Foundry Version 9 - 12 (Verified 12) Manifest URL Read Notes
  20. Version 3.2.2

    2 years, 1 month ago
    Foundry Version 9 - 12 (Verified 12) Manifest URL Read Notes
  21. Version 3.2.1

    2 years, 1 month ago
    Foundry Version 9 - 12 (Verified 12) Manifest URL Read Notes
  22. Version 3.2.0

    2 years, 3 months ago
    Foundry Version 9 - 12 (Verified 12) Manifest URL Read Notes
  23. Version 3.1.9

    2 years, 10 months ago
    Foundry Version 9 - 11 (Verified 11) Manifest URL Read Notes
  24. Version 3.1.8

    Foundry Version 9 - 11 (Verified 11) Manifest URL Read Notes
  25. Version 3.1.7

    Foundry Version 9 - 11 (Verified 11) Manifest URL Read Notes
  26. Version 3.1.6

    Foundry Version 9 - 11 (Verified 11) Manifest URL Read Notes
  27. Version 3.1.5

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  28. Version 3.1.4

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  29. Version 3.1.3

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  30. Version 3.1.2

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  31. Version 3.1.1

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  32. Version 3.1.0

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  33. Version 3.0.2

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  34. Version 3.0.1

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  35. Version 3.0.0

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  36. Version 2.1.3

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  37. Version 2.1.2

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  38. Version 2.1.1

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  39. Version 2.1.0

    Foundry Version 9 - 10 (Verified 10) Manifest URL Read Notes
  40. Version 2.0.1

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  41. Version 2.0.0

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  42. Version 1.1.0

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  43. Version 1.0.0

    Foundry Version 0.8.5 - 10 (Verified 0.8.9) Manifest URL Read Notes