User Tag List

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

Thread: Global counter

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Global counter

    I have some problems with MMF2 remembering values using a counter. These counters are used to store if the player has a particular weapon. 0=no 1=yes. And between each frame there is a save point that saves these values. But in the next frame all the counters are set to "0". So the player looses all the weapons he had from the last frame. Now this only happens in a built version, everything works fine when I run it from MMF2.

    And when I check the INI save file everything is set back to 0- And again, this doesn't happen when I run everything from MMF2. Only happens in a built version.

    I have ofcourse checked it as a "global object" in the "memory" menu. And I tried checking the "load on call" thing (Even though I don't know what it does).

    There is nothing wrong with my save frame- well at least nothing that should reset the counter to 0.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    Wait a minute! Now I get the same errors when I run it through MMF2 as well! What is going on? Everything worked perfectly before.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Global counter

    I've never had any problems like you described.

    1. Ensure you are using build 246.
    2. Ensure all instances of the counter are global and have the same name.
    3. Ensure you don't have any sneaky "set to 0" events lying around
    4. If all else fails, use global values instead.
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    It says I've got build R245, but I just upgraded a few days ago, when MMF asked me to do it- I only upgrade when MMF asks for it.

    All the levels are copied from the same frame- where I keep my engine. But I doubled checked, all the important counters has the same name.

    There is no code attacked to the counters, so there is no "set to 0" event in the code.

    I do use both global and individual codes in the game. But why would that help?

  5. #5
    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: Global counter

    If it worked within MMF2 but not in the built application, it sounds like you might be using absolute pathnames instead of relative ones to access your INI files. Perhaps search from Windows Explorer to see if there are any files matching your save file name in locations you don't expect.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    It can't be that either! Somehow the ammo is stored with no complications in the proper INI file.

    I don't know what to do here, it makes no sense.

    Everything worked perfectly before.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    Now this is even stranger, as I said- Everything worked perfectly before!

    I always keep backups of my work in different files. The earliest file I got stored dates back to August 14th 07. And now that one doesn't work either! I know it did before!

    What is this?
    As I mentioned before, I did do upgrade MMF2 just a couple of days ago, and I noticed that it said I was on version R245 both before and after the upgrade. Could this somehow be an error within MMF2?

  8. #8
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Global counter

    Quote Originally Posted by willy
    What is this?
    As I mentioned before, I did do upgrade MMF2 just a couple of days ago, and I noticed that it said I was on version R245 both before and after the upgrade. Could this somehow be an error within MMF2?
    My MMF2 definitely says 246, so download it again and ensure MMF2 is *not open* when you install it.
    .:::.Joshtek.:::.

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Jun 2007
    Location
    Suffolk, UK
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    Quote Originally Posted by Joshtek
    Quote Originally Posted by willy
    What is this?
    As I mentioned before, I did do upgrade MMF2 just a couple of days ago, and I noticed that it said I was on version R245 both before and after the upgrade. Could this somehow be an error within MMF2?
    My MMF2 definitely says 246, so download it again and ensure MMF2 is *not open* when you install it.
    You probably are still on 245. I originally tried to upgrade when MMF2 asked but it never worked. I had to use the link in the build 246 thread for the upgrade to work on mine.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global counter

    All right. I re downloaded the update. Now MMF says Build 246. But I still get the problem. This game is almost finished, I just need to fix this bug!

    I'll try to re install MMF

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Global Counter Help!
    By Kolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd December 2013, 09:51 AM
  2. Counter Value/Global Value into a Filename?
    By antipode in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th February 2012, 09:47 PM
  3. State of global counter not updated in subapp
    By RayMarble in forum The Games Factory 2 - Technical Support
    Replies: 5
    Last Post: 22nd March 2010, 02:33 PM
  4. [Request] Replace Counter by Global Value
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th February 2008, 05:22 PM
  5. global value equal to counter
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd November 2006, 08:20 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
  •