User Tag List

Results 1 to 9 of 9

Thread: Help With Seperating Values?

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2011
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help With Seperating Values?

    Hi. I am trying to send two values (username/password) in the same message over mooclick to a server that saves the info. How can I get the server (created in mmf)to separate the username and password so I can save it server-side?

    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hi MrXkill,

    well, i' m not realy into making online games. But i assume you could "seperate" the two Strings by a "Delimiter" like , or ;
    for example: "myusername;mypassword"

    On the Server-Side you then have to "split" that String by using the "delimiter"-Character that you have previously specified.

    But as far as coding goes, you need somebody who already did an online-game with Login.

    Greets,

    jahkri

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2011
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Thanks Jahkri. How do you get the string parser to separate the string? I'm gonna make a quick trip the the mooclick tutorial. I recall it doing something like that

    -EDIT-

    I looked back and it still doesn't work. Any ideas? I think Jahkri has the idea, but I don't know how to do it?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hi again MrXkill,

    have you taken a look at the "Tutorials-Section" in the Sidebar just on the Right of the Forum? In the "Advanced Tutorials"-Section there' s a Tutorial called: "Online Registration and Login" written by RickyRombo. Perhaps you could find a proper solution in this Tutorial.

    Anyway, here' s the Direct-Link to the Tutorial:

    http://www.clickteam.com/website/usa/img/uploads/tutorials/download/Registration_tutorial.zip

    Greets,

    jahkri

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    You can use the String Tokenizer extension to split up your string upon receiving it. Supposing you sent a string in the format "Username|Password", you would first want to use the split string action, giving that string as the first parameter, and "|" as the delimiter. You can then use the expression Element$( "String tokenizer", 0) to get the username and Element$( "String tokenizer", 1) for the password.

    Hope that helps.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hey Jaffob,

    thanks a lot for jumping in. I knew i read somewhere about using "Delimiters" to seperate Strings, but i never had to use them and never knew how exactly that they would work...

    So your Information was also realy intersting and helpful for me to. Could be realy useful in the (near) Future. Thanks again and greets

    jahkri

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hey Jahkri,

    Glad I could help. String tokenizing is definitely very useful when making applications (my ExtensionView program is based entirely off this, for example). It's often not really necessary in games, but in can occasionally be pretty handy when dealing with files and data transmission as well.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Nov 2010
    Location
    Switzerland
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hey Jaffob,

    thanks again for your kind words. I use MMF also mainly for App-Development. But sadly i had a long pause in Using MMF. Latest Version i used before V2 was V1.2 and thats realy some Time ago. I started with Klik n' Play in 1995, then came "The Games Factory" and then Multimedia Fusion. I think i was also very active on the Forum at the MMF 1.0 - MMF 1.2 Times. I think i even remember my old Forum-Name. I believe it was "Dolphinboy"

    Perhaps some of the "older" MMF-Guys may remember me... had some interesting discusions in these ol' Times. But i think also many Users have switched their User-Names and sadly i realy don' t remember anybody anymore from these Times.

    Anyway... sorry to have become nostalgic... just overcame me to share some of my rememberings from the ol' TImes.

    Greets (from the Past)

    jahkri

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jan 2011
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help With Seperating Values?

    Hey thanks Jaffob and Jahkri!

    BTW, where can you find the "Split String" Action. When I click it to add an action under a condition all I can do is add delimeters and set source strings.

Similar Threads

  1. Seperating Instance Overlapings
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd April 2013, 02:01 PM
  2. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  3. Seperating Strings On One Dimension Of An Array
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th December 2009, 04:24 AM
  4. Seperating parts of an Alterable string?
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th January 2009, 04:02 AM
  5. Negative values in a List, and Global Values
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th January 2007, 06:08 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
  •