-
July 22nd, 2021, 21:32 #81
- Join Date
- Mar 2016
- Location
- Bergen
- Posts
- 322
-
August 20th, 2021, 13:39 #82
Flatfooted button on desktop is cut-off/obscured.
Bounds of ATT_FF in desktop_classes.xml should be 180,36,40,20 so that it matches the others
-
August 27th, 2021, 20:18 #83
- Join Date
- Mar 2016
- Location
- Bergen
- Posts
- 322
Bug report, compatability issue with this extension and "token height"
Fantasy grounds unity, latest live version. Extensions loaded:
EXTENSION: Token Height Indication v4.9 by GKEnialb
EXTENSION: Combat Modifier Calculation: Automatically calculate modifiers for flanking, range, and shooting into melee
When I try to attack with a ranged weapon targeting a token I get this error message:
Error message:
Handler error: [string "campaign/scripts/image.lua"]:147: attempt to index local 'targetToken' (a nil value)
I added a bunch of debug.chat commands in the "combat modifier calculation" to see when the error happens. The error happens when the extension calls this function (in the "manager_action_attack_custom.lue" file):
local adjTokens = srcImage.getTokensWithinDistance({x=tgtCoord.x, y=(tgtCoord.y * -1)}, 5);
To be specific since we have talked about this before:
1:
Open PC sheet
PC is in combat tracker and on map
enemy is in combat tracker and on map
drag ranged attack from PC sheet and drop it on the enemy token on the map (this mean I attack him with a ranged weapon)
Error message
2:
Do the same as 1 but attack with a melee weapon
Everything works fine
3:
Check that enemy token and PC token is in combat tracker and on map
In combat tracker, open the attack tab for the enemy
from the combat tracker find a ranged attack from the enemy and attack
Error message
Error does NOT happen when I only have this extension loaded, only when I have this and token height (and maybe others)
The error does NOT happen when I have "token height" and a bunch of other extensions loaded and not this one.
I have added a post here in the token height extension also.
https://www.fantasygrounds.com/forum...l=1#post617635Last edited by Svandal; August 27th, 2021 at 21:05.
-
August 27th, 2021, 20:31 #84
Last edited by bmos; August 29th, 2021 at 00:39.
-
August 28th, 2021, 23:09 #85
Just used this for the first time in-game and it is SO cool.
I love the shooting into melee automation.
EDIT: one suggestion: the feat Point-Blank Shot has a hyphen in it, but your search does not.
I think it should look for either version.
EDIT2: It would be very cool if you had a GitHub or GitLab repo for this extension. It would let others contribute their labor to help improve it without relying so much on your time.Last edited by bmos; August 29th, 2021 at 12:21.
-
August 31st, 2021, 03:06 #86
-
August 31st, 2021, 11:41 #87
Ah, then probably this: https://www.fantasygrounds.com/forum...ion-miss-match
-
October 10th, 2021, 10:11 #88
- Join Date
- Oct 2019
- Location
- Hong Kong
- Posts
- 310
::correction::
if I turn off Token Height, I can get this extension to work as intendedLast edited by Zygmunt Molotch; October 11th, 2021 at 16:30.
-
October 11th, 2021, 06:55 #89
- Join Date
- Oct 2019
- Location
- Hong Kong
- Posts
- 310
-
October 13th, 2021, 05:17 #90
- Join Date
- Nov 2020
- Location
- Seattle, USA
- Posts
- 184
Sorry I haven't looked at this in too long. I'm getting back from life in general and starting to work on it again.
@Bmos, I took your suggestion and created a GitHub repository for this at https://github.com/Dogfisc/combat-modifier-calc
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks