User Tag List

Results 1 to 4 of 4

Thread: [Windows] Extension expression problem

  1. #1
    Clicker Fusion 2.5 Developer
    Timon's Avatar
    Join Date
    Nov 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Windows] Extension expression problem

    I have some rSDK from https://github.com/clickteam-plugin/...sions/Template

    Why when i put expression with one parameter in expression with two params it crashes?
    HTML Code:
    EXPRESSION(
    	/* ID */			0,
    	/* Name */			("Sum("),
    	/* Flags */			0,
    	/* Params */		(2,EXPPARAM_NUMBER,"First number",EXPPARAM_NUMBER,"Second number")
    ) {
    	int p1=ExParam(TYPE_INT);
    	int p2=ExParam(TYPE_INT);
    	
    	return p1+p2;
    }
    
    ...
    
    EXPRESSION(
    	/* ID */			4,
    	/* Name */			("TempNumReturn("),
    	/* Flags */			0,
    	/* Params */		(0)
    ) {
    	return 0;
    }
    So when in "String object" i put expression in expression:
    HTML Code:
    Str$( Sum( "Template", TempNumReturn( "Template" ), 0 )  )
    and it crashes.

    When it would be other expressions with one parameter and the syntax like this:
    HTML Code:
    Str$( CheckIfBiggerThanZero( "Template", TempNumReturn( "Template" ) )  )
    It does not

    Is this some critical bug that LB just miss?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I didn't make rSDK and I don't maintain it. This is a well known issue with rSDK that was fixed ages ago, I guess the fix didn't make it into the GitHub repo. I'll see if I can find the patch, it's in these forums somewhere.
    Working as fast as I can on Fusion 3

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 Developer
    Timon's Avatar
    Join Date
    Nov 2011
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks LB, nice that it's fixed. Hope that others will benefit from it

Similar Threads

  1. Dialog Box Extension: If button clicked expression does not work
    By 2xD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th December 2012, 06:49 AM
  2. Expression problem for random text
    By Drekko in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 17th November 2011, 04:51 PM
  3. MMF - Abs Expression problem
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th September 2008, 02:06 PM
  4. Extension Error due to Expression problems
    By sss in forum Extension Development
    Replies: 12
    Last Post: 21st May 2007, 03:58 PM

Posting Permissions

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