User Tag List

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

Thread: Saving and Loading on iOS

  1. #1
    No Products Registered

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

    Saving and Loading on iOS

    Hi everyone,

    I did a search on saving/loading files on iphone and found a couple threads about it, but honestly they lead to more questions than answers.
    Apparently we can't manage ini files like delete, rename.. is this correct in current build?
    Where should we put an ini file inside the zip xcode project that we want to load a text into the game? How do we do this (the loading/saving) in MMF2? The use of apppath gives me a warning when I try to compile into Xcode project.

    thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving and Loading on iOS

    Use the ini object. And yes, you cannot delete, rename files from within MMF-iOS.

  3. #3
    No Products Registered

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

    Re: Saving and Loading on iOS

    ok but where do I place the ini inside the xcode project? That is, a text file that I want to be loaded into the game.

  4. #4
    No Products Registered

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

    Re: Saving and Loading on iOS

    Resources folder perhaps

    edit: yeah, resources folder doesn't work.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving and Loading on iOS

    Ah, ok, you want to load a pre-saved ini file (not generated previously generated and saved with your MMF game itself).

    Well, that's a good question

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving and Loading on iOS

    Good question Bruto. I hadn't thought about this. But it would be very useful to be able to include premade ini files.

    What comes to mind as a work around (thought I haven't tried it) is to use an edit box which already contains the information in your premade ini file (edit the editbox text in the frame editor). And then at the start of the frame you could save it as "save.ini", then try to open "save.ini" with the INI object.

    Probably won't work, but might be worth a shot for now.

  7. #7
    No Products Registered

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

    Re: Saving and Loading on iOS

    It could work with List object... I just tested it and worked "partially".. I mean partially because it did cut one word in one of the sentences but maybe I did something wrong. I'm going to test with a strings with multiple paragraphs. I think that if the values are numbers, List object could do the job very well.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Saving and Loading on iOS

    I have not tried this. But I think it would work. Put the file at the root of your XCode project, and manually insert the file in the project windows (choose add file). The file will be included in the bundle.
    The INI object access files within the bundle.
    Please tell us if it works.

    PS: due to the way XCode works, I cannot insert new files from within MMF

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Saving and Loading on iOS

    This would be great to know to handle localization in text, for instance.

  10. #10
    No Products Registered

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

    Re: Saving and Loading on iOS

    ok I'm probably being blind here but I can't see "add file" option anywhere in the project windows.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. iOS Saving and Loading
    By Coopman86 in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 22nd February 2012, 08:39 AM
  2. saving and loading
    By bunnyonion in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 30th July 2008, 08:49 PM
  3. Saving/Loading from INI help
    By Bruto in forum File Archive
    Replies: 4
    Last Post: 3rd January 2008, 09:57 PM
  4. Saving/Loading
    By ToffeeandPebbles in forum The Games Factory 2 - Technical Support
    Replies: 10
    Last Post: 24th July 2007, 05:41 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
  •