I am using command line switches to automatically start a multiplayer session when launching P3D v4.4. My launch command looks like this:
Code: Select all
start /d "C:\Program Files\Lockheed Martin\Prepar3D v4" Prepar3D.exe "-net:C:\ProgramData\Lockheed Martin\Prepar3D v4\Multiplayer\MPHost.cfg" "-fxml:C:\Program Files\Lockheed Martin\Prepar3D v4\Scenarios\MyScenario\MyScenario.fxml" "-rolename:PlayerHost"
My MPHost.cfg file looks like this:
[Multiplayer]
; ACCOUNT INFORMATION
AutoStart=2
AutoSignOn=1
AccountLogin=0
LanUsername=MPHost
; SESSION INFORMATION
GameName=Room Name
PublicOnLAN=1
MaxPlayers=16
TimeToStart=0
GameDescription=Description here
AllowJoinInFly=1
AllowProfessionalPlusFeatures=1
JoinWherever=1
JoinInAir=1
JoinAtAirport=1
The session launches correctly and the role is assigned to the host player correctly. I am able to join as a different scenario role from another system as well. However, when I disconnect the second system from the session, the host P3D client crashes (CTD).
I am looking to automate our simulators to automatically host sessions and have clients join and disconnect from the host. I am unsure what could be causing the crashing. There does not seem to be too much information about these [Multiplayer] configuration options. I based my MPHost.cfg off of the default one included with the P3D v4 SDK. The same issue occurs using the default MPHost.cfg as well. I also found a list of P3D Application Settings which has them listed but no details given.
Any help would be greatly appreciated!
-Dexton