User Tag List

Results 1 to 7 of 7

Thread: ini file

  1. #1
    No Products Registered

    Join Date
    Feb 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ini file

    Hi everyone, just becoming crazy to create an ini file.
    I insert the object INI. I intruduce a path to create it.
    Orders:
    Set current group
    Set current item
    Set value

    I run the aplication but the ini file does not appears.
    Some help please!!

    Thank you in advance.

  2. #2
    No Products Registered

    Join Date
    Feb 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I don't introduce a path then the file is created. But it's not the place I want to. The path I introduce is as follows:
    C:\Usuarios\augus_000\Documentos\ejemplo.ini

    Thank you again

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should check out these links - use them in the order I've put them, so use the video 2nd:

    The basics of using INI files



    How to embed INI files inside of the exe file

    Also note, I had trouble getting INI's to work for a while, even though I thought I was doing all of the right steps. For some strange reason INI's only work for me when I set them up by initially setting the current group, item and file on a start frame event at the start of a frame, above all your other code. Then you should be able to change the current group and item throughout the code as needed.

  4. #4
    Clicker Fusion 2.5
    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)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... For some strange reason INI's only work for me when I set them up by initially setting the current group, item and file on a start frame event at the start of a frame, above all your other code....
    This is very odd indeed as I can jump between various ini files during runtime (at least I could in MMF 2 not tried in CF 2.5). As long as you specify the correct path and filename you should be able to "open" and "close" ini files whenever you want.

    Try this for me:

    Start of Frame:

    Set Current ini file to appdir$+"test1.ini"
    Set Current Group to "test"
    Set string "Hello Guv'nor" to Item "String1"

    Timer is equal to 2 seconds:

    Set current ini to appdir$+"timed.ini"
    Set Current Group to "timing"
    Set string "This is a time generated one" to Item "time"

    Upon Pressing "Space":

    Set current ini to appdir$+"pressed.ini"
    Set Current Group to "pressing"
    Set string "You pressed Space" to Item "press"

    Save the mfa in a location of your choice (e.g. C:\ini_test) and run it. You should find 3 ini files in the root of the directory once each of the conditions have been met

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    arthurh's Avatar
    Join Date
    Sep 2010
    Posts
    951
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you use appdir$, i suggest that you write : appdrive$+appdir$. If you want the complet path, use apppath$ instead : apppath$+"test1.ini"

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Your links did not work for me.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Simflare's Avatar
    Join Date
    Oct 2013
    Location
    Australia
    Posts
    374
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the heads up Marv. That might be because I tried linking directly to the PDF files, which for some reason caused issues. I'll try again and make sure the links work:

    The basics of using ini files - choose the tutorial under "Beginners > The INI Object"



    How to embed INI files inside exe files - open the PDF link

    Cheers

Similar Threads

  1. Create folder with File object on Program File
    By Vantales in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th April 2013, 11:13 AM
  2. Delete external file AND check if file exists
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 03:39 PM
  3. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 PM
  4. Cannot open include file: 'windows.h': Nosuch file
    By JasonDarby in forum Extension Development
    Replies: 12
    Last Post: 11th February 2007, 11:12 PM
  5. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 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
  •