Advanced Global Values Object

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.
  • This object was requested implicitly by Ryan here:
    Please login to see this link.

    This object allows you to have unlimited, grouped, named global values and strings. Its only improvements over the MMF2 global values system is that at runtime you can create new global values, at both run time and edit time the global values are grouped, and at edit time the values are arranged in alphabetical order.

    You create and remove global values via a text interface, and edit them there too or through their properties directly:
    Please login to see this picture.

    Download: Please login to see this link.

    I will port this to other runtimes if the community takes interest in it.

    Thanks to RickyRombo for his EDIF JSON Generator tool: Please login to see this link.
    Thanks to Andos and Jamie for EDIF: Please login to see this link.

    Working as fast as I can on Fusion 3

    Edited 2 times, last by LB (February 5, 2012 at 7:41 AM).

  • Very nice LB,

    I would love to beable to add more values by right clicking under that category (or having an 'add new variable button'), rather than have to edit the string box, and the same for categories, but you've achieved the main goal of sorting and grouping variables. Very good work.

    Also, a feature request would be nested groups, ie. you could have something like:

    Game values:
    --Started=1
    --Player values:
    ----Players=2
    --Enemy Values:
    ----Enemies=5
    Debug values:
    --Debug=0

    Bug:

    "Get global value / get global group" when retrieving data from the Advanced Global Values object seem to be duplicated. Menu currently displays:

    Values
    Get global value
    Get global value
    Get global group
    Get global group
    Count
    Retrieve fixed value

    Please login to see this link.

    Edited 3 times, last by Ryan (February 5, 2012 at 7:53 AM).

  • This could prove interesting. Downloading now will post some feedback later.

    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

  • Thanks Ryan. While it is possible for me to have a button to add variables, and while it is also possible to have a rename option upon right click, actually choosing rename does nothing and as far as I can tell was designed only for the alterable and global values and wasn't intended for use by extensions. I am going to try and find a good subgroup syntax, because that seems a necessity for large projects. I've also fixed the expression menu for the next version :)

    Working as fast as I can on Fusion 3

  • Okay, dumb question. I know how to create a group using syntax Mygroup: but how do I actually add the values to be listed? Anything I add after that doesn't show up. Do I need a certain punctuation I'm not aware of? Anything I type after that is erased from the text editor.

    Edit: Nevermind I'm dumb lol. I forgot the equal sign.

  • That is pretty handy! Is it possible to have an expression editor like how you compare regular global values in the event editor? Typing it out works, but could speed up work flow a lot.

  • I could modify EDIF to allow the comparison parameter, but I don't think MMF2 will compare floating point values with it. I'll have to ask Yves/Francois if the comparison parameter can work with floats. Having to type in the comparison operator was a temporary workaround just so that it at least LOOKED nice in the condition text.

    Working as fast as I can on Fusion 3

  • It seems people are interested so as soon as this gets its first bug free release I will start porting it.

    New version released with the Please login to see this link.:
    -The global values defined at edittime are now transferred to the runtime (major derp on my part)
    -The global values at runtime are not reset across frame changes and object destroying
    -The menu typos have been fixed

    EDIT: I incremented the version number and reuploaded.

    Working as fast as I can on Fusion 3

    Edited once, last by LB (February 6, 2012 at 12:11 AM).

  • Thanks, this object seems like it will be great but i can't seem to get values back with expressions in a event either, i guess that is what Fanotherpg means also. I have not tested the new version yet though so hopefully it works now. :D

    By the way i have a few quick suggestions -

    1) Some way to get all stored global values and strings as a comma separated text list would be useful. It would be useful to be able to get a groups values and strings like this also. I am thinking this would be great for level editors etc.

    2) Don't use example values as default, if you make a mfa that should hopefully be simple but maybe this is planned already.

    3) It seems when you click the number or string dropdowns to maximize the full lists it hides the other types list, it would be nicer if it just remained open.

    Edited once, last by Atom (February 6, 2012 at 9:38 AM).

  • Just tested the new version and getting the values with expressions works great now. Also adding to the above request/suggestions list...

    4) I was thinking since this seems like a really great way to set values and groups with a main string it would be nice if there was a way to set this with a action. So you could then link it with a string object etc which would be very useful, along with request 1) this would make Advanced Global Values Object the ultimate storage extension i think as you could easily link it with whatever you needed.

    Anyways thanks, this is a really useful object and hopefully you will like my suggestions also. :)

  • 1) Some way to get all stored global values and strings as a comma separated text list would be useful. It would be useful to be able to get a groups values and strings like this also. I am thinking this would be great for level editors etc.

    I am going to add this ;)

    2) Don't use example values as default, if you make a mfa that should hopefully be simple but maybe this is planned already.

    How else should I get people to understand the syntax?

    3) It seems when you click the number or string dropdowns to maximize the full lists it hides the other types list, it would be nicer if it just remained open.

    I cannot change this, you will need to contact Yves/Francois about that to fix it in a future update to MMF2.

    4) I was thinking since this seems like a really great way to set values and groups with a main string it would be nice if there was a way to set this with a action. So you could then link it with a string object etc which would be very useful, along with request 1) this would make Advanced Global Values Object the ultimate storage extension i think as you could easily link it with whatever you needed.

    Yeah, setting from a string will be there too. Just so you now I already have 1&4 done at adittime (this is how it both interprets and generates the list) so it should be simple for me to do it at runtime :)

    Working as fast as I can on Fusion 3

  • I cannot change this, you will need to contact Yves/Francois about that to fix it in a future update to MMF2.

    Ah ok no worries then, it's not really a problem but hopefully if they ever read this thread they could maybe allow this option sometime.

    How else should I get people to understand the syntax?

    I guess it's just my opinion really but when i add object i think they should be clear of content so you don't have to remove each time, you might want to add data via events for example but there would be additional content stored until you go into the properties menu. It's easy enough to delete i guess but i think a help doc showing the text format or a mfa with a included content example would maybe work better.

    I am going to add this ;)

    Yeah, setting from a string will be there too.

    Thanks, that sounds really great. :)

  • I agree with Atom - no default values once this is out of beta. You could use the description, a help file, an example mfa etc to explain how to use it.

    Great extension - well done.

    Please login to see this link. by KetchupMaster - A must have for any web developer!
    Please login to see this link.

Participate now!

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