User Tag List

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

Thread: Easiest way to convert array to the ini object???

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Easiest way to convert array to the ini object???

    Please don't tell me I have to go through 196 different events to save all of the coordinates of the array to ini! THAT WOULD SUCK! I'm posting a new thread since the one in the File Archive is getting long and this is more straight to the point. The thread in the File Archive is Problems with Fastloops and Arrays, just if you want to take a look at my program so far.

    I need to use the ini object to save the user's maze from Vitalize! (I think, Yves suggested it) and I can't use fastloops apparently as they only work with the ini++ which can read and write as fast as you want. So far all I can come up with is going through each coordinate and having the group equal the x coordinate and the item be the y. This is going to take forever, seeing that there are 196 squares, and I'm going to have to do it again to load them. Which sucks. Any other way to do this? I JUST finished making the array work, PLEASE let me use it :cry:

    In short, @title.

    Thanks,
    ~RickyRombo

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    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)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    Doesn't the array object have it's own file saving routine? I know that the associative array does.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    Yes, but you aren't seeing why I need an ini. Arrays can't save from Vitalize!, and, according to Yves who wasn't sure when he said this, ini's can. Read the second paragraph

  4. #4
    Clicker Multimedia Fusion 2
    BrandonC's Avatar
    Join Date
    Jun 2006
    Location
    PA, USA
    Posts
    931
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    You can probably run a fast loop that will save the value in the coordinates of the loop index. You might need two fast loops to test for both X and Y. Three if you're checking for Z.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    I don't think I completely understand what you're saying, but I don't think the ini object works with fast loops

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    I'm nearly sure ini and fastloops works, yet I can't believe you didn't try it yourself...

    I'm sure making a test like the following one would have been faster than posting here...
    Start of Frame
    -Ini Set File to apppath$+"Savingtest.ini"
    -Start loop Save 1000Times

    On loop Save
    -Ini Write value in Group "Game" item "item"+str$(loopindex("Save")) Value loopindex("Save")

    Tell us what the results are please

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    Quote Originally Posted by Seele
    don't use fast loops and INIs in conjunction (unless it's ini++ which can read and write correctly as fast as you want)
    I started out using fastloops + ini, and this is what I have in advice. I guess I'll try it again anyways. Thanks for assuming I'm too dumb to test it. what, do you think I'm stupid?

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    I'm not sure I understand very well what you meant (I don't speak english that well).

    I don't think you're dumb or anything, it's just that I haven't seen you much around here, and didn't know what your MMF-skills were like, that's why I suggested a small and fast test.

    Hope it saves you the pain of rewriting your game to use an array.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    actually I didn't understand what you said now that I see it, SEELE just meant that they didn't work well when it had to find the values and everything, but straight values to the ini must work fine. I also noticed that you weren't insulting me, you just thought I should've tested to see what worked and what didn't. I always seem to be misunderstood or I misunderstand, understand? :grin: Understood.

    By the way, I think I'm getting this problem solved.

  10. #10
    No Products Registered

    Join Date
    Jun 2006
    Posts
    625
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Easiest way to convert array to the ini object???

    I know my english isn't perfect and can lead to some misunderstanding, no problem. I hope things are going ok for you project.

    I'm actually pretty sure I used intensive writing/reading to/from ini in fast loops before (MMF1.5 I think), and it worked but it's really slow, maybe that's what SEELE was talking about ? Anyway, you should try for yourself.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Easiest option to copy a folder?
    By lh37 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th August 2012, 10:00 AM
  2. Replies: 2
    Last Post: 25th August 2011, 01:42 AM
  3. Easiest way to check collision between two points?
    By Phanto in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 19th August 2011, 01:01 AM
  4. How do you convert a 1d array into a 2d one?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th March 2010, 08:19 PM
  5. Whats the easiest way to make a dragselection box?
    By MrCyberpunk in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd July 2006, 03: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
  •