User Tag List

Page 5 of 8 FirstFirst ... 3 4 5 6 7 ... LastLast
Results 41 to 50 of 73

Thread: Any way to get around the Fusion number limit?

  1. #41
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Oh maybe I missunderstood the blue box for the wallet? https://dl.dropboxusercontent.com/u/...-04_234024.wmv
    How do you think the performance on this would be on mobile btw? There are quite a lot of loops etc.

  2. #42
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Yeah, in the example the "wallet" is the yellow box, and is also used for calculations
    the blue box is used to show the result of any operation you perform with buttons on the wallet

    (in the example, add will add the amount in the wallet -yellow box- to the current displayed number in the blue box,
    subtract will do the same - subtract the amount in the wallet from the amount in the blue box
    multiply will multiply the amount in the wallet by the number near "multiply", and show result in the blue box)

    So when you hit subtract, you subtract the amount in the wallet from the "blue" box.

    To "purchase" an item, lef click it, its amount will be subtracted from the "yellow" box.

    I joined both examples (the blue box showing results - the objects for the shop thing) in just one file - probably a bad idea


    On mobile performances: don't have the slightest idea.
    As long as you only add or subtract, and you won't use more than 100-200 digits, I think this could be bearable without too struggle.
    But only testing can give us a proper answer!

  3. #43
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    How do I add a big sum to the wallet? Like if I want to add 10000000000 gold to it? I don't understand the purpose of the blue box since it does not seem to affect the wallet in any way?

  4. #44
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    man, forget about that nasty blue box
    it's just used to display values but I realize it may be counterintuitive in the example!

    You don't need anything but the active "huge_int" and its array pal.

    Assuming you have "my_wallet" string storing your current gold amount,
    to add 10000000000 gold you simply need one event:

    on button click (or whatever condition triggers the sum to be added)
    >>> set "val_1" string of "huge_int" object to "my_wallet" (you feed your current gold amount)
    >>> set "operation" string of "huge_int" object to "+" (you ask to perform addition)
    >>> set "val_2" string of "huge_int" object to "10000000000" (you tell how much to add)
    >>> start loop "huge_int" 1 times (you ignite the calculation)

    result of the calculation will be thrown in "result" string,
    so to update your starting wallet amount you just need to add this line:

    >>> set "my_wallet" to "result" (your wallet string is overwritten by the new updated sum)
    (you can add this line even in the same condition, as last action after the loop fired)

  5. #45
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Following from the F3 thread,
    had a quick idea that would be very simple to use (and moderately simple to prepare)
    but limited in:

    - only add / subtract
    - would range up to about 180 digits (possibly many more on most runtimes, but this would probably limit HTML5 compatibility)
    - you could only operate with relatively small values added/subtracted to huge values (otherwise would require much more tinkering)
    for "relatively small values" I mean add/sub max 999999999 (9 digits)

    to use it you would simply say:

    --> add/sub 999999 to my_big_int_value("big_int_object")

    result would be thrown in my_big_int_string("big_int_object") string
    (and you could display it one frame later, since it's in a behavior,
    or instantly, if you pull out the code from the behavior
    - or if I make this all happen inside a loop, which I still don't know -)

    more objects could be probably used to hold more values (one x big value)

    and would also add a "load big number" option (frm a saved string)


    if it would suit your needs, I could try making this idea as a widget

  6. #46
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Schrodinger: As long as it would be able to do what is done in other idle games like Adventure Capitalist and Clicker Heroes etc it would be great!
    I would love to test out what you could do! I guess the best thing would be to try to build an "idle engine" that mimic what these games do, but where you can cheat to actually see if it is working (like having a button to add money). The important thing is that it does not start to bug out at any point and that it converts properly to the higher values, like K,M,B,T etc

    There is some end point though in these games also. For example from Clicker Heroes list:

    1K = 1,000 = One Thousand
    1M = 1,000K = One Million
    1B = 1,000M = One Billion
    1T = 1,000B = One Trillion
    1q = 1,000T = One Quadrillion
    1Q = 1,000q = One Quintillion
    1s = 1,000Q = One Sextillion
    1S = 1,000s = One Septillion
    1O = 1,000S = One Octillion
    1N = 1,000O = One Nonillion
    1d = 1,000N = One Decillion
    1U = 1,000d = One Undecillion
    1D = 1,000U = One Duodecillion
    1! = 1,000D = One Tredecillion
    1@ = 1,000! = One Quattuordecillion
    1# = 1,000@ = One Quindecillion
    1$ = 1,000# = One Sexdecillion
    1% = 1,000$ = One Septendecillion
    1^ = 1,000% = One Octodecillion
    1& = 1,000^ = One Novemdecillion
    1* = 1,000& = One Vigintillion
    A lot > 1,000* < A lot


    "A lot" is "Infinity" I guess and I think that is the roof,

    Adventure Capitalist seems to have an even bigger list though
    http://adventure-capitalist.wikia.com/wiki/Money

    About "only add / subtract" though, it must be possible to add a number that is first multiplied for example? Like for example often in these games you buy bonuses that add a % to the income, like +25%. So that is a sort of multiplier to what is added?

    About Adventure Capitalist I found this in the money wiki i posted above, not sure if it is useful? "Because the game uses double floats for storing numbers, 2(1024 small numbers") is the highest number expressible. This number equals roughly 179.77 uncentillion. Exceeding this value will result in an integer overflow and your money balance resets to zero. "

    Adventure Capitalist: http://www.kongregate.com/games/hype...ure-capitalist
    Clicker Heroes: https://www.clickerheroes.com/

  7. #47
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    http://adventure-capitalist.wikia.com/wiki/Money
    Uh, that's a huge list!

    But I think we can do that
    (as long as it's Windows or android / don't know for iOS / probably not HTML5)
    would require about 30/40 loops for 300 digits (roughly number of digits/9 loops)
    so I think shouldn't break on mobile either..

    Ok I'm going to try (hopefully next hours),
    but since I've never played any of those games,
    would the adding/subtracting limit at 999999999 be a problem?

    The "identifying letter" could be done also,
    i.e. pulling from a customizable symbolset,
    but I'd add it later in case the thing actually works
    and suits your needs

  8. #48
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Maybe the list from Cookie Clicker is enough to start with :p

    I don't know if it will be possible but it sounds like it would be good to optimize when loops stops, as soon as it finds it target if possible? I don't know how heavy running so many loops at all times are?

    About the limit of 999999999 I am not sure, I mean One Octodecillion is a lot more than 999999999 I assume? But if it goes to the next currency before it hits that roof it should not be a problem if I understand correctly? Like how adding 1 to 999999K will start over at 1M? And then adding 1 to 999999M will be 1B etc etc. I guess that is the principle? And when above that it goes to the next one? Then it would not be a problem I think? I am not completely sure what you mean by this limit.

    When the player is up in the Octodecillion I assume if we are talking about "raw numbers" without any converstions first I assume 999999999 will be nothing though? (since 999999999 is something like 9 billions or something?) But it will rather add stuff like 9999% etc (Septendecillion)

    Btw, Adventure Capitalist in particular apparently uses "the game uses double floats for storing numbers" Any idea what this means?

  9. #49
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Yeah I actually meant adding maximum 999999999
    but I already faced this limitation's downside by seeing it took ages to test...
    so I'm already testing an unlimited-addition version
    (you guess - it's just some more looping!)

    addition seem to work, I'm testing side-by-side with windows calculator,
    that thing reachs pretty high numbers!

    may take a bit more than expected but results are encouraging so far

    it's quite performant, looping is about 1 loop x 4.5 digits
    should give no issues even for sky-high numbers
    (450 digits= 100 loops)

    let's cross fingers in hitting no wall...
    (--> I've still not worked on subtraction )


    edit:
    "double floats" I think they refer to this:
    https://en.wikipedia.org/wiki/Double...g-point_format

    seems like it caps here:
    1.7976931348623157 × 10308

    would fit with Uncentillion cap of that game

    I don't know which format Fusion uses for floats...
    one could test when it starts bugging out maybe..?

  10. #50
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Sounds exciting! Will it be somewhat readable and understandable? I hope to be able to create a sort of idle engine template from it that could be useful. (like a simple mini Adventure Capitalist example)

    About the double floats, i am not even sure what floats are :/

Page 5 of 8 FirstFirst ... 3 4 5 6 7 ... LastLast

Similar Threads

  1. Group number limit?
    By Pandora in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 28th March 2008, 09:25 PM
  2. limit edit box to number only
    By Anfini in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th December 2007, 07:07 AM
  3. Number of objects limit?
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th October 2006, 03:17 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
  •