Writing a language interpreter in Fusion

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 had an interesting idea for a program. Essentially, I want the user to be able to import a text file into my Fusion program and the program would read commands in the file and do actions.

    For example if I entered "mouseClick(left)" Fusion would click, or "mouseMove(123,456)" Fusion would move the mouse accordingly, or if I had "if (RGBat(234,567) == 255) then mouseClick(left)" Fusion would execute it.

    Is this possible?

    Right now I'm using an ini file and it's just not enough. Is there a language such as LUA that I would be able to accomplish this with? And be able to write commands and simple if-then statements?

    Thanks!

  • It is an interesting idea.

    If it's only simple things it could be done by parsing (String Parser Object). But anything above this... Be careful not to waste your time.

    Please login to see this link.

  • I wrote a language interpreter in MMF2 a couple of years back. It was for a point and click noir investigator game to be released on iPhone. It worked and ran well, but I lost/quit the job not long after beta due to other MM2/iOS limitations.

  • Thank you both for your insightful comments. I was thinking of using the string parser, tompa, and have come quite far with it so far. But it does have its limitations for sure. ChrisBarrows, this is interesting. Do you still have a small sample of your MFA you could share?

  • I believe there's a Lua object, though I've never used it and don't know how it ties into Fusion actions.

    I've also written a parser for an adventure game before - the basic idea is that you run a fastloop to interpret each line, which has a command and a couple of parameters, then pass those parameters to Fusion actions. I wrote an overview here: Please login to see this link.

    Please login to see this link.
    Please login to see this link.

Participate now!

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