User Tag List

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

Thread: I am such a damn noob

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Question I am such a damn noob

    I feel like one of the noob kids who used to drive me crazy asking me what they were doing wrong with XCode...

    I have an extension which just has conditions, with no parameters, no actions, no expressions etc., just some conditions. When I run MMF it tells me 6:34: Unexpected ']', but I'm sure they're all in there. Everything's working beautifully on the iOS end so it's driving me crazy. Here's my JSON:

    {
    "About":
    {
    "Name": "iCade Object",
    "Author": "Sam Beddoes/DistantJ",
    "Copyright": "Copyright © 2012"] Sam Beddoes",
    "Comment": "Adds the ability to read iCade and other bluetooth controllers to the iOS runtime.",
    "URL": "http://www.freakzonegames.com/",
    "Help": "Help/iCade/Help.chm",
    "Identifier": "icad"
    },

    "ActionMenu":
    [
    ],
    "ConditionMenu":
    [
    "Separator",
    [0, "Joystick is pressed UP"]
    ],
    "ExpressionMenu":
    [
    ],

    "Actions":
    [
    ],
    "Conditions":
    [
    { "Title": "%o: Joystick pressed UP",
    "Triggered": false
    }
    ],
    "Expressions":
    [
    ]
    }

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    "Copyright © 2012"] Sam Beddoes"


  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    AHAHAHA!! Holy crap! I didn't even notice that! I think that's come from an accidental click on the laptop trackpad while I was typing. The topic title goes double now! Thank you ProdigyX! Let's do this.

    For multiple conditions down the bottom there, I'm guessing the JSON syntax is to [{separate},{curly},{braces},{with},{commas?}]

  4. #4
    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)
    Quote Originally Posted by DistantJ View Post
    For multiple conditions down the bottom there, I'm guessing the JSON syntax is to [{separate},{curly},{braces},{with},{commas?}]
    Yes. For a quick syntax reference, there's json.org which has pretty pictures, and in terms of EDIF there's the JSON tutorial which is slightly finished: https://github.com/ClickteamLLC/wind...ating-the-JSON
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks I have used JSON before in development but I wasn't sure with those as they weren't numbered like they are everywhere else. I did use the documentation there Nice to have a full reference though.

    Anyways, I got the Windows side of the extension sorted, so tomorrow I'll take my XCode programming and link them up. Thanks for helping here! The documentation was brilliantly helpful as was everyone here, I was able to pick it up pretty quickly to the point that I can apply anything I've learned in C++ to an Action, Condition or Expression. Great stuff. The only thing I'm still a little nervous about are the properties, properties.cpp seems a little jumbled and I appreciate that the documentation for that section isn't ready yet. I'll try my best not to be a pain asking about it the whole time.

  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)
    I actually did my best to organize the properties stuff and make the comments helpful - they're actually not all that bad once you get into them, but it takes a little starter fluid.

    Essentially you just need to decide what properties you want, add whatever variables you want to store the properties in to the class in EditData.hpp, and then you can delve into Properties.cpp. EditData.hpp is just a recommendation though - it makes it easier (for me) to deal with the edit data. As you'll see in the serialize/deserialize functions, the edit data for extensions is actually just a flat C struct that you have to ask MMF2 to resize, and whatever the memory contents of the struct are is what will be saved to the hard drive embedded in the MFA. It's a mess, but I tried to at least direct the flow of mess through the most logical path.
    Working as fast as I can on Fusion 3

  7. #7
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Ah I see what you've done now, I declare my variables at the top there and then create them in each of the three structs. I've not seen "from.variable" used before, is this a C++ function or a class?

  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)
    Quote Originally Posted by DistantJ View Post
    Ah I see what you've done now, I declare my variables at the top there and then create them in each of the three structs.
    If by "variables" you mean "property identifiers" in the enum, then yes. I don't know what "three" structs you're talking about though, there is only the EditData structure.
    Quote Originally Posted by DistantJ View Post
    I've not seen "from.variable" used before, is this a C++ function or a class?
    I assume you're talking about the copy constructor?
    Code:
    	EditData(const EditData &from) // : MyString(from.MyString), MyInt(from.MyInt), MyArray(from.MyArray)
    	{
    		//
    	}
    "from" is the name of the parameter, and the "variable" in "from.variable" is literally just the name of the member you are accessing. It's just the usual dot operator, I guess you didn't realize the parameter name was "from"?

    If you're confused about the syntax after and involving the colon : then I suggest looking up C++ copy constructors
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Oh man... >_O I completed a 60 video course on C++ but obviously I've still missed some stuff. I may go out and get myself a nice thick C++ book. I was looking at it like a class/object, you know, like myobject.variable=

    For now I literally just need two string properties, AppID and AppSignature, which I can call in my Objective-C through CRun.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. noob needs help w resolution :)
    By mushroomsuzuki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th October 2013, 02:29 AM
  2. Uh.. noob here, need some help
    By Slifer in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th March 2010, 05:04 AM
  3. Another Noob Question
    By AidanHawke in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th January 2009, 10:13 PM
  4. noob need help,
    By Martin in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 4th January 2008, 05:48 AM
  5. Noob needs help
    By Whee in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 10th February 2007, 07:49 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
  •