John Dowson Posted Friday at 02:56 PM Report Posted Friday at 02:56 PM (edited) Looks like the SimConnect connection hung, almost certainly due to MSFS hanging. I don't thing this is anything to do with FSUIPC7 or the the FSUIPC7 CTD. If this continues, we can also try SimConnect logging, but I would put this down to MSFS for now. If it was an FSUIPC issue, it should not affect MSFS - but MSFS issues will certainly affect FSUIPC. I don't see any error messages relating to the input event 'AS530_GPS_Outer' - did you correct this? Or was it that this was just not used? Could you switch to using the attached exe please. This contains a few minor logging updates/improvements. John FSUIPC7.exe Edited Friday at 03:05 PM by John Dowson Attachement replaced
kaha Posted Friday at 03:30 PM Author Report Posted Friday at 03:30 PM I didn't use 'AS530_GPS_Outer' Ok, I'll use the new .exe.
kaha Posted Friday at 04:52 PM Author Report Posted Friday at 04:52 PM FSUIPC didn't respond on my last flight. Of course, for testing reasons, I maximize inputs to provoke a possible crashcrash. So this time no inputs were possible anymore but it didn't freeze. I had to use tMenu File->Exit to end it. I restarted it and everything was normal again. Here's the log file. FSUIPC7.zip
John Dowson Posted Saturday at 10:34 AM Report Posted Saturday at 10:34 AM There is certainly something strange with that build, as indicated by the strange characters in the lua log messages, which indicates a corruption somewhere when multiple threads are writing to the log. I will check this and provide an updated version, maybe later but probably tomorrow or Monday. John
kaha Posted Sunday at 09:17 AM Author Report Posted Sunday at 09:17 AM On 9/4/2025 at 12:44 PM, John Dowson said: Would be better and more efficient to also have that script auto-ran and modified to use event.param. Your assignments would need to be modified to use LuaValue instead of just Lua. As you have lots of assignments to this. would be easier to just do this by editing the ini - just change "CL16:R" to "CL16:V". John The problem with this is that the value doesn't change. It's a trim value, so pressing the button repeatedly it will always send the same value. But event.param is only triggered if the value changes. Karl
John Dowson Posted Sunday at 11:52 AM Report Posted Sunday at 11:52 AM 2 hours ago, kaha said: The problem with this is that the value doesn't change. It's a trim value, so pressing the button repeatedly it will always send the same value. But event.param is only triggered if the value changes. Yes, I'd forgotten about that. This is on my list to investigate as it should really trigger when you send the same value multiple times. I will see if I can also fix that as well. John
kaha Posted Sunday at 12:14 PM Author Report Posted Sunday at 12:14 PM In the meantime I autostart the script and use "CL16:R". Should still be better than not autostarting the script?
John Dowson Posted Sunday at 12:25 PM Report Posted Sunday at 12:25 PM 1 minute ago, kaha said: In the meantime I autostart the script and use "CL16:R". Should still be better than not autostarting the script? Thee is no point auto-starting the script if its not waiting for an event - it will just run and exit, and maybe adjust the trim when not needed. But please try the attached version. As well as the logging issue (hopefully) being fixed, this should allow repeated LuaValue calls using the same value. John FSUIPC7.exe
kaha Posted Sunday at 12:28 PM Author Report Posted Sunday at 12:28 PM Great, thank you, I'll test it. Karl
kaha Posted Sunday at 05:25 PM Author Report Posted Sunday at 05:25 PM Looking good. Logfile attached. Karl FSUIPC7.zip
John Dowson Posted Sunday at 06:16 PM Report Posted Sunday at 06:16 PM The only anomaly in that log is when trying to set/execute an input event that doesn't exist: Quote ... 92563 [Buttons] 85=PP,0,CIFUEL_VALVE,1.000000 92563 **** Cannot execute empty Input Event ... 1148578 Button changed: bRef=0, Joy=5 (P), Btn=0, Released 1148578 [Buttons] 86=UP,0,CIFUEL_VALVE,0.000000 1148578 **** Cannot execute empty Input Event ... 1318375 Button changed: bRef=0, Joy=5 (P), Btn=0, Pressed 1318375 [Buttons] 85=PP,0,CIFUEL_VALVE,1.000000 1318375 **** Cannot execute empty Input Event ... 7838813 [Buttons] 86=UP,0,CIFUEL_VALVE,0.000000 7838813 **** Cannot execute empty Input Event 7839219 Button changed: bRef=0, Joy=5 (P), Btn=0, Pressed 7839219 [Buttons] 85=PP,0,CIFUEL_VALVE,1.000000 7839219 **** Cannot execute empty Input Event 7839625 Button changed: bRef=0, Joy=5 (P), Btn=0, Released 7839625 [Buttons] 86=UP,0,CIFUEL_VALVE,0.000000 7839625 **** Cannot execute empty Input Event ...
kaha Posted Monday at 06:11 AM Author Report Posted Monday at 06:11 AM John, I have a question concerning LuaValue. I have an autoloaded script that handles my throttle and mixture axes. I use "Send to FSUIPC offset" for those axes and in the script I use event. offset. Is this ok or should I better use LuaValue and event.param? Karl
John Dowson Posted Monday at 07:30 AM Report Posted Monday at 07:30 AM Stick woth writing to the offset and using event.offset.Thats the standard way to use axes values in a lua script.
kaha Posted Monday at 07:54 AM Author Report Posted Monday at 07:54 AM John, something strange happened this morning. I was about to test the C-130 Beta by Blackbird and after starting up normally and everything working FSUIPC suddenly got unresponsive for some time. It didn't crash, but after it responded again some inputs didn't work. Looking at the log it turned out that it had terminated my autostarted scripts. Buttons again worked. This happened at 348594 in the log file. Should I account this to the beta version of the Hercules? Karl FSUIPC.zip
John Dowson Posted Monday at 08:27 AM Report Posted Monday at 08:27 AM 12 minutes ago, kaha said: I was about to test the C-130 Beta by Blackbird The aircraft name logged was "Dirty 30 Short Configuration" which seems very strange... 14 minutes ago, kaha said: FSUIPC suddenly got unresponsive for some time. It didn't crash, but after it responded again some inputs didn't work. Looking at the log it turned out that it had terminated my autostarted scripts. Buttons again worked. This happened at 348594 in the log file. What actually happened in MSFS at this time? Your log indicates that FSUIPC killed the lua scripts as the camera state changed to 32 (which is an undocumented/internal camera state). In MSFS2020, the 'plane in parking state' variab1e is used to determine when a flight is ended and luas need to be killed (as well as performing other tasks needed when an flight is ended). But this is not reliable in MSFS2024, and so an additional check on the camera state was added specifically for MSFS2024, and when certain camera states are received, FSUIPC thinks the flight is ended and will stop the luas. The camera state values were determined by trial and error, and 32 was one of these (even though the exact meaning of this state is unknown). I will do some more tests on this, but I will remove 32 from the list that determine a flight has ended. I have done this in the attached version. John FSUIPC7.exe
kaha Posted Monday at 08:35 AM Author Report Posted Monday at 08:35 AM I didn't do anything wired when this happened. I'll try to reproduce.
John Dowson Posted Monday at 08:45 AM Report Posted Monday at 08:45 AM 6 minutes ago, kaha said: I didn't do anything wired when this happened. I'll try to reproduce. Just wondered what you saw when the camera state when to 32. Anyway, I have removed this now in that last exe. There is another camera state of 36 that will also cause luas to be killed which might also need removing. As I said, I will do some testing later today - I haven't looked at this since the latest SU update and these things tend to change on each release... John
kaha Posted Monday at 08:49 AM Author Report Posted Monday at 08:49 AM I used my normal camera views that I always use. Nothing special.
John Dowson Posted Monday at 09:34 AM Report Posted Monday at 09:34 AM 39 minutes ago, kaha said: I used my normal camera views that I always use. Nothing special. The camera state is not just the views, it is what is displayed in the MSFS main window, so can be Menu, World Map, Hanger, Waiting, etc As I said, 32 is undocumented (internal only) so just wondered why it hit that state when you were (probably) in a cockpit view (state 2). Its not important - just wondered if you had noticed anything in MSFS, apart from FSUIPC becoming unresponsive (as it was killing the luas).
kaha Posted Monday at 09:44 AM Author Report Posted Monday at 09:44 AM Ok, I see. I didn't pay attention if the sim itself got unresponsive like, maybe, pressing Esc. All my inputs, also all camera view changes are bound in FSUIPC.
kaha Posted Monday at 11:29 AM Author Report Posted Monday at 11:29 AM Something else: Starting with 7.5.5d September 7th I sometimes see the following problem. FSUIPC starts up normally while the sim is still in Menu. After loading a flight it seems FSUIPC cannot connect. FSUIPC is alive, I can show the window. Also the sim is responsive. I then exit FSUIPC, restart it and it works normally. Please see the .log file attached. This happens with different aircraft. FSUIPC7.zip
John Dowson Posted Monday at 12:18 PM Report Posted Monday at 12:18 PM This looks to be because you are pressing a button that starts a lua thread far too early - well before the aircraft is loaded and before FSUIPC is fully initialized. This looks to be confusing SimConnect and interfering with the initialization. You should really not be doing anything until AFTER you have pressed the Ready-to-Fly button. I also don't think this is related to any of the recent changes. FSUIPC should really ignore such early button presses. Not sure why it is actioning those button presses when they should be ignored. I will take a look to see if I can prevent this. But you should wait until the aircraft is fully loaded and after you have pressed the ready-to-fly button before doing anything, and really it is better to wait until all lvars have loaded, which will be several seconds after you the cockpit view is loaded. John
kaha Posted Monday at 12:34 PM Author Report Posted Monday at 12:34 PM I understand. But I'm not pressing any buttons before the flight is loaded. Maybe some USB devices send some button states anyway? This never happened before 7.5.5d September 7th. Karl
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now