Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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?

Thx,

Al

Posted

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.

 

Pete

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.