User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Extension Error due to Expression problems

  1. #1
    No Products Registered

    Join Date
    Nov 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Extension Error due to Expression problems

    Hi!

    I am trying to develop an extension by using the default template included with the SDK.

    My extension works fine for upto 7 Expressions defined. However, any Expression added beyond the first seven makes the MMF2 program to hang when I try to 'retrieve' the expression from the event editor.

    However,I have over 14 Actions, but all of them work fine.

    Is there any problem with my extension development or am I missing something?

    I have tried two to three times starting from scratch, but all the time I am getting into this problem.


  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    Have you set up the max expressions constant in main.h correctly?

  3. #3
    No Products Registered

    Join Date
    Nov 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    I can't find any constant called 'max expressions' in main.h
    What is the exact name of the constant?

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    in the main.h, do not forget to index all your expressions and actions and set the LAST like that :
    Code:
    #define EXP_MYFIRSTEXPRESSION 0
    #define EXP_MYEXPRESSION2     1
    #define EXP_MYEXPRESSION3     2
    #define EXP_MYEXPRESSION4     3
    #define LAST 4
    The syntax may be wrong, I have not SDK where I am.

  5. #5
    Firecodemonkey

    Join Date
    Aug 2006
    Location
    London, UK
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    EXP_LAST (as well as ACT_LAST and CND_LAST). Make sure you have entered the expression correctly in expressionInfos[] too, if you make a slight mistake there you will have a problem.

  6. #6
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    If EXP_LAST was not the problem; have you tried to delete all files in the release/debug folder?

  7. #7
    No Products Registered

    Join Date
    Nov 2006
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    EXP_LAST is fine. I always make sure that the numbering is proper
    I don't think there is any problem with the functions/expressions because only when I add the 8th expression the problem occurs. I also tried switching two expressions (the 8th one with a 6th one or so), still the same problem occurs- event editor gets stuck as soon as I try to access an expression.

    I don't know if I had deleted the files in release or debug folder, but when the extension is built in vs2005, i believe it automatically clears the previous contents and/or re-writes them.
    Will it make any difference if I delete the files in release/debug folder?

  8. #8
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    Well it then stopped crashing for me

  9. #9
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    Did you put elements in the right order like that :
    Code:
    IDMN_ACT_BROWSEFOLDER,		M_ACT_BROWSEFOLDER,			ACT_BROWSEFOLDER,		0, 2, PARAM_EXPSTRING, PARAM_EXPRESSION, P_FOLDER, P_BROWSELOOPID,
    param types then param names ?

  10. #10
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Extension Error due to Expression problems

    Yes, but even if its wrong, it wont make mmf2 to crash? or may i've wrong!?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Error in expression editor
    By CEO_MyChange in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th August 2011, 03:44 PM
  2. problems with expression editor
    By Attus in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th December 2008, 12:17 PM
  3. Error with mmf1-game: extension load error in mmf2
    By Quinto in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th November 2006, 11:54 AM
  4. DataGrid object expression error
    By waffles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 2nd September 2006, 11:02 AM
  5. BUG! Expression reporting bogus syntax error!!!
    By Michael_Gummelt in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 30th July 2006, 05:06 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
  •