User Tag List

Results 1 to 4 of 4

Thread: [Edif] PRoblem with action parameter

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Posts
    1,125
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    [Edif] PRoblem with action parameter

    Hi, I have a problem with Edif SDK, I want to compare 2 RunObject* like this:
    Code:
    bool Extension::IsSame(RunObject* Object)
    {
        for (unsigned int i = 0; i < this->vector.size(); i++)    {
            if(this->vector[i] == Object)
                return true;
        }
        return false;
    }
    But it always return FALSE.

    I have an Action like this
    Code:
    void Extension::RemoveObj(RunObject* Object)
    {
        for (unsigned int i = 0; i < this->vector.size(); i++)    {
            if(this->vector[i] == Object)
            {
                this->vector.erase(this->vector.begin() + i);
                return;
            }
        }
    }
    And this function works fine. Are there a problem with the condition parameter ?

  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)
    Can you show the relevant parts of the JSON too?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Posts
    1,125
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yes:
    Code:
    "Conditions":	[
    		{	"Title": "Is not empty",
    			"Triggered": false
    		},
    		{	"Title": "Is object %0 in the array",
    			"Parameters":
    			[
    				["Object", "Object"]
    			],
    			"Triggered": false
    		}
    	],

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Posts
    1,125
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I added a MessageBox in my condition to show the fixedValue of the RunObject* parameter and I don't have the same than my object in Fusion !

Similar Threads

  1. Problem incrementing values for action events
    By MaynardStaly in forum Fusion 2.5
    Replies: 0
    Last Post: 27th September 2014, 12:57 AM
  2. build problem with edif SDK "unable to start program "
    By shuzhuoqq in forum Extension Development
    Replies: 6
    Last Post: 17th April 2014, 12:21 PM
  3. Problem with setting/changing name action
    By Lord_Wezel in forum Lacewing
    Replies: 5
    Last Post: 13th October 2011, 01:23 PM
  4. Problem with an Action (SDK)
    By Ben in forum Extension Development
    Replies: 2
    Last Post: 20th August 2007, 05:24 PM
  5. Lua Object parameter problem
    By Mathias in forum Extension Development
    Replies: 1
    Last Post: 25th June 2007, 10:26 AM

Posting Permissions

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