User Tag List

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

Thread: Writing to array from behavior (244 b6)

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Writing to array from behavior (244 b6)

    Is it possible to write to array from within a behavior?
    I can't make it work. It creates the file but writes nothing to it.


  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    Are you writing Strings to the array or values? I've had problems with the former before.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    I'm using a "number array" and writing numbers to it.

    I's no big deal I can solve it another way, just wanted to know if one is suppose to be able to do it or not.
    If not I'l stop trying. [smile]


  4. #4
    Clickteam Clickteam

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

    Re: Writing to array from behavior (244 b6)

    Weird, I don't see why you shouldn't be able to write from within a behavior, it's probably due to something else.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    Starting fresh this morning. [smile]
    Throwing away the array file letting the app create a new one fixed the problem.

    A little "worry cloud" on the sky here: what is corrupting the array file?
    It worries me if this can happen when users are in the middle of their games loosing a lot of data.

  6. #6
    Clickteam Clickteam

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

    Re: Writing to array from behavior (244 b6)

    No idea... Let me know if you can reproduce it.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    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)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    I found this with the Tray Icon object as well, had to delete the object and re-create it. Might want to check this too Yves. I don't have the old code but Everytime I want to 'Fix the issues I have. Deleting the object and re adding it in seems a little harsh because I have to re-create the events associated with it.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    Quote Originally Posted by Yves
    No idea... Let me know if you can reproduce it.
    Will do Yves.

    DJFuego, I don't have to delete the array object itself only the array file created by the object.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Tiny's Avatar
    Join Date
    Jul 2006
    Location
    Sweden
    Posts
    598
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    I have found the reason for this to happen. User error as usual, I'm such a card board head! [wink]

    Write a value while the array is still "text array".
    The file is created.
    If one then changes the array object to "number array" without throwing away the corrupt array file it will not work.

    I haven't tested the other way round but it ought to act the same.

  10. #10
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Writing to array from behavior (244 b6)

    Hmm. I didn't realize until now that there was an option to change from text to numeric array at all, actually... I'm having a similar feeling of having done something a bit stupid.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Array object not reading/writing properly
    By PapaKirk in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th September 2013, 11:38 PM
  2. 256 R34 Behavior Bug : Object is not created but its behavior runs anyways
    By Shmuper in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd March 2013, 07:15 AM
  3. Problem writing value to number array > returns 0
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd September 2006, 03:59 PM
  4. Writing to XMLs?
    By Durnus in forum Extension Development
    Replies: 5
    Last Post: 10th September 2006, 04:37 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
  •