User Tag List

Results 1 to 3 of 3

Thread: I have a problem with saving objects in ini file

  1. #1
    No Products Registered

    Join Date
    Aug 2022
    Location
    Russian Federation
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy I have a problem with saving objects in ini file

    Hi, i'm making a game with level editor and i I need to save the XPos, YPos, Angle and ID of each object separately (like this):

    Template:
    Code:
    [Group]
    
    <objectID>,<XPos>,<YPos>,<Angle>
    Sample:

    Code:
    [LevelObjects]
    
    1,256,450,0
    1,320,450,0
    ...

    But if i just click Save Position in ini file, and then load it the same way, every object loads its position at coordinates of first placed object with the same name. I know how ini file works, but i can't realize how to save & load data of every object with the same name separately in one file.

    Here's an image of the main problem:

    Click image for larger version. 

Name:	problem.png 
Views:	3 
Size:	37.0 KB 
ID:	31693

  2. #2
    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,837
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Hi Kopalka and welcome to the forum. Maybe try putting a number behind each object. Like 1 2 3 and so on.

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

  3. #3
    No Products Registered

    Join Date
    Sep 2022
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have problems like this too

Similar Threads

  1. problem when saving strings from arrays into one text file.
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th July 2013, 12:06 AM
  2. Problem with saving/loading an NVO array file from the Named Variable object?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th January 2012, 02:17 PM
  3. Another problem with explorer/file objects
    By Wingamez in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th April 2009, 10:48 PM
  4. Server Permission Problem Saving INI File
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd November 2008, 10:52 PM
  5. Saving/Loading from file my Actives Objects?
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th August 2007, 08:39 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
  •