User Tag List

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

Thread: [Request] Improved INI object

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Improved INI object

    I sort of like the INI object as it is now, but using it slows down my application a lot when I need to deal with a lot of data.

    I would like to see a new INI object that works identically to the existing one, but with the "Set INI file" action removed, and two others added instead:

    * Load INI (From file to RAM)
    * Save INI (From RAM to file)

    The idea is that all conditions (set value, set string) should not modify the INI file, but instead just edit values in an array stored in the RAM, and load/save from that when you use the load/save actions.

    This would be many times faster when writing and reading large INI files.

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    INI is a initialization File...

    They Are Supposed to be used to save configurations, eg.

    [save1]
    questdone=Yes

    It is not supposed to be used as an array...

    if you really want it, you can easily use the string parser object (which keeps info in virtual memory) Then use the save as INI function.


    Hope that helps :cool:

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    named varible object ?

  4. #4
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    named variable object ?

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    It's in one of the bonus packs.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    Do those handle groups too?

    INI is a initialization File...

    They Are Supposed to be used to save configurations, eg.

    [save1]
    questdone=Yes

    It is not supposed to be used as an array...
    No, but the whole concept of groups, items, and values/strings is perfect for what I want to store. Afaik the other extensions mentioned above does not support groups.

    The named variable object would have to store the "group" name for each item (space waster), and most array extensions would have to allocate a lot of unnecessary memory, since all groups will have a different number of items.

    Anyways, I might be wrong.

    I need groups and items. Each group will store a variable amount of of strings and values (it can be 5, it can be 50), and both the groups and items must be titled. What other extension would allow me to do this?

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    www.dingdongstudios.co.nr
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    A record extension would be useful. If anyone has ever used pascal or delphi they would know what I mean.

    Basically you declare a file and you have records in a kinda stack. New records are added to the end of the file.. Heres a (graphical-ish) example:


    RecordFile

    -Record1
    ---String1
    ---String2
    ---Value1
    ---Boolean

    -Record2
    ---String1
    ---String2
    ---Value1
    ---Boolean

    -Record2
    ---String1
    ---String2
    ---Value1
    ---Boolean

    etc etc. then u can get data by calling a specific file, then record, then the item name in the record. Now wouldn't that be a very useful and powerful extension?

  8. #8
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    *Cough* EasyXML *Cough*

    <RecordFile>
    <Record>
    <StringVal1>IAMASTRINGVALUE</StringVal1>
    <StringVal2>IAMANOTHERSTRINGVALUE</StringVal2>
    </Record>
    <Record>
    <StringVal1>Blah</StringVal1>
    <StringVal2>Meh</StringVal2>
    </Record>
    </RecordFile>

    Ect :P .

  9. #9
    No Products Registered

    Join Date
    Jul 2006
    Location
    www.dingdongstudios.co.nr
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    Maybe I should have looked into xml a while back..

  10. #10
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Improved INI object

    the INI object DOES need expressions to find out how many groups there are, and how many items are in a given group, however

    doing this manually isn't always the best option

Page 1 of 2 1 2 LastLast

Similar Threads

  1. [Request] Bag Object or [Proposal] Bag Object v2
    By Master_Maker in forum Extension Development
    Replies: 10
    Last Post: 30th November 2008, 06:32 PM
  2. [request:]ping object? &small change to FTP object
    By DarkSmurf in forum Extension Development
    Replies: 1
    Last Post: 26th September 2007, 09:33 PM
  3. [Request] INI object
    By Sphax in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th August 2007, 08:02 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
  •