1. #1
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597

    Extension: Height label

    Hi

    Madman and I have put together an extension for a height label, the original code comes from Ken L and therefore this extension runs under the GPL I have tested it in CoreRPG, 5e, 3.5e and PF1 but it should also work for any ruleset based on CoreRPG, it overwrites the TokenManager file. Please report any issue, I sadly didn't have so much time for it and have put this together very fast (I have to write some paper for my work at the moment and can not really work so much on extensions at the moment). Thus, issues may be there, but I hope not No guarantee for compatibility with other extensions When anyone else want to change the extension, then please do so

    What does this extension do? First of all, scrolling the mouse wheel now only changes the zoom level on a map, it does not change the orientation of a token anymore (nice for avoiding changing the orientation accidentally). Instead (in the following "Wheel" means scrolling the mouse wheel):
    1. CTRL + Wheel: Change the orientation
    2. ALT + Wheel: Change size
    3. SHIFT + Wheel: Add a height label to the token (negative numbers are allowed, too, scroll up and down for increase and decrease, respectively)

    See the picture about how it looks like: screenshot0015.png

    BUT: This does not affect the range label of the targeting arrow. The arrow still measures the horizontal distance. This is simply due to time and ruleset issues (too many different rules for that, do such calculations then manually as usual )
    Since this was a quickly made extension, you may have to edit the extension a bit for changing the measure. Now the mouse wheel has an increment of 5 ft.. When you want to use meters and/or just steps of 1 units then do the following, it should be easy (otherwise ask for help ):
    1. Rename the type of the extension to .zip
    2. Unzip it
    3. Open \scripts\manager_height.lua with a text editor.
    4. At the very beginning of the code you see this:
      Code:
      -- KEL: Change your values of measures here, maybe think about a space at the beginning of measure:
      Incrementsize = 5;
      measure = " ft";
    5. Change the two variables there as you want. Incrementsize is the size of the steps made by the mouse wheel (so natively the height label is now a multiple of 5), the measure is simply the label of the unit (beware the space in front of for nice aesthetics )
    6. Zip it back from within first instance of the folder (where the extension.xml lies in)
    7. Rename the type back to .ext

    I hope that this is easy enough When the font is too small you can do it similarly, except:
    1. Open \graphics\graphics_fonts.xml
    2. At the bottom you should easily see something like
      Code:
      size="12"
      , change this number for different sizes

    Have fun As I said, feel free to edit that for your campaign

    Kel

    EDIT: I added now also two other versions, with font size 24 (medium) and 48 (large) when you do not want to that on your own

    (but alle are listed as "Height" in the extension list, so do not put all there at the same time to avoid confusion)

    Also: As with effect icons the scale of your map etc. affects that label, too (especially the size of the grid). When that happens and it becomes too big or small, then rightclick on a token and release the scale. Then by scrolling in and out and by changing the size of the token you can change the relative scale (First change the size of the token until the relative measure fits, then zoom in and out until the token covers the correct area of squares; then lock the token scale again) So the standard procedure you have to do as with effect icons

    When I ever have time for it, I add options as for the effect icons
    Attached Files Attached Files
    Last edited by Kelrugem; September 19th, 2019 at 23:16.

  2. #2
    Nice job!

  3. #3
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597
    I reuploaded it There was one little thing missing about customizing the measure (on your end nothing changes, only some little issue in the background with the label. Replacing " ft" with e.g " m" resulted only into a good result when one didn't change the height. Now it should work again)
    Last edited by Kelrugem; September 17th, 2019 at 20:32.

  4. #4
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597
    I added now also two other versions, with font size 24 (medium) and 48 (large) when you do not want to that on your own

    (but alle are listed as "Height" in the extension list, so do not put all there at the same time to avoid confusion)

    Also: As with effect icons the scale of your map etc. affects that label, too (especially the size of the grid). When that happens and it becomes too big, then rightclick on a token and release the scale. Then by scrolling in and out and by changing the size of the token you can change the relative scale (First change the size of the token until the relative measure fits, then zoom in and out until the token covers the correct area of squares; then lock the token scale again) So the standard procedure you have to do as with effect icons

    When I ever have time for it, I add that to the options similar as for the effect icons, too
    Last edited by Kelrugem; September 17th, 2019 at 21:17.

  5. #5
    Very nice work. Thank you.

  6. #6
    Dang that is impressive!

  7. #7
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597
    thanks for the words But as said the code comes mainly from Ken, the extension is just a tweaked version of that code to allow using it for more rulesets

  8. #8
    And You.. still did a great job.
    "Over thinking, over analyzing separates the body from the mind."...MJK...

    Dropbox Link To Maps Folder




  9. #9
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597
    Quote Originally Posted by madman View Post
    And You.. still did a great job.
    Thanks

    I shortly reuploaded the height.ext (the one with the smallest size). It was accidentally the one with 1 meter steps A minor thing because you can edit it, but I guess it is more convenient when the standard one has 5 ft. steps (thanks to mattekure who made me aware of that )

  10. #10
    Kelrugem's Avatar
    Join Date
    Sep 2018
    Location
    Geneva, Switzerland, and Lyon, France
    Posts
    597
    ah, and also: If there is any request about that you want that height label to be somewhere else then please tell me It was a bit difficult to determine where to put this thing: At the bottom are effect icons, on the right and left border the height label might go into the neighbour square (or it overlaps the health bar or too much of the token itself) and at the top is the name label where the height label now sits, too; I preferred this position because I show names by tooltips and then the name is at the mouse pointer when I move over the token. But when you prefer different positions then please tell me

    EDIT: And PCs can be easily reckognized by their tokens normally while NPCs by their number most of the time; so, also when you may not see the name completely anymore, you should hopefully still be able to differ between all the characters and monsters
    Last edited by Kelrugem; September 21st, 2019 at 02:47.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in