These are the Support Forums for FSUIPC and related products.
These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.
Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.
Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE
WideClient7 does not call the CloseReady1 function
Windows11 msfs2020/msfs2024 with FSUIPC7 on main simulator machine. WideClient7 on 2nd machine.
FSUIPC7.5.7,WideClient7.16, registered version
WideClient connects fine, and processes the RunIfReady1= and launches the process. When Main MSFS closes, WideClient gets the ADBC shutdown message, the Button Matrix goes away, but the CloseReady is not called( spawned process still running. ) WideClient continues to try and reconnect. I cannot find actual documentation that describes in detail the [programs] run1=Ready,Close,..... or the [USER] RunIFReady1= ...., CloseReady1... as it pertains to the WideClient. The same code works fine on the main FSUIPC computer, when MSFS is shutting down, FSUIPC sees this and calls the CloseReady1 or RunIf=Ready,Close,........
Setting [Programs] Run1=Ready,CLose...... causes WideClient to just run without launching anything
This used to work fine until the last several updates.
Posted by: @bcarsThis used to work fine until the last several updates.
WideFS (WideClient and WideServer, which is embedded in FSUIPC) have not changed in many years, so I am pretty sure that this is nothing to do with any FSUIPC updates.
I am away until September and so cannot look into this at the moment. I will take a look in detail when i am back at work next week.
Sorry for the delay,
John
Maybe try with
CloseReady1=Kill
to see if that makes a difference.
Posted by: @bcarsI cannot find actual documentation that describes in detail the [programs] run1=Ready,Close,..... or the [USER] RunIFReady1= ...., CloseReady1... as it pertains to the WideClient.
There is no [Programs] section in WideClient. The documentation is in the WideClient technical manual, which i have attached.
Also, please switch logging back to Errors+. Debug logging logs far too much for this issue.
John
John: I have the technical guide, thanks. I think I may be missing the proper config settings or not understanding how the wideclient is suppose to react. On my server I have allowshutdown=yes. When MSFS ends, fsuipc obviously shutsdown as well. It closes all the RunReadyN programs and any lua programs it started and all is well. It also sends a shutdown to wideclients. ( ABCD, DCBA..)
I wrote a lua script to just monitor and display offset 3320 but it always returns 0.
On my WideClient I have AllowShutdown-App Wide Client is seeing the ADBC (different than abcd or dcba) not sure if a transposition. Anyhow, the debug log shows that it received the fsuipc shutdown, however it does not close any of the lua programs or the CloseReadyN programs, nor does it shutdown itself. Maybe I don't understand the way it is supposed to work.
What I am expecting is that when FSUIPC server on Sim machine shutsdown and terminates its launched pragrams and sends the shutdown to wideclient, that wideclient should inturn close the programs and lua and then terminate, rather than just attempting to reconnect to the server.
What is the proper set of config parms on server and wideclient to accomplish this. ( Note: I don't want them to shutdown the PC, just close FSUIPC and WideClient. Do I need to have something on server side to send a special keycode or something so wideclient knows to shutdown
Bruce
John:
I was finally able to get this to behave as I wanted ( and working as designed)
The Server side [wideserver] needs AutoShutdown=Yes ( to send shutdown message to clients when Sim is closed
(Confusing since doc says this goes in [User] section still in [wideserver] section; I put in [wideserver] main section.
The WideClient side [user] section AllowShutdown=App to close the apps and to shutdown wideclient
When I paired these parameters in the proper areas, the server sent an ABCD message(not the previous ADBC)
54781 Received shutdown offset code = ADBC <M1:L1:C0:H353>
and WideClient said Received shutdown offset code=ABCD. It then closed the lua and RunReady programs, showed the ** end of session ** and terminated.
So as expected, User error.
Bruce
