User Tag List

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

Thread: OINC File Sender - Source Code

  1. #1
    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)

    OINC File Sender - Source Code

    This is the source code of my file sender as posted in the Community Center. I haven't commented it very much but it shouldn't be too hard to figure out what's going on because I have the code put into groups. The attached mfa file is Dev only, so if you don't have dev you will need to download this non-working version of the mfa without the dev extension I used. Simply replace the areas with the comments made by the Compare Two Gnereal Values conditions with your own events to make it work.

    f you use this code in your game or application, I'd appriciate it if you gave me some credit, but you don't have to

    Enjoy,
    -LB
    Attached files Attached files
    Working as fast as I can on Fusion 3

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    Nice work, need more application and video tutorials for onic !

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    Nice job.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  4. #4
    No Products Registered

    Join Date
    Jun 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    Thanks man, i've been waiting for this example long time ago! i just need to know how it works now!

    [EDIT]
    Hey man, the program didn't work like the original FileSender on your website, it disconnects after verify the file! Maybe it's my update of OINC, what date is the update you use? thanks

  5. #5
    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)

    Re: OINC File Sender - Source Code

    WHich version did you download? If you downloaded the non=dev version it will not work, as you have to make your own events to replace the ones used by the Dialogue Box object. The latest version of OINC can be downloaded from the stickied thread starting with "Update [compiled..."
    Working as fast as I can on Fusion 3

  6. #6
    No Products Registered

    Join Date
    Jun 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    Problem solved, i was using a non updated version of Sphax File Folder object, now all works fine, thanks again!

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Newcastle, England
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    Can I ask why the SendBytesSize is 416 ?

    And what difference does it make if it is set bigger or smaller ?

    Thanks

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    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)Firefly 3D Module (Steam)
    Phi's Avatar
    Join Date
    Jan 2010
    Location
    England
    Posts
    1,964
    Mentioned
    25 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    The bigger it is, the slower it will send. The smaller it is, the more times it will send, but there's a limit. The key is to find the optimum size, where it's not too large to slow the application down (or cause an error) and it's not too small so it runs too many loops. Either is a bad idea, you have to get the right number (no, I don't know it).

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    4096 may be a good size, it's the size of one ram page and the default size of an NTFS file cluster, so it's a number that's often recommended if you need any reading/writing from disk to go as fast as possible.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: OINC File Sender - Source Code

    It can't be over 540 or something - Lacewing's max

Page 1 of 2 1 2 LastLast

Similar Threads

  1. V-Code Generator Source Code
    By LB in forum File Archive
    Replies: 1
    Last Post: 10th March 2008, 08:52 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
  •