User Tag List

Results 1 to 4 of 4

Thread: Edit object makes invalid character when saving

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Edit object makes invalid character when saving

    Hi.

    I'm using the Edit Object to save a text file. However, when I do this, the edit object adds an extra invalid character. Now normally you wouldn't be able to see this character in Notepad, but as I launched up the saved text file in Notepad++, the character appears to be a "NUL" value. Anyways, this wouldn't be of any problem if it wasn't because this character generates errors in LUA. Yes I've tried removing the character and then the errors disappear.
    The errors are:
    Code:
    attempt to call a string value
    attempt to call a nil value
    I really need to figure a way to remove this character inside MMF2, or find a way to make the edit object not generate this extra character.

    Thank you.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Edit object makes invalid character when saving

    Yes, for some reason a NULL (0x00) byte is added to the end of saved .txt files.
    .:::.Joshtek.:::.

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit object makes invalid character when saving

    i wonder what happened to crag's edit object since i believe it didn't do this (maybe MMF uses null-terminated strings and doesn't strip the nulls when it savs files)

    you might be able to use the binary object to reload the save file and resave it at its current length minus one byte

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit object makes invalid character when saving

    Found an easier way.
    Loaded up the txt in the list object, and made it search and delete all "" lines.

    That fixed it

Similar Threads

  1. [BUG 256-6] Loading text into Edit Box always adds an extra character on device
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 28th November 2012, 05:41 PM
  2. PLEASE HELP with saving character position!
    By 38cjc38 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th October 2011, 09:01 AM
  3. Blend Coefficient makes object disappear!!
    By Paul_Boland in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 1st September 2011, 04:06 PM
  4. Edit Box disable invalid characters
    By lordzero in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd May 2009, 11:01 PM
  5. Extracting a line from Rich Edit Object or Edit Ob
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th March 2008, 05:16 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
  •