User Tag List

Results 1 to 3 of 3

Thread: Building stand-alone app??

  1. #1
    No Products Registered

    Join Date
    Jul 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Building stand-alone app??


    Is there any way to build a stand-alone .exe of a game (which contains a number of videos, sounds, etc.) that can run on a different computer, without building an installer? The game was developed using media files stored on a usb thumb drive, so when you put it in another computer, it's a different drive (D: vs. F:, for example) and the file paths don't work, so the game really doesn't work (does that make any sense?). What's the most efficient way to work around this?

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

    Re: Building stand-alone app??

    You should never "hardcode" paths to access a resource.
    In MMF2 you have some expressions to get the current drive and folder in which your application runs.
    You should use the AppPath$ expression.
    Example:

    Load image: AppPath$ + "myImage.jpg"

    If your exe is located at "D:\somefolder\mygame.exe", then AppPath$ will return "D:\somefolder\". In the previous example that would result in "D:\somefolder\" + "myImage.jpg" = "D:\somefolder\myImage.jpg"

  3. #3
    No Products Registered

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

    Re: Building stand-alone app??

    I would add that you can hard-code sub-folders in your application if you need to.

    As per Andos' example, you could use AppPath$ + "media\" + "myfilename.jpg". And you could go deeper if needs be: "media\sound\" and "media\graphics\", etc.

    It depends on how organized you want to be with a project. Throwing everything in the main folder of your application is ok, but organizing things can be useful for the developer and more polished looking.

    I just wanted to point out that as long as you keep to the AppPath$ and use the slashes correctly, MMF2 is very flexible without using an installer as long as the folders are created by the application, (using File Object) or present when the user places the main folder.

Similar Threads

  1. stand alone
    By beydman in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th June 2011, 02:13 PM
  2. Error when building stand-alone Mac application
    By Michael_Nelson in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th October 2010, 12:01 AM
  3. building a stand-alone exe
    By ac3raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 18th May 2010, 06:15 AM
  4. Using sub-app with stand-alone...?
    By camelman in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 2nd May 2009, 03:51 PM
  5. Can a stand-alone app work without building it...
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th December 2008, 12:15 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
  •