Is it possible to run arguments in a fusion exe?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I am using the tiled editor for my maps. The editor has a feature that allows for running external programs and passing through arguments (Please login to see this link.)

    This means I could work on my map in tiled, then launch my game from the tiled editor. If fusion allows for passing through arguments, I could also launch my game and load the current map in Tiled. Quite useful for debugging.

    A workaround is to manually edit a txt file that holds the map name, but this would be an extra step.

  • I've never thought of doing it before, but it's certainly a good idea, and I didn't know Tiled had such a feature.
    It doesn't accept command line arguments, but you could use echo to save the result to text, then launch the game and load that saved text.

    chcp 65001
    echo %1> path.txt
    app.exe

    *tiled command line option to specify %mapfile.

    Save it as a *.bat file and run it on the tiled command line.
    If the game has a function to load path.txt at startup, the path will be loaded and the rest is just a matter of loading the files in that path.

  • I've never thought of doing it before, but it's certainly a good idea, and I didn't know Tiled had such a feature.
    It doesn't accept command line arguments, but you could use echo to save the result to text, then launch the game and load that saved text.

    chcp 65001
    echo %1> path.txt
    app.exe

    *tiled command line option to specify %mapfile.

    Save it as a *.bat file and run it on the tiled command line.
    If the game has a function to load path.txt at startup, the path will be loaded and the rest is just a matter of loading the files in that path.

    Thank you. I created the bat file which now successfully creates a new txt file called "path.txt" with the text "ECHO is on." and then runs my game.

    It seems Tiled won't run the bat file for some reason, but I'll test around with it some more.
    Please login to see this attachment.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!