User Tag List

Results 1 to 9 of 9

Thread: Help with .ini files please.

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DEKE15's Avatar
    Join Date
    Feb 2009
    Location
    UK
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with .ini files please.

    Hi,

    I'm trying to save/load some information from my adventure game. As far as I'm aware the .ini extension is the best way to do this.

    I have followed the MMF tutorial (POPCORN's ini tutorial) but I just can't get things to work. I can't even get MMF to put an .ini file into the assigned folder/directory.

    If someone could show me how to retrieve infomation/a value from a counter and put that into an .ini file then that would be great. Any help with loading the counter value back into my game would be very helpful as well.

    Hope you can help.

    Thanks

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    I will upload a quick example for you. Give me a second.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    Here you go. If you have any questions, feel free to ask.

    INI Example

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DEKE15's Avatar
    Join Date
    Feb 2009
    Location
    UK
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    Thank you very much for the example.

    I will have a look at it now.

    Thanks again :-)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DEKE15's Avatar
    Join Date
    Feb 2009
    Location
    UK
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    That .ini example is just want I was looking for.

    It works perfectly.

    Is there a way to store text strings in the .ini?

    I want it so the player types their name in at the begining of the game and they would be recognized when they quit out and restart the game up.

    Any help with this would be much appreciated.

    Thank you.

  6. #6
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    It's the same as values, like:

    [0]
    1=Hello
    2=Player

    [Test]
    Bone=123
    4552=Jonny

    etc.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DEKE15's Avatar
    Join Date
    Feb 2009
    Location
    UK
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    I'm still a bit stuck :-/

    I'm using an Edit Box for the text/name entry.

    But I can't see how to gather or retrieve the information enter into it.

    In the Events Editor there is (as far as I can see) a relavent action/event to collect the info and save it.

    I'm quite new to MMF so any simple instructions would be appreciated.

    Thanks

  8. #8
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    It's under Editing --> Set text

    When you want to read from the ini into the edit box.

    To write to the ini use Edittext$( "Edit Box" ) to get the text from the edit box.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DEKE15's Avatar
    Join Date
    Feb 2009
    Location
    UK
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with .ini files please.

    Great, thank you.

    I will give that a try :-)

Similar Threads

  1. "Flash / INI object: now loads INI files stored as binary files in the application."
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 2nd July 2014, 11:22 AM
  2. Loading files such as INI,Text files, List Files?
    By Gibbon in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 21st July 2012, 07:41 AM
  3. INI files versus XML files - which one's better?
    By TheSynapse in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 6th April 2012, 04:14 PM
  4. Conveting mfa. files to swf. files.
    By onewingedangel in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 22nd September 2008, 04:23 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
  •