User Tag List

Results 1 to 5 of 5

Thread: App crash with INI

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    App crash with INI

    I'm making a "world map" (4 maps total) for my game. I am using an INI to save position of character, number of levels completed, and which map the player is currently in. I also have a load game feature in the title screen, and I use counters to retrieve the correct data from the INI(to make conditions). But for some reason, whenever I make the event:

    Start of frame: "set counter to GroupItemValue( "Ini", "MapData", "Grassland"

    and try to run the game, I get an error window saying something happened and the app will have to be closed. I have tried remaking this several times now, and the same thing keeps happening. I open the INI text file and all of the data is stored perfectly, but I cant set that data to a counter without crashing the app. I've Never had this problem before, anyone know whats up? Thanks for any help.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: App crash with INI

    That's definitely unusual... first, are you sure that the INI object is pointed at the right file? And what are the contents of this INI file?

  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: App crash with INI

    Lol I hate how everytime I make a post I find out the problem not 5 minutes later.. The problem is that I was trying to load the INI data onto the counter at "Start of frame". I moved it to when player highlights "loadfile" and now there isn't any problems. Wierd huh? BTW the INI contents weren't complicated at all it was basically:

    [mapdata]
    pos.Mapplayer=66,61
    Map1?=1
    Map2?=0
    Map3?=0
    Map4?=0
    Levelcompleted=1

    dunno if that would be useful to figuring out why you can't use counters+ini at start of frame but there it is :P

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: App crash with INI

    Do you have a Fade In transition? In that case it's probably because the INI doesn't have "Create before Fade In transition" checked.

  5. #5
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: App crash with INI

    Yeah I do actually, makes sense. I'll try that in a sec.

Similar Threads

  1. [CRASH] Google Play Crash Report: java.lang.NullPointerException
    By tom79 in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 1st August 2013, 04:08 AM
  2. [CRASH] Memory Object Runtime Crash with Allocate(
    By LB in forum Extension Development
    Replies: 8
    Last Post: 4th September 2011, 09:04 AM
  3. [CRASH] ForEach object crash on recursive loop
    By LB in forum Extension Development
    Replies: 0
    Last Post: 1st May 2011, 01:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •