Jump to content
The simFlight Network Forums

LUA Error in log file - can it be switched off?


Recommended Posts

Posted

I get errors logged if I send input events that are not subscribed. Here's an example:

   646938 *** LUA Error: C:\FSUIPC7\l_kaha_lua.lua:706: Error sending Input Event 'AS530_COM_VLOC_Khz'

Can I switch error logging off for this? Sometimes I send multipüle input events so it works for different aircraft. Else I would need to have an if else construct which means I have to touch the Lua file for each new aircraft.

Posted
1 hour ago, kaha said:

I get errors logged if I send input events that are not subscribed. Here's an example:

   646938 *** LUA Error: C:\FSUIPC7\l_kaha_lua.lua:706: Error sending Input Event 'AS530_COM_VLOC_Khz'

Does the lua continue or exit with that error?

1 hour ago, kaha said:

Can I switch error logging off for this?

No.

1 hour ago, kaha said:

Sometimes I send multipüle input events so it works for different aircraft.

Input Events, like lvars, are aircraft specific. However, input event names may be shared between aircraft (although they will be different Input Events, and maybe with different values.

1 hour ago, kaha said:

Else I would need to have an if else construct which means I have to touch the Lua file for each new aircraft.

That is what you have to do... If you want to use the same script with multiple aircraft, different Input Events, then just check the aircraft name (offset 0x3D00) and then use/set the name of the appropriate Input Event to use. You can always have a default Input Event to use if the aircraft is not known by the lua script, but if that doesn't work then you would have to edit the lua to add another condition to set the Input Event name for the new aircraft.

Note I have had a severe crash on my development PC (after a Windows Insider Upgrade) and I currently have no access to the FSUIPC source or development environment. Therefore support will be limited for the next week or two while I rebuild my systems.

John

Posted

Ok.

The script does not end, so that's fine.

Maybe there's a way to check if a specific input event is valid for the aircraft loaded?

Good luck with your PC!

Karl

Posted
3 minutes ago, kaha said:

Maybe there's a way to check if a specific input event is valid for the aircraft loaded?

No, but I could add such a function.

3 minutes ago, kaha said:

The script does not end, so that's fine.

So there is no real issue - just ignore the message!

2 minutes ago, kaha said:

Hmmm... I could read the .log file and parse the input events FSUIPC found.

Sounds like overkill - a lot of work for no real benefit.

Posted

Such a function would be very nice to have.

 

5 minutes ago, John Dowson said:

Sounds like overkill - a lot of work for no real benefit.

It's easy.

Posted
1 hour ago, kaha said:

Such a function would be very nice to have.

Ok, but this may take a while...I have other series issues I need to look into, besides rebuilding my PC,  before I can look into any further changes to FSUIPC7.

John

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.