5E Product Walkthrough Playlist
Page 1 of 2 12 Last

Thread: Custom Pointers

  1. #1

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625

    Custom Pointers

    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?
    Last edited by Paul Pratt; October 1st, 2017 at 09:24.

  2. #2
    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

  3. #3

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    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.
    Last edited by Paul Pratt; October 1st, 2017 at 23:59.

  4. #4

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    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?
    Last edited by Paul Pratt; October 2nd, 2017 at 00:08.

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    As an example, here is the image_record template in the Savage Worlds ruleset:

    Code:
    	<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>
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    Thanks Trenloe, this can be used to compare.

    This is what I am using for the template replacement.

    Code:
          <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.
    Last edited by Paul Pratt; October 2nd, 2017 at 05:22.

  7. #7

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    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!
    Last edited by Paul Pratt; October 2nd, 2017 at 06:13.

  8. #8
    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

  9. #9

    Join Date
    Apr 2009
    Location
    Fullerton, CA.
    Posts
    625
    The extension and ruleset linked below.
    Attached Files Attached Files

  10. #10
    Good times. Thanks for the example. I was able to recreate.

    I just included the fixes in v3.3.3 beta.

    Cheers,
    JPG

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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

Log in

Log in