User Tag List

Results 1 to 8 of 8

Thread: [Request] Stop values when reached to minimum/maximum

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Question [Request] Stop values when reached to minimum/maximum

    Request
    Hi,
    I have request about limitation of the value of MMF2.
    Can you auto stop the increase/decrease all values when it reached to minimun (-2147483648)/maximum (2147483647) (note;exclude fixed value.)?

    When value is over 2147483647 suddenly it will change value to -2147483648 and it will cause any problems.

    Could you implement this method in MMF2 or MMF2.5?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ASD View Post
    Request
    Hi,
    I have request about limitation of the value of MMF2.
    Can you auto stop the increase/decrease all values when it reached to minimun (-2147483648)/maximum (2147483647) (note;exclude fixed value.)?

    When value is over 2147483647 suddenly it will change value to -2147483648 and it will cause any problems.

    Could you implement this method in MMF2 or MMF2.5?
    I don't think you can change a data type at runtime in any programming languages: It's usually hard-coded. Popcap (a really well-known game developer (ever heard of Bejeweled, Bookworm, Typer Shark, or Plants Vs. Zombies?)) has acknowledged that they have to have a fixed limit (they've mentioned such a limit on the score in their games on their support site before, though I can't seem to find it at the moment), so I think it's a limitation of coding in general.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    happygreenfrog this has nothing to do with changing data types at runtime and in fact is perfectly possible.
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In my opinion, it would be difficult to implement. Firstly because it's the way binary logic works, so working in different way will imply to work differently from hardware (or put a layer on top of it). Secondly if you are trying to create some custom specifications, it will usually be expected to have the same behavior on all operators and functions, even not-Clickteam objects. At the end, I think that we will rely on some specification that cannot be garantee.

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Ouly I think this request is just for Alterable Values/Global Values.

  6. #6
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just adding this behavior to add/substract from alterable/global values is less problematic to implement, indeed.

    But mathematically speaking, I still don't like this option. When one overflow occurs, you know the amount of data you have lost, when you are saturating a value it starts to be harder to handle. For example, think about a counter already at 2147483647, add 10 to it and then remove 100. If the counter is overflowing you will obtain the right result at the end, but if he's saturating you will obtain something completely out.

    So here is another proposition: remove MMF weak-typed alt./global values behavior, add an action to set the type of a value and then let the programmer explicitly choose between integer, float or integer counter type.

  7. #7
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)
    Add to Global Value A: Min(2147483647-Global Value A, valtoadd)
    Subtract from Global Value A: Max(Global Value A-2147483648, valtosub)

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    That doesn't work when the wraparound happens multiple times and looks like it didn't actually wrap around at all.

Similar Threads

  1. Maximum amounts of installations reached.
    By Acroshinobi in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th August 2013, 07:25 PM
  2. Stop Slider once a value is reached
    By Soilydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd July 2013, 05:20 PM
  3. Reached the maximum number of installations
    By K1kk0z90 in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 14th March 2012, 04:42 PM
  4. Maximum number of installations reached
    By Ls2 in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 8th February 2012, 07:10 PM
  5. Urgent: SWF Exporter - maximum installs reached
    By Digitalic in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 25th January 2011, 08:08 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
  •