View Full Version : Custom Pointers
Paul Pratt
October 1st, 2017, 09:15
Has something changed with custom pointers?
I know the image control is now in the template image_record_step, but has something else changed?
Do we still use in the xml <pointertypes> and <custom> to define?
Does that still allow onBuildCustomPointer?
Using Dulux's toolkit I have defined a custom pointer and am crashing to desktop as soon as I open an image, was working back in 3.0, haven't visited this in a long while. Ideas?
Moon Wizard
October 1st, 2017, 19:49
None of that code has been modified in about a year. I’d have to narrow it down to the specific code causing the issue.
Is this with your current 40k rule set? Steps to recreate?
Thanks,
JPG
Paul Pratt
October 1st, 2017, 23:35
It's not in the current ruleset. It's an extension just for a 30 degree cone. Shotgun sent it to me to try to get it working again for the 40k games. It crashes straight to desktop when opening an image. I changed the .xml since its a template that needs the custom pointer, and checked the code against the Pointer toolkit and it looks fine. I will explore more to see if it is the code or xml. I thought I would make sure the tags were correct as I dug into this more.
Paul Pratt
October 2nd, 2017, 00:03
Removed all references to the custom pointer lua, and still crashed to desktop.
Went back, removed the <pointertypes> tags and children, ran it just simply replacing the template. Ran fine.
Second attempt, left <pointertypes> tag, removed the <custom> tags and its children that define the custom pointer. Crashed to Desktop as soon as an image was opened.
Third attempt, changed <pointertypes> to just <pointers>, left the <custom> tags and children in place, and also ran fine, but of course no custom pointers, just the base four.
<pointertypes> is the correct tag?
Trenloe
October 2nd, 2017, 03:41
As an example, here is the image_record template in the Savage Worlds ruleset:
<template name="image_record">
<image_record_step>
<bounds>21,110,-27,-29</bounds>
<pointertypes>
<arrow>
<icon>pointer</icon>
<label>Draw Arrow</label>
</arrow>
<custom name="sw_cone">
<icon>pointer_cone</icon>
<label>Draw Cone</label>
</custom>
<custom name="sw_sb">
<icon>pointer_circle</icon>
<label>Draw Small Burst</label>
</custom>
<custom name="sw_mb">
<icon>pointer_circle</icon>
<label>Draw Medium Burst</label>
</custom>
<custom name="sw_lb">
<icon>pointer_circle</icon>
<label>Draw Large Burst</label>
</custom>
</pointertypes>
<script file="campaign/scripts/image_record.lua" />
</image_record_step>
</template>
Paul Pratt
October 2nd, 2017, 05:18
Thanks Trenloe, this can be used to compare.
This is what I am using for the template replacement.
<template name="image_record_step">
<imagecontrol name="image">
<indicators availability="image_sent" locked="image_locked" loading="image_loading" zoom="image_zoom" shortcuts="image_shortcuts" />
<pointertypes>
<arrow>
<icon>pointer</icon>
<label>Draw Arrow</label>
</arrow>
<square>
<icon>pointer_square</icon>
<label>Draw Square</label>
</square>
<circle>
<icon>pointer_circle</icon>
<label>Draw Circle</label>
</circle>
<cone>
<icon>pointer_cone</icon>
<label>Draw Cone</label>
</cone>
<custom name="30ConePointer">
<icon>pointer_cone</icon>
<label>Draw 30-Degree Cone</label>
</custom>
</pointertypes>
<default snap="on" drawingsize="500,500" />
<script file="campaign/scripts/image.lua" />
</imagecontrol>
</template>
I just don't see the issue to crash.
Paul Pratt
October 2nd, 2017, 05:38
OK, ran another test. I removed all the standard pointers, leaving just the custom pointer. Extension runs fine. 30 degree cone is the only pointer, that was expected.
I added back the standard pointers one at a time including the custom pointer each time. So, Arrow + custom, Arrow, Square, Custom, etc.. When I added the standard cone as soon as an image was opened, crash to desktop.
Even standard cone + custom cone resulted in crash. Another interesting result was the square could not be drawn. Whether it was all 4 pointers, or simply the square and custom, it would not draw the square. All other pointers were fine.
Final step I have taken was to remove the custom pointer and code. I ran just the standard pointers, no crash, until the cone was added. Additionally, the square would not draw. -- I could draw all the pointers with the shortcutkeys though.
Stumped, tired, and frustrated! bed time. Any ideas let me know. I have what I need for the rule sets, but still must know the why of this.
PS: I would like to have the standard cone too.. that's the part I can't let go of!
Moon Wizard
October 2nd, 2017, 19:20
Can you send me a link to the ruleset and extensions to look at? It sounds like a client-level issue that I'd like to address.
Thanks,
JPG
Paul Pratt
October 2nd, 2017, 20:39
The extension and ruleset linked below.
Moon Wizard
October 2nd, 2017, 22:12
Good times. Thanks for the example. I was able to recreate.
I just included the fixes in v3.3.3 beta. (https://www.fantasygrounds.com/forums/showthread.php?40348-Test-Release-v3-3-3&p=357883&viewfull=1#post357883)
Cheers,
JPG
Paul Pratt
October 2nd, 2017, 22:32
Thanks, or rather my wife thanks you, she had it with me when I asked her to read the file again for the 10th time to spot the typo...lol
I thought I was going insane for while there...
Bidmaron
October 2nd, 2017, 22:35
Happy wife, happy life.
When life's a bitch it is often the wife's a witch.
Naroe
March 14th, 2021, 01:58
Is there any way to increase no if pointers from arrow plus 4 others?
Moon Wizard
March 14th, 2021, 06:21
No, the radial menu only supports that many.
Regards,
JPG
Naroe
March 14th, 2021, 06:32
Ok using pointer extension and was hoping to have, arrow, circle, square, narrow cone, wide cone and a lightning bolt. 4 choices seems very restrictive.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.