Jump to content
The simFlight Network Forums

Syntax Checking Lua Scripts

Recommended Posts

I am learning how to write Lua scripts for use with FSUIPC. Is there a Lua syntax checker that anyone would recommend that will check for basic errors and thus help with debugging?


Well, with most of the lines you'll use with FSUIPC or WideClient there'll be calls to library functions which only exist in those programs. so the best bet is simply to run it in FSUIPC (assign a keypress for it), and check the log. You can have the Lua log separate from the FSUIPC log by checking that logging option in FSUIPC.


Once you get the syntax correct you can use the Debug/Trace option to trace through its actions -- the log will show the line numbers and the values of variables when they change.



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.