User Tag List

Results 1 to 5 of 5

Thread: Urgent question about INI object, INI object settings and Application settings.

  1. #1
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Urgent question about INI object, INI object settings and Application settings.

    I hope someone from CT could clarify, Yves! I need you!

    I'm going to release my next game DISTRAINT 21st this month!
    Okay, I learned a lot from Silence of the Sleep, in this case everything being unicode.

    Okay since INI++ is not unicode I'm using INI object. It's unicode, right?

    So I found a problem when I created another user to my Windows and named it with some Russian Cyrillic. I'm saving all my data to AppData/Roaming folder cause it does not need admin rights to write in.
    Since I'm using so called "normal" INI object I thought everything would work like a charm, but hey, that's not quite what happened! I spent a couple of hours trying to figure why on earth my game fails to create files in AppData folder when Windows username has some foreign characters in it.

    After a few hours I was able to narrow the reason to INI object. I tried altering INI object settings, like "Create INI file in application data folder" and "UTF8". Nothing would work! :/

    But then, finally! I set "Character encoding options" from application settings, both input and output to UTF-8 (without byte-order mark) AND unticked "UTF8" and "Create INI file in application data" from INI object and it started working!

    I'm very, very happy it seems to work. But I can't quite understand why. Why I need to disable UTF8 from INI object? I'm trying to understand why it works, and could it potentially create new problems?

    Hoping to get quick response as I aim to send out the demos tomorrow! Yikes!

    Jesse

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Oregon
    Posts
    11,826
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    You might want to send Yves a quick email or a PM on the forums so it on the top of his list to look at.

  3. #3
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I'll do that, thanks Jeff!

    Also noticed, that the file it finally saves, saves in ANSI and not in UTF8 without byte-mark.

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,712
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    I don't see at all why the character encoding options in the app properties would have any effect as they are not used AT ALL by the INI object. They are used by the Load Text / Save Text functions of some objects like Edit box and List Box.

    What you need to know about the UTF-8 option in the INI object:

    1. If you select this UTF-8 option and provide the INI file with your application, make sure this INI file has no byte-order mark.

    2. The full pathname of the INI file is not Unicode, it must use characters from the current user's language. For example if you user is on a Russian machine and has a Greek or Japanese user name this won't work if the INI file is in the user's AppData folder (as the pathname will contain a Greek or Japanese name). Though this case must be quite rare...

    PS: if you could send me a simple example that doesn't work and a simple example that works I could probably see better what you mean.

  5. #5
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yves, okay, I use byte-mark, so maybe UTF8 option being ticked in INI object was the reason it failed in the first place. Though only when username in Windows had some Cyrillic. O_o

    As the AppData problem I'm well aware of that (had this episode with Silence of the Sleep). I'm loading the paths only with unicode objects. This is all good, and atm all seems to work okay.

Similar Threads

  1. Replies: 2
    Last Post: 30th May 2015, 09:06 PM
  2. Question and Answer Object crash! (URGENT PLEASE)
    By Koji_Kabuto in forum Android Export Module 2.5
    Replies: 13
    Last Post: 9th February 2015, 10:09 PM
  3. email object pop settings being changed
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th March 2013, 05:07 AM
  4. Bug? Edit box object settings: password
    By Quinto in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th January 2008, 06:18 PM
  5. [Request] Clone Object that remembers the settings
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th December 2007, 07:53 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
  •