User Tag List

Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 51

Thread: Bug R244: OR causes inconsistent selection

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bug R244: OR causes inconsistent selection

    When using OR, objects do not get selected in a consistent way.

    + mouse over Object A
    OR
    + mouse over Object B
    => destroy Object A
    => destroy Object B

    would lead to this:
    If you point at Object A, only Object A gets destroyed.
    If you point at Object B, both objects get destroyed.

    With more than one OR (like a OR b OR c) always the object from the last condition is not included with the rest. See example file in the attachment.

    EDIT:
    What you would expect instead is that either all objects from all conditions are selected or only the conditions from the OR part that was fired make the selection.
    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    Ah. If you make more "interesting" constructions with OR, you can uncover even more wacky behavior. Try the one from this attachment.
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    A temporary solution is to add another OR and after that a condition of another object (that is not affected by the event) which you know is never true (like "Alterable Value Z = 123").
    Then that object will be the one that is strangely not affected when the other conditions are true and your code is consistent again.

  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: Bug R244: OR causes inconsistent selection

    Logically, in the second example, all objects should be inverted when mouse is over two objects simultaneously

    EDIT : You are right, it's strange and it's probably a bug. To correct it, like you said, add :
    OR
    - Always
    + Never

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    Ah nice. That's even better than my solution.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    The problem is corrected, and both examples work fine now.
    Just one precision :

    To correct the problem, I am obliged to evaluate ALL the conditions of the event, even is the preceeding condition is FALSE. This will make the OR events slower than normal events for a large number of conditions. But due to the speed of nowadays machines, I do not think it has any importance...

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    Ah that's a shame. But still better than having it work wrong.

    When can we get the fixed version?

  8. #8
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    I'm building it.

  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: Bug R244: OR causes inconsistent selection

    But is an "OR line" will be at the same speed than a duplicate line (like we do before), slower or maybe faster ?

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Bug R244: OR causes inconsistent selection

    I think it depends. If you have (simplified) conditions like this:

    + fast condition
    + slow condition
    => do something

    + fast condition2
    + slow condition2
    => do something

    That will run faster than writing

    + fast condition
    + slow condition
    OR
    + fast condition2
    + slow condition2
    => do something

    Because with the or, the slow conditions get checked even if the fast condition is not true.

Page 1 of 6 1 2 3 ... LastLast

Similar Threads

  1. Center Display is inconsistent
    By Konidias in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 1st May 2013, 05:39 AM
  2. array checking inconsistent?
    By itsa_doozy in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 2nd March 2013, 10:33 PM
  3. Inconsistent triggering of Q&A, take 2
    By Teero in forum File Archive
    Replies: 2
    Last Post: 20th January 2011, 04:24 PM
  4. Bug R244: Inconsistent crash when selecting object
    By Random in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd March 2007, 06:04 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
  •