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

Thread: [beta] Structured Data Object (create tree structures with data)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923

    Post [beta] Structured Data Object (create tree structures with data)

    This object allows you to create tree structures with data (named strings and numbers) at each point in the tree.

    The object maintains a bunch of nodes, where each node contains:
    • A constant, unique ID
    • Named references to other nodes
    • Named integers
    • Named floats
    • Named strings
    You navigate to individual nodes and view/modify them, similar to selecting peers and channels in Lacewing. Because the design allows for recursive structures, iteration and saving/loading is by ID.

    Latest beta version always available here: http://www.LB-Stuff.com/MMF2/Extensi...cturedData.zip
    GitHub: https://github.com/LB-Stuff/StructuredData-Object

    I'd like input on the design and terminology as well as bug reports.

    Enjoy!

  2. #2
    Sounds like a fantastic extension!

    The ability to have nodes with references to other nodes sounds great and should allow some nice complex data structures.

    Will give it a go.
    Currently working on Dungeon Dashers.
    Creator of Faerie Solitaire, Stray Whisker, and Dungeon Dash. Known on TDC as AssaultAndy.
    Twitter | Jigxor.com

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA 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)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,666
    Blog Entries
    7
    I assumed Format object would be capable of this...
    Darkwire Software Lead Programmer (C++11 & C#)
    Darkwire Software | Extension List | Open-source extensions

  4. #4
    I think there needs to be an expression to get the number of nodes. Otherwise I can't really see a good way of generating node IDs.

    Also, can you have loops among nodes? i.e. non-tree structured graphs?
    Currently working on Dungeon Dashers.
    Creator of Faerie Solitaire, Stray Whisker, and Dungeon Dash. Known on TDC as AssaultAndy.
    Twitter | Jigxor.com

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    Quote Originally Posted by Phi View Post
    I assumed Format object would be capable of this...
    Format Object is for saving and loading simple file formats. Its support for nesting is only for the creation of formats.
    Quote Originally Posted by netninja View Post
    I think there needs to be an expression to get the number of nodes. Otherwise I can't really see a good way of generating node IDs.
    Node IDs are generated for you. Expressions to get the number of node references/integers/floats/strings will be in the next version since you refer to everything by its name.
    Quote Originally Posted by netninja View Post
    Also, can you have loops among nodes? i.e. non-tree structured graphs?
    Yes, that was the other goal of this object. This feature works already, it is just not obvious how to do it. I will make an obvious way to do it in the next version
    Last edited by LB; 3rd September 2012 at 07:33 PM.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA 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)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,666
    Blog Entries
    7
    Okay, I have a plan for a program using this , but the hiccup is how to display the tree...

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    I am adding iterators as we type

  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 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,666
    Blog Entries
    7
    I mean working out the positions and sizes of the data boxes. There's got to be some formula like the one MS PowerPoint uses...
    Darkwire Software Lead Programmer (C++11 & C#)
    Darkwire Software | Extension List | Open-source extensions

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,923
    The Calculate Text Rect object?

  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 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,666
    Blog Entries
    7
    That'll help a bit actually, but how is the child position calculated with regards to the parent node? What if the child node grows wider?
    I'd be happy to see a demonstration as you don't seem to see the issues that I see.
    Darkwire Software Lead Programmer (C++11 & C#)
    Darkwire Software | Extension List | Open-source extensions

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Ho do I Create a directory and access data from it?
    By PunchyBog in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 31st October 2013, 04:58 PM
  2. Create INI file in Application data folder?
    By King_Cool in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 20th December 2012, 07:37 AM
  3. Data Elements with Build 255 Beta 1
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 3rd September 2012, 10:35 AM
  4. Beta 17: Data Elements
    By Kisguri in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 29th March 2011, 03:11 PM
  5. using binary data at data elements
    By Chokito in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th August 2008, 05:22 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
  •