User Tag List

Results 1 to 6 of 6

Thread: [BUG 256-6] Loading text into Edit Box always adds an extra character on device

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [BUG 256-6] Loading text into Edit Box always adds an extra character on device

    Just starting to get to grips with Edit Box now it can load files, but it keeps adding an extra character on the device (fine on PC)
    So if my text file is "This is some text." it displays "This is some text.M"
    Sometimes the last character is L or J
    I assume it's reading the EOF somehow?
    I'll try to make a simple example later.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems like it's not as simple as I first thought. Seems to be related to Data Elements > binary and Multi-line (I think it has to Wrap to mess up)
    I've attached an example file (along with 3 text files to load that should be part of Data Elements> Binary - you may need to add them again).
    It loads 1 of 3 text files in sequence - just tap Load to go to the next one (make sure to scroll down for Text1)
    First run through seems fine, but starts adding all sorts of characters when loads Text1.txt subsequent times.
    I tried loading it in a List object as well for comparison, but text gets truncated (haven't noticed any problems with List object and loading txt files with data Elements, so assume it's isolated to Edit Box and maybe only with Multi-line)
    For whatever reason Text3.txt seems to be OK (I assume it's something to do with how it stores multiple files using Data Elements in Application.cci - ie last file is fine?)

    Hopefully an easy fix for next Beta?
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Spoken too soon! I had thought I could manually add my text files in XCode, but the problem is still present (so it's not Data Elements that's to blame)
    Here's a new example - i also load the same text file into a List box and display the contents of edit Box and List Box in Strings so they fit on screen.
    List Box is fine - no extra characters
    Edit Box sometimes messes up (just keep tapping the load button and comparing the 2 strings)

    Another bug is that scrolling the edit box will sometimes change the String between new and old values? (even though only 2 events that change the string, one at start and the other when load button is pressed!) This might be related to a flickering/flashing bug that I have seen mentioned in these forums regarding the Edit Box (search for edit box)

    Shame as I thought I'd found a graet way to display text for Universal apps (since I can change the width and height of Edit Box at runtime, as well as font size)
    Roll on the next Beta!
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anybody else getting this with the file I uploaded?
    I've tried rebooting my PC and my Mac and re-exporting the project as a zip again, still happens.

    Tried to debug this myself in XCode - seems like the string which is read byte by byte doesn't have a zero value at the end and runs into other memory! perhaps something was released that shouldn't be?

    Also not sure why Edit Box doesn't format using Center or Right justification - it's an easy enough fix with a couple of lines in XCode - Francois, Andos & Yves let me know if you want the code!

  5. #5
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Forgot to mention that this bug is fixed for next release

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good to know. Thanks Andos!

Similar Threads

  1. List object bug ? control text not work on device.
    By arthurh in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 9th January 2013, 12:54 PM
  2. iOS Edit Box (and normal edit box) not showing up on Device
    By xhedgehogx in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 23rd March 2012, 09:02 AM
  3. Loading a Global Value to Edit Object
    By KingToast in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 16th January 2011, 05:47 PM
  4. Loading an External Text in an Edit File
    By spiderjjr45 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th February 2010, 02:32 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
  •