User Tag List

Results 1 to 10 of 10

Thread: Receiving a 0 out of nowhere?

  1. #1
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)

    Receiving a 0 out of nowhere?

    I have this example, and it generates the numbers that are in the 3 listboxes.
    now randomly there is a 0 in between, while I have no 0 in the lines at all.

    I played with the 0 and 1 index, but the problem keeps happening.
    Played with this for 6 hours and I can't figure out why this keeps happening.


    I have 24 numbers in each list. 1..24, so I use a Rrandom ( 1,24)
    then I grab the value that is in the listbox on on that position (1..24) and assign it to a counter.

    Now the trick is that it's

    AAA
    123
    BBB

    so 1,2 and 3 are in the middle, and A,A,A is the value BEFORE 1,2, and 3
    and with B,B,B the value AFTER 1,2,3
    (both from the listbox)

    so, if I have in 1,2,3 the value from list entry 24,24,24
    then A,A,A is 23,23,23 and B,B,B is 1,1,1

    and if 1,2,3 is 1,1,1 then A,A,A is 24,24,24 and B,B,B is 2,2,2

    so I should have cached everything, but still there is a number 0 randomly.

    Any ideas?
    Attached files Attached files

  2. #2
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    (not sure where the 1 response went but anyways)..

    It happens in all the rows. (if you press long enough).
    if the number is > then the list it will go to the 1st one, so there shouldn't be a 0.

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    I haven't been able to find a bug yet with rrandom

    I am suspecting something going on with the list boxes --
    Idea can you set them visible and also select the line they are selecting so you can see if the problem is coming from this someplace.

  4. #4
    Clicker Fusion 2.5+ DLCMultimedia Fusion 2HTML5 Export Module
    Kentronisk's Avatar
    Join Date
    Nov 2011
    Posts
    211
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first response was mine, but it was a mistake :p Im sorry you had to see it, I deleted it within like a minute xP

  5. #5
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    I will try it when I get home tonight.

    it probably happens 2-4 times out of 20

    then one the numbers is 0
    Will add the Select line as well (Thought it was only needed for deleting an item)


    Quote Originally Posted by Jeff View Post
    I haven't been able to find a bug yet with rrandom

    I am suspecting something going on with the list boxes --
    Idea can you set them visible and also select the line they are selecting so you can see if the problem is coming from this someplace.

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    I am just suggesting the select line so we(you) can visually see whats going on so we can track down the bug/issue.

  7. #7
    Clicker Fusion 2.5 Developer
    PBarwick's Avatar
    Join Date
    Jul 2014
    Posts
    390
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm not at my computer now so I can't check your mfa, but from what I understand of the problem I would guess the following:

    If you try and get a list item that is after the end of your list or an item that is before the start of your list then it will return 0

  8. #8
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    That's what it looks like.
    But I put in 2 events that should prevent that.
    1 event with if xx = 1 and xx = 24 (so it's the beginning and the end of the list)
    sometimes it's fine and sometimes it's not.

    But can't test atm. have to wait 6 more hours

  9. #9
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    playing with it, and getting the impression that the 1 based index is not working for the list

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    I've found the problem.
    I'll explain using the counter named t9 as an example.

    In Event 5 you set t9 to the value of a line in Reel3 between and including 3 and 26, since Counter 7 can be anything from 1 to 24, and you add 2.
    This means that the list can be set to line 25 or 26 which doen't exist, and it produces 0.
    In Event 11 you test if Counter 7 is 24, but that doesn't prevent it from going higher. What you should test for is: Counter 7 + 2 > 24.

    Another workaround instead of what you do in Event 11 could be to use the max() and min() functions to prevent the values from being anything outside 1 and 24.

Similar Threads

  1. OSC message receiving
    By Chokito in forum File Archive
    Replies: 2
    Last Post: 28th November 2008, 11:36 AM
  2. Understanding DLL stuff - Receiving data
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th May 2008, 02:40 AM
  3. X and Y Sending and Receiving with MooClick
    By AusZero in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 26th March 2007, 03:16 AM
  4. Sending and receiving text in mooclick.....
    By scottige in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th August 2006, 09:26 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
  •