I'm using the ac_trackcycle_console application and I've already enabled the create_server_window option in the the AC_TrackCycle_Console.exe.config.
Which looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
</startup>
<appSettings>
<add key="ac_server_directory" value="G:\assettocorsa"/>
<add key="ac_server_executable" value="acServer.exe"/>
<add key="ac_cfg_directory" value="G:\assettocorsa\cfg"/>
<add key="start_new_log_on_new_session" value="1"/>
<add key="log_server_requests" value="0"/>
<!--<add key="internal_plugins" value="OtherPluginNamespace.OtherPluginType, OtherPluginDLL"/>-->
<!--<add key="external_plugins" value="OtherPlugin, 11001, 127.0.0.1:12001"/>-->
<!--<add key="additional_exes" value="C:\someFolder\some.exe"/>-->
<add key="template_cycle" value=";"/>
<add key="broadcast_incidents" value="0"/>
<add key="broadcast_results" value="10"/>
<add key="broadcast_fastest_lap" value="1"/>
<add key="kick_before_change" value="0"/>
<add key="create_server_window" value="1"/><!-- if AC_TrackCycle crashes because the acServer.exe process can not be killed on track change then set this to 1 -->
<add key="realtime_update_interval" value="1000"/> <!-- values below 1000 don't seem to work -->
<add key="welcome_message" value="Welcome $DriverName$ to $ServerName$!|Please drive respectfully!|Server hosted by Elite Game Servers.net"/>
<add key="session_report_handlers" value="AC_SessionReportPlugin.JsonReportWriter, AC_SessionReportPlugin"/>
<!--<add key="session_report_handlers" value="acPlugins4net.helpers.XmlSessionReportWriter, acPlugins4net"/>-->
</appSettings>
</configuration>
Regarding the error:
14:39:46.827108 [System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host]
at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP)
at System.Net.Sockets.UdpClient.Receive(IPEndPoint& remoteEP)
at acPlugins4net.helpers.DuplexUDPClient.ReceiveMessages()
1. I'm not running the same instance of this Assetto Corsa server twice.
2. I've checked with netstat and the ports configured are not in use (not even by the running instance of Assetto Corsa, which is using less than 1 MB of ram and likely not functioning due to the error).
3. I did notice the UDP_PLUGIN_ADDRESS port is in use, which is used by AC_trackcycle_console.exe
Which looks like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
</startup>
<appSettings>
<add key="ac_server_directory" value="G:\assettocorsa"/>
<add key="ac_server_executable" value="acServer.exe"/>
<add key="ac_cfg_directory" value="G:\assettocorsa\cfg"/>
<add key="start_new_log_on_new_session" value="1"/>
<add key="log_server_requests" value="0"/>
<!--<add key="internal_plugins" value="OtherPluginNamespace.OtherPluginType, OtherPluginDLL"/>-->
<!--<add key="external_plugins" value="OtherPlugin, 11001, 127.0.0.1:12001"/>-->
<!--<add key="additional_exes" value="C:\someFolder\some.exe"/>-->
<add key="template_cycle" value=";"/>
<add key="broadcast_incidents" value="0"/>
<add key="broadcast_results" value="10"/>
<add key="broadcast_fastest_lap" value="1"/>
<add key="kick_before_change" value="0"/>
<add key="create_server_window" value="1"/><!-- if AC_TrackCycle crashes because the acServer.exe process can not be killed on track change then set this to 1 -->
<add key="realtime_update_interval" value="1000"/> <!-- values below 1000 don't seem to work -->
<add key="welcome_message" value="Welcome $DriverName$ to $ServerName$!|Please drive respectfully!|Server hosted by Elite Game Servers.net"/>
<add key="session_report_handlers" value="AC_SessionReportPlugin.JsonReportWriter, AC_SessionReportPlugin"/>
<!--<add key="session_report_handlers" value="acPlugins4net.helpers.XmlSessionReportWriter, acPlugins4net"/>-->
</appSettings>
</configuration>
Regarding the error:
14:39:46.827108 [System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host]
at System.Net.Sockets.Socket.ReceiveFrom(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, EndPoint& remoteEP)
at System.Net.Sockets.UdpClient.Receive(IPEndPoint& remoteEP)
at acPlugins4net.helpers.DuplexUDPClient.ReceiveMessages()
1. I'm not running the same instance of this Assetto Corsa server twice.
2. I've checked with netstat and the ports configured are not in use (not even by the running instance of Assetto Corsa, which is using less than 1 MB of ram and likely not functioning due to the error).
3. I did notice the UDP_PLUGIN_ADDRESS port is in use, which is used by AC_trackcycle_console.exe