Format Object - Beta

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • After showing an early development beta version to a few people, I have completely re-written this extension in EDIF.

    The Format Object allows you to define a file format, then use that format to save and load files. Formats can be made up of bytes, shorts, integers, 64-bit longs, float, 64-bit doubles, and strings with either a size or a null terminator. Additionally, a format can contain in itself another format (it is recursive) so that you can break up even the most complex formats into simpler ones. You can also control how many times a sub-format is used to read data from the file, be it 0 or 65537 times.

    This is the example MFA file from in the zip:
    Please login to see this link.

    Download link will be maintained here, beta or not: Please login to see this link.

    There is a brief flurry of helpful dialogs in the properties, which can easily be accessed from the event editor. This is just until I get a help file going.

    If you have any questions on how to use it, refer to the example or ask here.

    Enjoy!

    Working as fast as I can on Fusion 3

    Edited 2 times, last by LB (March 11, 2012 at 4:23 AM).

  • First thing that comes to mind is a [censored due to possible profit]. This'll be epic for [censored for likewise reasons] and [censored just to annoy readers].

    It's an epic idea by an epic guy.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Jamie's only role in this extension's development was making the EDIF SDK ;)

    My complement would be toward the person who made the most code of the object.
    You can still weasel your way out of that too.

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Quote

    0 or 65537 times

    LB, I am curious as to your view on this apparent 'number' 0...

    Great extension btw! ;D

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Haha, Eliyahu admitted he was joking about that a long time ago.

    Anyway, I've updated the link to version Beta 2 - I've added support for plain out raw data that does not have a format. You interact with it through its memory address - see the example MFA.

    Same link as the first post: Please login to see this link.

    Working as fast as I can on Fusion 3

  • I am wondering if the image can be used by either active picture object, tilemap object, or active object.

  • This is really cool, but there's one feature I really wish it had: either a dialog, where you could set up your format in a visual display, or a text property where you could put in some kind of text format which would get interpreted into a file format. A bit like a C++ Struct, maybe, but simpler.

    Otherwise, trying to create a struct in MMF through action after action after action is painful XD. It also feels a little hard to read on the screen. One nice touch could be to change the strings which show up in the editor, so instead of the lengthy textual representation shown Please login to see this link., you could have something like this:

    Create format: "Main"
    --- CustomFormat - Game Settings
    --- Byte - Lives
    --- String - Player Name
    --- Float - Player IQ
    --- String - Signature

    Something like that. It'd make it instantly readable, which is one of the nice benefits of the old C-style struct. Just a thought :)

  • This is really cool, but there's one feature I really wish it had: either a dialog, where you could set up your format in a visual display,

    That's a long way off, I'm afraid.

    or a text property where you could put in some kind of text format which would get interpreted into a file format. A bit like a C++ Struct, maybe, but simpler.

    That's for the very next version ;)

    Otherwise, trying to create a struct in MMF through action after action after action is painful XD. It also feels a little hard to read on the screen. One nice touch could be to change the strings which show up in the editor, so instead of the lengthy textual representation shown Please login to see this link., you could have something like this:

    Create format: "Main"
    --- CustomFormat - Game Settings
    --- Byte - Lives
    --- String - Player Name
    --- Float - Player IQ
    --- String - Signature

    Something like that. It'd make it instantly readable, which is one of the nice benefits of the old C-style struct. Just a thought :)

    I don't entirely think that's possible to do. For one thing MMF2 doesn't handle line breaks in the action text, and for another actions can't communicate with each-other to know how much spacing to have. I like the idea, but how would you implement it?

    Working as fast as I can on Fusion 3

  • I mean instead of "Add Byte '%0' to last format", the display string for your action would be "--- Byte - %0"

    So instead of:
    Add Byte "This" to last format
    Add Byte "That" to last format
    Add Byte "Fred" to last format
    Add Byte "Bill" to last format

    It would look like:
    --- Byte - This
    --- Byte - That
    --- Byte - Fred
    --- Byte - Bill

    So it's not one action with four lines, but four actions :) Just a different naming convention, in essence.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!