User Tag List

Results 1 to 10 of 10

Thread: Strings height set to 0 after setting Alterable String

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strings height set to 0 after setting Alterable String

    I have no idea what the heck is going on here.

    I have absolutely no commands on this string except Set Alterable String to GroupItemString$("My_Ini", "TEXT", Str$(Value(Alterable_value_of_Active"))).

    Yet for some reason whenever I use that, it sets the high of my string to 0 andit can't be seen.

    It only happens when I try to set it to a string in an INI, if I just set it to "Hello" or something it works just fine.

    Any ideas why this is?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,822
    Mentioned
    7 Post(s)
    Tagged
    2 Thread(s)
    Can you put up an MFA file so people can take a look? It sounds odd.

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't seem exclusive to this .MFA. I tried it in some of my scrapped projects as well as created a new one specificly to test this and got the same result.

    Here is an example mfa where this is happening.

    All you need to do is press Enter to change the alterable string. Ignore that the text itself will be blank after you press enter, you can still see the text's height jump to 0 in the debugger, and manually inserting text from the debugger won't work either.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,436
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    The ini is blank unless you write something to it. At the moment in your file, you're setting the string to the ini while it's blank. Try this instead AlterableStringHeight Fix.mfa

  5. #5
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My ini currently has hundreds of lines in it, so thats not the issue.

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,436
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Oh I see, perhaps when the string is set to an empty string it must set to 0 zero in height because itís empty. Yet if you put text in it, it should stay the height you originally set it to. Iíll do some more checks. Sorry I didnít comprehend your first post. I get it now.

  7. #7
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jan 2015
    Location
    Central Oregon, USA
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats what I thought too, but in previous scrapped projects I have, where this worked just fine, the height is still set to 0 for some reason.

    I'm starting to think my copy of fusion might just be corrupted somewhere.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This isn't a problem with the INI object.
    If you just set an alterable string to "" (no spaces in between the quotation marks), then the height of the string object will be set to 0

    EDIT:
    I first set the string to "", which resulted in the height being 0, then I set the string to "asdasd" and the hight went back up to 16. So I don't see the big problem with this bug.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,436
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Thanks decal, that’s why I was confused. When I first looked at the problem. If strings return to the set height when there,s text, there really isn’t an issue. I would also agree it’s just how strings behave and there isn’t a need to change it. I’ve never taken any notice before because it’s never been an issue.

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It might not be a bug at all. It might be like this because of performance. If you don't have anything to write to the string, it might be better for performance to set the height to 0 (making it invisible or non existent, instead of showing an empty string text). But only Clickteam can answer this.

Similar Threads

  1. Crash on setting Alterable String
    By AWK in forum Fusion 2.5
    Replies: 8
    Last Post: 25th September 2017, 05:25 PM
  2. Stupid question about setting alterable strings
    By 4burner in forum Fusion 2.5
    Replies: 5
    Last Post: 20th July 2017, 11:34 AM
  3. Active object - setting height / width in events
    By kainminter in forum Fusion 2.5
    Replies: 4
    Last Post: 4th September 2015, 05:51 PM
  4. Setting Multiple source strings in String parser
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st March 2009, 08:41 AM
  5. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 07:38 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
  •