User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: [Beta] File Stream Object

  1. #1
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    [Beta] File Stream Object

    This extension was requested by Alonso to be able to open files and do stuff with them without loading any part of the file into memory - it keeps the file stream open for you to do your modifications on it. It is great for very large files when you only need to get or change a part of the file. Please post in this thread if you find any bugs.

    Download: http://www.LB-Stuff.com/MMF2/Extensions/FileStream_Beta3.zip
    Working as fast as I can on Fusion 3

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: [Beta] File Stream Object

    If no issues or requests are posted soon then I will release this extension.

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    [Released] File Stream Object

    This object is now released:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=239815
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-onInstall Creator Pro

    Join Date
    Apr 2008
    Posts
    421
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi LB,
    With Thanks again, Besides the memory address of the loaded file which we talked about previously, I have noticed that there is no posibility to place the position of the cursor backwards once the cursor position is already passed a place after a reading. More of control over the stream can be achieved if there are posibilities to set the position of the coursor where it is required as well as to be able to select some defined part of the file to stream for the sake of easy navigation in case, the purpose of using the extension is editorial.


    Regards

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Ah, I don't know why I didn't add that originally. It's on the todo list
    Working as fast as I can on Fusion 3

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    It's been a long time, but I have had requests to make this object Unicode compatible. As a result, I have completely rewritten it in EDIF and added new features to boot. You can download the new version here - consider it to be a beta version for now. First, remove all instances of "FileStream.mfx" from your Fusion directory (they should be in /Extensions/ and /Data/Runtime/), then extract the zip to your Fusion directory. If you want to revert back to the previous version, again you need to remove all instances of "FileStream.mfx" from your Fusion directory (they should be in /Extensions/Unicode/ and /Data/Runtime/Unicode/) and then reinstall the old version from the Extension Manager inside Fusion, or from here.

    Please test it and let me know of any issues. If everything works fine, it will be released officially.

    New features include:
    • Actual error handling - you can now use On Error and be notified of problems and mistakes while working with file streams
    • Unicode support - unicode filenames are supported and you can read and write both UTF-8 and UTF-16/Unicode strings to/from files
    • You can now change the read/write cursor positions before reading or writing
    • More options for string handling, specifically length-terminated strings are now supported in the form of a four-byte integer size preceding the string and no null terminator


    Changed features:
    • The "File is OK" condition will now only be false if the file is in an unrecoverable state. If a read/write error occurred that is recoverable, you can still work with the file, but if this condition is false you must close the file and try again. Typically this could happen if you are reading/writing a file to a flash drive that is pulled out during the operation.


    Removed features:
    • The "clear error state" action is no longer supported because it is no longer necessary - recoverable error states are cleared automatically before each read/write operation. All error types, both recoverable and unrecoverable, now trigger On Error.
    Attached files Attached files
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5SWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SuperDisk's Avatar
    Join Date
    Jul 2012
    Location
    USA #1
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should add named pipe handling to this extension. It's weird---just today I was trying to do that with the old version in the manager. How coincidental.

    But yeah, CreateNamedPipe would be super useful for extension interoperability that requires files yet you don't want to write a temporary file.

  8. #8
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)Firefly 3D Module (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,890
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    Hi, LB!
    I'm now testing your new version. I found issue here.
    "Close File Stream" function weird displays in the he Event Editor, the Event List Editor and the Action Editor.

    This function seems doesn't work if this object inherited from the previous version (I never insert new object and replace events.).

    Attached thumbnails Attached thumbnails Click image for larger version. 

Name:	isue_of_file_stram_v110.jpg‎ 
Views:	132 
Size:	19.9 KB 
ID:	19831  

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    @SuperDisk: It's on the todo list now

    @ASD: Whoops, that was a copypaste error.


    New beta version v1.1.1 is available here which fixes ASD's bug as well as some others that were sent to me privately. Please test again and let me know of any issues.
    Working as fast as I can on Fusion 3

  10. #10
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)Firefly 3D Module (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,890
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    Thanks.
    Confirmed I reported bug fixed!

Page 1 of 2 1 2 LastLast

Similar Threads

  1. File Stream Object
    By LB in forum Released Extensions
    Replies: 2
    Last Post: 16th May 2016, 12:21 PM
  2. iOS video object, how do you stream a movie?
    By Xeeko in forum iOS Export Module Version 2.0
    Replies: 7
    Last Post: 18th October 2012, 07:05 PM
  3. Stream?
    By RhysD in forum Click Convention 2011 (archived)
    Replies: 2
    Last Post: 20th August 2011, 11:03 AM
  4. NSV Stream Object
    By Spryz in forum Extension Development
    Replies: 0
    Last Post: 9th February 2009, 03:13 AM
  5. Continuous Stream?
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th March 2007, 07:50 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
  •