Jump to content
The simFlight Network Forums

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
  On 6/26/2025 at 1:12 PM, 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'

Expand  

Does the lua continue or exit with that error?

  On 6/26/2025 at 1:12 PM, kaha said:

Can I switch error logging off for this?

Expand  

No.

  On 6/26/2025 at 1:12 PM, kaha said:

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

Expand  

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.

  On 6/26/2025 at 1:12 PM, 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.

Expand  

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
  On 6/26/2025 at 2:48 PM, kaha said:

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

Expand  

No, but I could add such a function.

  On 6/26/2025 at 2:48 PM, kaha said:

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

Expand  

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

  On 6/26/2025 at 2:50 PM, kaha said:

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

Expand  

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

Posted
  On 6/26/2025 at 3:02 PM, kaha said:

Such a function would be very nice to have.

Expand  

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.