User Tag List

Results 1 to 7 of 7

Thread: Sending files with MooClick and MooGame

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Location
    Spain
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending files with MooClick and MooGame

    I remember that somebody was asking for a way to do this. Well, working in my current project I've figured an easy way to do it.

    MooGame and MooClick can send and receive strings. All you've got to do is encode your file the same way that is encoded often when you send an email: in base64.

    How? If you use the binary object, you can load a file and encode it to base64. As a result, you obtain a file that is pure TEXT, composed by lines of 76 characters. You can send the lines one by one (or in bigger blocks), and in the destination only need to make a text file that contains all of these lines. Later you open it with the binary object, and decode from base64 to normal binary mode.

    Hope it helps somebody!

    Greetings!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending files with MooClick and MooGame

    Yes I have known about this method for some time but don't use it because the text can be huge and has anyone actually created a way of sending 10 megs worth of data in base64? I still think that sending a binary file would be quicker.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Location
    Spain
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending files with MooClick and MooGame

    Well, the base64 file size is about 33% bigger than the original, but hey, 33% it's not that bad if the file is not huge.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Sending files with MooClick and MooGame

    Yes, last time this was discussed I suggested it should be encoded using the Binary object with the help of the Binary Quickload object. Before sending the file you should state the size of the transmission, and you could perhaps use checksums (MD5 or other) to ensure the file was transferred correctly.
    .:::.Joshtek.:::.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending files with MooClick and MooGame

    "Well, the base64 file size is about 33% bigger than the original, but hey, 33% it's not that bad if the file is not huge. "
    To fix: Before Base64'ing the file, use binary objects ZLib compression method (you should also be able to use this to make zips without a 3rd party zip extension so long as the header is correct) and it makes it much smaller. Base64 size of a 1.4MB .xm music file is 2MB, it goes down to 0.7MB with ZLib compression

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Location
    Spain
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending files with MooClick and MooGame

    Good idea!

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Sending files with MooClick and MooGame

    "Good idea!"
    Feel free to fix: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=40282&Main=4028 2#Post40282
    I think the problem lies within ZLib decompression and such

Similar Threads

  1. One mooclick and moogame in same frame?
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th November 2007, 02:25 PM
  2. Very basic Moogame/Mooclick question
    By Taofeld in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th September 2007, 11:56 PM
  3. Moogame/mooclick choosing from ultiple characters
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 10th September 2007, 05:46 PM
  4. X and Y Sending and Receiving with MooClick
    By AusZero in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 26th March 2007, 03:16 AM
  5. MOOGame, MOOClick or another MOO
    By Greg in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 21st March 2007, 10:18 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
  •