I was doing some research about how to connect and save player data to an SQL database when I stumbled across a tool called IL2ClodCommander. I've been attempting to setup this program to my server, but keep running into errors with the the program such as,
Utilities.getLocation - Exception with Location System.FormatException: Input string was not in a correct format.
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Convert.ToDouble(String value)
at IL2CloDCommander.Utility.Utilities.getLocation(Str ing locationString)
and....
SortieController.sortieBegin - Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)
at IL2CloDCommander.Controller.SortieController.sorti eBegin(List`1 args)
It's defiantly not out of the box compatible anymore, I've already had to edit the dll file to even get it partially working. Do you know of any alternatives to saving player data like this? Unfortunately, I'm not good enough at C# and SQL to make my own program from scratch.
It demonstrates both on how to connect to a (MySql or MariaDb) Database Server, how to access/collect game and player data, and how to integrate it in a Mission (see SampleMission.cs). There's also a README in src/modules/ServerStats.
Bookmarks