User Tag List

Results 1 to 3 of 3

Thread: why does INI not store vaules that are fractions less than 1?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    why does INI not store vaules that are fractions less than 1?

    I'm pretty sure this worked before, but I recently found a bug where my tilt control calibration was nit saving sucessfully via the INI object because the numbers were like 0.678 etc. I used a trick of storing them as strings, yet loading them as numeric values and that worked perfectly.

    This a bug or is INI supposed to act like this?

    thanks

  2. #2
    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)
    If you save them as string, the floating part should be kept. Maybe try to display a string with the same string as you save in the ini to have an idea on how it is coded?

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I remember this too. I dealt with it by saving the value *100 (or *1000 if you're using 4 decimal points) into the INI, then when restoring it int he game, setting it to the value*0.01 (or *0.001 for 4 decimal places).

Similar Threads

  1. Mac App Store
    By WhatPixelYouOn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th August 2012, 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
  •