=IL2AU=chappyj Posted March 24, 2018 Posted March 24, 2018 26 minutes ago, coconut said: New version 1.16.5.0 of the dynamic campaign: v1.16.5.0 Compatibility with IL-2 version 3.001: Added option UseTextMissionFile to use textual mission files instead of msnbin files. Needed because resaver in 3.001 generates files DServer can't read. Missions are now published in <ServerDataDir>/Multiplayer/Dogfight. Two sets of files suffixed respectively with _1 and _2 are created. Use these two in the rotation in the DServer config file. Because of locked files, the currently running mission files cannot always be updated, but the other set can, and it's that set that is used when the server rotates the missions. Adjusted durability of static objects with strategic value. https://bitbucket.org/johdex/sturmovikcampaign/downloads/SturmovikCampaign-1.16.5.0.zip Sorry, I'm just seeing this. That's a good idea. Fantastic ! I'll spin it up tonight au time for a trial
=IL2AU=chappyj Posted March 25, 2018 Posted March 25, 2018 (edited) 2 hours ago, coconut said: New version 1.16.5.0 of the dynamic campaign: v1.16.5.0 Compatibility with IL-2 version 3.001: Added option UseTextMissionFile to use textual mission files instead of msnbin files. Needed because resaver in 3.001 generates files DServer can't read. Missions are now published in <ServerDataDir>/Multiplayer/Dogfight. Two sets of files suffixed respectively with _1 and _2 are created. Use these two in the rotation in the DServer config file. Because of locked files, the currently running mission files cannot always be updated, but the other set can, and it's that set that is used when the server rotates the missions. Adjusted durability of static objects with strategic value. https://bitbucket.org/johdex/sturmovikcampaign/downloads/SturmovikCampaign-1.16.5.0.zip Hi mate, Tried setting it up just now and am getting an error i got with previous version 1.16.0 On campaign reboot i get a couple of errors that don't cause it to stop/crash that are "Failed to generate situational map" It starts a mission. But, come time to generate the next mission i end up with a stopped/crashed servercontrol with "Execution aborted due to failure: Method not found: 'Void MapIcon..ctor(system.numerics.Vector2, MapIconSymbol, Microsoft.FSharp.Core.FSharpOption`1<System.String>, Microsoft.FSharp.Core.FSharpOption`1<System.String>, Single, TeamColor)'. I'm guessing this may be to do with missionplanner export map perhaps Which was added limited funct in earlier version but I've not seen a way to setup Edited March 25, 2018 by =IL2AU=chappyj
coconut Posted March 25, 2018 Author Posted March 25, 2018 8 hours ago, =IL2AU=chappyj said: But, come time to generate the next mission i end up with a stopped/crashed servercontrol with "Execution aborted due to failure: Method not found: 'Void MapIcon..ctor(system.numerics.Vector2, MapIconSymbol, Microsoft.FSharp.Core.FSharpOption`1<System.String>, Microsoft.FSharp.Core.FSharpOption`1<System.String>, Single, TeamColor)'. You need the latest version of SturmovikServerControl, which I had forgotten to publish at the time: https://bitbucket.org/johdex/sturmovikservercontrol/downloads/sturmovikservercontrol-1.9.0.0.zip
=IL2AU=chappyj Posted March 25, 2018 Posted March 25, 2018 15 hours ago, coconut said: You need the latest version of SturmovikServerControl, which I had forgotten to publish at the time: https://bitbucket.org/johdex/sturmovikservercontrol/downloads/sturmovikservercontrol-1.9.0.0.zip cheers, i confess i looked at the date on that the other day and thought i already had it. Installed and all working The only error i get now (which i've gotten for a while and seems non critical) is the text reader sometimes fails due to 'wrong start date' My suspicion is its to do with GMT versus local time and the time stamps on the logs?
=IL2AU=chappyj Posted March 27, 2018 Posted March 27, 2018 (edited) On 3/25/2018 at 7:10 PM, coconut said: request... i think the dynmission is locking custom skins by including 0..99 in the skins element for each plane.. or by some other means. I've isolated to the mission file rather than the sds by taking the same sds and adding my own mission into it and i'm able to access custom skins. is it possible to change this? If not i'll work around it with a mod to custom skin the default skins Edited March 27, 2018 by =IL2AU=chappyj
coconut Posted March 27, 2018 Author Posted March 27, 2018 Clearing the skin field is worth a try, but I'm a bit surprised that the SDS setting doesn't override this.
=IL2AU=chappyj Posted March 27, 2018 Posted March 27, 2018 i'm not sure what else would cause it. let me know if you see the same behaviour is your server set to custom locked or unlocked in sds?
coconut Posted April 7, 2018 Author Posted April 7, 2018 New version 1.11.1.0 of SturmovikServerControl https://bitbucket.org/johdex/sturmovikservercontrol/downloads/sturmovikservercontrol-1.11.1.0.zip Added ability to ban and unban individual players by name or player GUID Added search of players, by player name or by player GUID Both features are only available to admins
AKA_Scorp Posted April 9, 2018 Posted April 9, 2018 Coconut thank you for sharing the product of what must have been hundreds of hours of work. Words can't express how grateful I am. I spent a good part of the weekend getting a server with the controller and campaign working by following the instructions, reading this forum and searching for typo's I made. I already had VS2015 on the server and added MSBUILD and F# 4.0, if I build another server are those required or is there a way to just use runtimes? Thanks 1
coconut Posted April 9, 2018 Author Posted April 9, 2018 Runtimes should be enough. I forgot, with the latest release you might need to install sql server ce 4.0
56RAF_klem Posted April 20, 2018 Posted April 20, 2018 I have followed the installation instructions but when I run SturmovikServerControl.exe I get the following message: Unhandled Exception: System.ArgumentException: The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. I appear to have Microsoft Framework version 4.00 installed. Which version do I need for this please?
56RAF_klem Posted April 21, 2018 Posted April 21, 2018 Thanks coconut, I didn't make the connection. I'm pretty sure I've set the .yaml files up ok but when I run the SturmovikServerControl I get an error message: 2018-04-21 07:54:48.0555|ERROR|<StartupCode$SturmovikServerControl>.$SturmovikServerControl.ServerState|Failed to load type 'Campaign.ServerControl.plugin' from assembly 'H:\Campaign\bin\Campaign.dll': 'Object reference not set to an instance of an object.' I wondered if it was to do with the sds file. I have put a copy of the sds in the \data\sds\ folder as the Config.yaml requires: # SDS file, relative to data dir ServerSdsFile: sds\KubanDynamicCampaign.sds I also tried ServerSdsFile: \sds\KubanDynamicCampaign.sds Also the installation.txt says : "Set the mission to run to DynCampaign" I assume that means set it to the location of my .msnbin file? and you make reference to C:\il2\data\logs I assume that's the logs folder of the game installation or do I create that folder?
coconut Posted April 21, 2018 Author Posted April 21, 2018 Have you installed the campaign plugin? Please also check that the dll isn't blocked. ZIPs downloaded from the net often need to be unblocked.
AKA_Scorp Posted April 21, 2018 Posted April 21, 2018 Hi Klem, I was getting an error something like that because I didn't have the Campaign.ServerControlPlugin.Plugin set correctly, I had it as Campaign.ServerControl.plugin CampaignPluginAssembly: D:\BoXCampaign\Campaign\bin\Campaign.dll CampaignPluginType: Campaign.ServerControlPlugin.Plugin CampaignPluginConfig: D:\BoXCampaign\Campaign\bin\Config.yaml Quote Also the installation.txt says : "Set the mission to run to DynCampaign" I assume that means set it to the location of my .msnbin file? In the sds file I have the missions set to : [rotation] random = false file = "Dogfight\DynCampaign_1" file = "Dogfight\DynCampaign_2" [end] The generator creates them. Quote and you make reference to C:\il2\data\logs I assume that's the logs folder of the game installation or do I create that folder? Just set this in the startup.cfg file in the game data folder: text_log_folder = "logs\" The game will create the folder if it is not already there. In the data folder you made (not the game data folder) you need to create folders \Multiplayer\Dogfight and \Logs. Hope that helps. One other thing, unless you are running two servers get rid of the Secondary instance, my config file for the controller looks like this: Server: ControllerUrls: - http://localhost:8089/ AdminPasswordHash: QgAux80bnwBn3KLkCCS9I+qga4J6TVEn6vrFR54JbJiGoOC Instances: - Name: Primary Description: AKA Dynamic Campaign ServerHostname: localhost ServerPort: 8992 Login: mylogin Password: mypassword OffLoadServerInput: ReqKill GameDirectory: D:\BoXCampaign\IL2 LogDirectory: D:\BoXCampaign\IL2\data\logs CompactedLogDirectory: D:\BoXCampaign\IL2\data\binlogs ProcessedLogDirectory: D:\BoXCampaign\Data\Logs CampaignPluginAssembly: D:\BoXCampaign\Campaign\bin\Campaign.dll CampaignPluginType: Campaign.ServerControlPlugin.Plugin CampaignPluginConfig: D:\BoXCampaign\Campaign\bin\Config.yaml 1
56RAF_klem Posted April 22, 2018 Posted April 22, 2018 AKA_Scorp many thanks, I really appreciate your help. I've did all you wrote, see attached uploaded as a .txt file. Then I got: 2018-04-22 11:57:42.6507|ERROR|<StartupCode$SturmovikServerControl>.$Main|main: GameDirectory of instance 'Primary' 'H:\Campaign\IL-2' does not exist 2018-04-22 11:57:42.6787|ERROR|<StartupCode$SturmovikServerControl>.$Main|main: LogDirectory 'H:\Campaign\data\Logs' of instance 'Primary' does not exist 2018-04-22 11:57:42.6787|ERROR|<StartupCode$SturmovikServerControl>.$Main|main: CompactedLogDirectory 'H:\Campaign\data\Binlogs' of instance 'Primary' does not exist 2018-04-22 11:57:42.6787|ERROR|<StartupCode$SturmovikServerControl>.$Main|main: ProcessedLogDirectory 'H:\Campaign\data\Logs' of instance 'Primary' does not exist These all seem to be called from the Config file. To fix this, I did this: I've added folder \IL-2 to make H:\Campaign\IL-2 (not sure what \IL-2\ is for) I've added folder \Logs to make H:\Campaign\data\Logs I've added folder \Binlogs to make H:\Campaign\data\Binlogs I've capitalised \logs to \Logs to make H:\Campaign\data\Logs I'm running it from a cmd window but it opens another and I still getting a yellow message too fast to read before the second window closes. So, just to clear a few queries in my mind: What is folder \Campaign\IL-2\ for? There is nothing in it except Logs and Binlogs folders and I have those under \Campaign\data\ Is folder \Campaign\data\Multiplayer\Logs needed or is it a mixup with \Campaign\data\Logs? Where do I put the original mission file I created in IL-2 STEditor? Yours in confusion Config.txt
AKA_Scorp Posted April 22, 2018 Posted April 22, 2018 (edited) Quote I've added folder \IL-2 to make H:\Campaign\IL-2 (not sure what \IL-2\ is for) This is your game folder, I copied everything over from my game installation over to here, it makes life a lot easier if the path to your game has no spaces in any of the folder names. Once copied over make a folder called sds in the H:\Campaign\IL-2\data folder and put your campaign.sds file in there. These line: LogDirectory: CompactedLogDirectory: Need to point to new game installation, in your case, once you copy the game installation over, they should be: LogDirectory: H:\Campaign\IL2\data\logsCompactedLogDirectory: H:\Campaign\IL2\data\binlogs Good Luck Edited April 22, 2018 by AKA_Scorp
coconut Posted April 22, 2018 Author Posted April 22, 2018 (edited) If @AKA_Scorp's post did not solve your problems, you can try the following modified config file, built from yours. It won't enable the campaign, but I think it may be easier to take it one step at a time. Regarding LogDirectory, CompactedLogDirectory and ProcessedLogDirectory, leave these blank. Access to the logs is actually done in a different file, the one which configures the campaign plugin. It's important to understand you need two distinct directories: One for DServer, which is normally a copy of your game files, as @AKA_Scorp mentioned. Then you calso need another one for the campaign plugin, which keeps track of the campaign state (region supplies, tanks, destroyed buildings...). Config.txt Edited April 22, 2018 by coconut
AKA_Scorp Posted April 23, 2018 Posted April 23, 2018 Hi Coconut, I was wondering if it would be possible to put a browse button on the schedule screen for the mission name, or the ability to add file names in the config file and then have a drop down button. My memory and typing aren't what they were and this would be a very useful addition for me. Thanks,
56RAF_klem Posted April 24, 2018 Posted April 24, 2018 I think I might be getting somewhere. Apart from my being a bit thick there were some file name anomalies like campaign, DynCampaign, DynamicCampaign and different port numbers in posts. Anyway I have gone through it all again. I am running the SturmovikServerControl in a cmd window to get any error messages. I wrote out all the steps I have taken in the attached Installation_klem.txt to try to assemble all the advice (hope I understood ok) and have included the two Config files as .txt. Can you see what I am doing wrong because..... Without the CampaignPluginConfig lines, as suggested by coconut, I finally managed to get a response and a new cmd window opened with the message: 2018-04-24 09:51:24.8776|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Listening on http://localhost:8083/ 2018-04-24 09:51:24.9016|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Ban checker started 2018-04-24 09:51:25.9796|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:8991 2018-04-24 09:52:27.0138|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:8991 2018-04-24 09:53:28.0432|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:8991 2018-04-24 09:54:29.0745|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:8991 2018-04-24 09:55:30.1058|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:8991 I tried port 8992 - same result I changed the ServerPort to 8083 as in Server config ControllerUrls and I got the new cmd window with the message: 2018-04-24 09:51:24.8776|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Listening on http://localhost:8083/ 2018-04-24 09:51:24.9016|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Ban checker started (nothing more) Seemed promising....... I then tried adding the following CampaignPluginConfig lines back into the Server Config but it returned the new cmd window with a yellow text which closed before I could read it (would you believe I even tried videoing it!) : # Optional configuration string of campaign system CampaignPluginConfig: "" Name: Secondary Description: No description yet ServerHostname: localhost ServerPort: 8991 (or 8992 or 8083) Login: rconlogin Password: rconpassword GameDirectory: H:\Campaign\IL-2 CampaignPluginAssembly: H:\Campaign\bin\Campaign.dll CampaignPluginType: Campaign.ServerControlPlugin.Plugin CampaignPluginConfig: H:\Campaign\bin\Config.yaml Any thoughts? Config_Serv.txt Config_Camp.txt Installation_klem.txt
AKA_Scorp Posted April 24, 2018 Posted April 24, 2018 (edited) The error lines you are getting are normal until the dserver starts and you are able to connect to the remote console port. 2018-04-24 09:54:29.0745|ERROR|RConClient.Client|Failed to connect to game server: No connection could be made because the target machine actively refused it 127.0.0.1:899 Once you get the console running with out errors that cause it to stop you should be able to connect to it from http://localhost:8083 - that is where you start a mission or campaign. I notice you have not set your passord , you need to run the set password .exe to do that In your Config_Servt.txt: # Port where the remote console of the DServer instance is listening. ServerPort: 8083 You have this set to the webpage that you will use to control the server controller, it needs to be the same as the remote console port in your sds file # Remote console login. Login: rconlogin This needs to be set to the user name for the remote console in the sds file # Remote console login password. Password: rconpassword This needs to be set to the password for the remote console in the sds file # Optional name of a server input MCU in missions that triggers action to lighten CPU load. OffLoadServerInput: ReqKill # Base game directory of the DServer instance. GameDirectory: H:\Campaign\IL-2 # Optional directory where game logs are written by DServer. LogDirectory: H:\Campaign\IL-2\data\logs # Optional directory where game logs written by DServer are concatenated. If unset or empty, this is the same as LogDirectory. CompactedLogDirectory: H:\Campaign\IL-2\data\binlogs # Optional directory where game logs written by DServer are moved after concatenation. If unset, logs are deleted after concatenation. ProcessedLogDirectory: # Optional path to campaign system assembly CampaignPluginAssembly: H:\Campaign\bin\Campaign.dll # Optional name of plugin type in campaign system assembly CampaignPluginType: Campaign.ServerControlPlugin.Plugin # Optional configuration string of campaign system CampaignPluginConfig: H:\Campaign\bin\Config.yaml Get rid of everything below this line, get one server running and then worry about adding a secondary server I also got rid of all the comment lines, once you have it figured out they just clutter up the screen, IMO. Name: Secondary Description: No description yet ServerHostname: localhost ServerPort: 8083 Login: rconlogin Password: rconpassword GameDirectory: H:\Campaign\IL-2 CampaignPluginAssembly: H:\Campaign\bin\Campaign.dll CampaignPluginType: Campaign.ServerControlPlugin.Plugin CampaignPluginConfig: H:\Campaign\bin\Config.yaml In your Config_camp.txt campaign state is kept OutputDir: H:\Campaign\Data - Correct # IL2 data dir ServerDataDir: H:\Campaign\data - This the the data folder in your game, should be H:\Campaign/IL2\Data # IL2 bin dir ServerBinDir: H:\Campaign\bin - Should be H:\Campaign\IL2\bin # SDS file, relative to data dir ServerSdsFile: \sds\DynamicCampaign.sds # Where this file resides InstallPath: H:\Campaign\Bin - This is the path to where this file is, it looks like it could be correct Edited April 24, 2018 by AKA_Scorp
coconut Posted April 24, 2018 Author Posted April 24, 2018 10 hours ago, 56RAF_klem said: # Optional configuration string of campaign system CampaignPluginConfig: "" Name: Secondary Description: No description yet ServerHostname: localhost ServerPort: 8991 (or 8992 or 8083) Login: rconlogin Password: rconpassword GameDirectory: H:\Campaign\IL-2 CampaignPluginAssembly: H:\Campaign\bin\Campaign.dll CampaignPluginType: Campaign.ServerControlPlugin.Plugin CampaignPluginConfig: H:\Campaign\bin\Config.yaml There's one CampaignPluginConfig too many, remove the top one. I also looked at your installation steps, it's confusing. Do this in two steps: Install and get SturmovikServerControl working Only after this works, install and configure the campaign plugin And DO NOT install the campaign plugin inside SturmovikServerControl's directory.
56RAF_klem Posted April 25, 2018 Posted April 25, 2018 (edited) Guys this is incredibly confusing. I made the changes you suggested in your last posts. See the config txt files attached. I set the sds Remote Console login/password, my local network IP address (would that be 127.0.0.1 for local host?) and port 8991. I think that needed a mention in the instructions. Then I ran SetPassword and got: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at FSharp.Configuration.YamlConfigTypeProvider.Root..ctor(Boolean inferTypesFromStrings) at Program.ConfigurationFile..ctor() at Program.main(String[] argv) I've no idea where to look to solve that. Still, I ran SturmovikServerControl.exe and got 2018-04-25 08:34:06.0836|INFO|SturmovikServerControl.ServerState|From Primary: SturmovikCampaign 1.16.5.0 2018-04-25 08:34:09.0836|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Listening on http://localhost:8991/, http://192.168.1.199:8991/ 2018-04-25 08:34:09.0836|INFO|<StartupCode$SturmovikServerControl>.$Main|main: Ban checker started (nothing more) I am coming to the conclusion that there is much more to this than just setting up the config files and folder structure, maybe some background knowledge I just don't have. I also saw in one cmd window (I can't remember how) reference to "C:\Users\Johann\..... which makes me think there is some setup instruction missing. No offence intended, you are all really trying to help me, but nothing in the instructions told me to install and test the server first, as I read it the whole package was to be set up together. Also you said do not install the campaign plugin inside the SturmovikServerControl's directory but at the bottom of the install file I sent I showed my folder structure - is that correct or have I got it wrong? I even tried moving everything to C: drive and editing the configs in case there was some "C:" reference buried somewhere but no difference. I think I might have to give up on this. Config_Camp.txt Config_Serv.txt Edited April 25, 2018 by 56RAF_klem
56RAF_klem Posted April 26, 2018 Posted April 26, 2018 The SetPassword.exe I used was in the SturmovikServerControl folder. The one in the SetPassword folder allowed be to input a password which is what I entered in the DynamicCampaign.sds RemoteConsole. Running SturmovikServerControl.exe gave me the same result as before. I should have mentioned that I copied my entire IL-2 installation to the \IL-2\ folder, put the DynamicCampaign.sds folder under \data\ and the mission files in \Dogfight\ as per the instructions.
AKA_Scorp Posted April 26, 2018 Posted April 26, 2018 Quote The SetPassword.exe I used was in the SturmovikServerControl folder. The one in the SetPassword folder allowed be to input a password which is what I entered in the DynamicCampaign.sds RemoteConsole. The password you set here is the one you will use to log into the Sever Controller webpage http://localhost:8083 Quote # Port where the remote console of the DServer instance is listening. ServerPort: 8083 You have this set to the webpage that you will use to control the server controller, it needs to be the same as the remote console port in your sds file# Remote console login. Login: rconlogin This needs to be set to the user name for the remote console in the sds file# Remote console login password. Password: rconpassword This needs to be set to the password for the remote console in the sds file Make sure your password, username and port match those in your sds file remote connect. If the dos window stays open after you run sturmovilservercontro.exe then try connecting to it at http://localhost:8083 . At that point you should be at least able to make the controller start dserver.exe and load a mission. Once you get it doing that then you can get a campaign going. Quote I should have mentioned that I copied my entire IL-2 installation to the \IL-2\ folder, put the DynamicCampaign.sds folder under \data\ and the mission files in \Dogfight\ as per the instructions. That is what I did except that my DynamicCampaign.sds file (and all my sds files) are in \IL-2\data\sds and the missions files are in \IL-2\data\multiplayer\dogfight\ Good Luck
coconut Posted April 26, 2018 Author Posted April 26, 2018 On 25/04/2018 at 9:52 AM, 56RAF_klem said: Then I ran SetPassword and got: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) That one was a left-over from a previous build. I'll clean that up in the next release, sorry for the confusion. On 25/04/2018 at 9:52 AM, 56RAF_klem said: I also saw in one cmd window (I can't remember how) reference to "C:\Users\Johann\..... which makes me think there is some setup instruction missing That's probably from a stack trace, which are from my dev PC. I run this on my server and there are no paths like that there. These "incorrect" paths are not the problem, they merely point at where in the source files the problem occurred. Useful for me as a dev, but nothing of interest to you as a user. On 25/04/2018 at 9:52 AM, 56RAF_klem said: Also you said do not install the campaign plugin inside the SturmovikServerControl's directory but at the bottom of the install file I sent I showed my folder structure - is that correct or have I got it wrong? The structure at the bottom looked OK, but the steps lead to another structure. Specifically: Quote Move the CONTENTS of folder C:\Campaign\zip\SturmovikCampaign[-version xxx]\ to folder C:\Campaign\Bin\ (do not include the folder SturmovikCampaign[-version xxx]) ... Move the two folders in folder C:\Campaign\zip\sturmovikservercontrol[-version xxx]\ to C:\Campaign\Bin\ (do not include the folder sturmovikservercontrol[-version xxx]) looks wrong to me. You are mixing things under bin.
56RAF_klem Posted April 27, 2018 Posted April 27, 2018 Ok, thank you very much guys, some progress. coconut I had put the two server folders under \Campaign\. My text file was wrong when I first typed it. The original installation.txt did say: "Create a directory where to host the plug-in for SturmovikServerControl, e.g. C:\Campaign\Bin\" which confused me initially. AKA_Skorp, I have checked everything you said. Checked port set as 8083 all round and when the DOS window stayed open I opened the browser and went to http://localhost:8083 and sure enough I found the login page. [Note to self - must open login page manually] OP says "Enter your secret password". I entered the password created with SetPassword.exe under the \Campaign\SetPassword\ folder . Login Failed. As before, it wouldn't let me set a PW with SetPassword.exe in the \Campaign\SturmovikServerControl\bin\Release\ folder (see 4 posts up for error message). I feel as though I am getting somewhere but can't log in.
AKA_Scorp Posted April 27, 2018 Posted April 27, 2018 (edited) Klem, Coconut will know much more about these errors than I do but here are my thoughts. Try using the setpassword.exe in the release folder. Do you have F# installed? I would consider backing up my config.yaml files from the server controller and from the dynamic campaign and then delete both those installations and start again. here is what my installation looks like: D:\BoXCampaign \Campaign \bin (This is where all the dynamic campaign files are) \data \binlogs \logs \multiplayer \dogfight \IL-2 (This is where the IL-2 BoM/S/K files are) \ServerController \bin \release (this is where the sturmovikservercontrol.exe and the setpassword.exe files are) \content \images \scripts Put your saved config.yaml files back in and give it a try. Best of luck Edited April 27, 2018 by AKA_Scorp
56RAF_klem Posted April 28, 2018 Posted April 28, 2018 F# ?? Isn't that what is in the \Campaign\SturmovikServerControl\bin\Release\ folder? Is there something else I have to install? This is my current folder structure which I understood was correct now: C:\Campaign\ ............bin\[Campaign Files&folders] --------------------------------------------------> CampaignPluginConfig: H:\Campaign, CampaignPluginAssembly: H:\Campaign\bin\Campaign.dll, InstallPath: H:\Campaign\Bin\bin\Config.yaml ............data\[campaign data] ---------------------------------------------------------------> OutputDir: H:\Campaign\Data ............IL-2\ ...................[complete IL-2 installation] ------------------------------------------------> GameDirectory: H:\Campaign\IL-2 .........................including \bin\ folder ---------------------------------------------------> ServerBinDir: H:\Campaign\IL-2\bin .........................mission files under \Multiplayer\Dogfight\ .........................sds file in \IL-2\data\sds\ folder ----------------------------------> ServerSdsFile: \sds\DynamicCampaign.sds ........................and under \data\ -----------------------------------------------------------> ServerDataDir: H:\Campaign\IL-2\data ................................\binlogs\ ................................\logs\ ---------------------------------------------------------------------> LogDirectory: H:\Campaign\IL-2\data\logs ............\SetPassword\[Files] ............\SturmovikServerControl\[servercontrol folders] You seem to have your logs, multiplayer and dogfight folders outside the game folders. btw as explained, the SetPassword.exe in the \Campaign\SturmovikServerControl\bin\Release\ folder doesn't work, it gives error: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at FSharp.Configuration.YamlConfigTypeProvider.Root..ctor(Boolean inferTypesFromStrings) at Program.ConfigurationFile..ctor() at Program.main(String[] argv) Doesn't explain though why the other \SetPassword\SetPassword.exe appears to run although when I enter a password the DOS screen just closes and I can't find a file dated today where the password may have been saved so I don't know if it is actually doing anything.
coconut Posted April 28, 2018 Author Posted April 28, 2018 (edited) 8 hours ago, AKA_Scorp said: D:\BoXCampaign \Campaign \bin (This is where all the dynamic campaign files are) \data \binlogs \logs \multiplayer \dogfight \IL-2 (This is where the IL-2 BoM/S/K files are) \ServerController \bin \release (this is where the sturmovikservercontrol.exe and the setpassword.exe files are) \content \images \scripts data\logs and data\multiplayer should be under IL-2. Not sure if DServer and Resaver will work with your setting, but if they do, I suppose it's fine. 39 minutes ago, 56RAF_klem said: F# ?? You don't need to install F#. All you need if the FSharp.Core.dll, which I included in the zip files 39 minutes ago, 56RAF_klem said: You seem to have your logs, multiplayer and dogfight folders outside the game folders. Indeed, I would not advise to do it that way. Might work, but that's not how I do it. 39 minutes ago, 56RAF_klem said: btw as explained, the SetPassword.exe in the \Campaign\SturmovikServerControl\bin\Release\ folder doesn't work, it gives error: Don't use this one, it's borked. 39 minutes ago, 56RAF_klem said: Doesn't explain though why the other \SetPassword\SetPassword.exe appears to run although when I enter a password the DOS screen just closes and I can't find a file dated today where the password may have been saved so I don't know if it is actually doing anything. It should have inserted the password hash into your config.yaml file. Try this: Go to SetPassword\ in the file explorer, type cmd in the location bar In the command prompt that opens, type SetPassword /? You should get usage information: "Usage: SetPassword <path to config.yaml>" Follow the instruction, i.e. "SetPassword ..\..\ServerController\bin\config.yaml" Enter your password The program should say "Password saved." and exit Edited April 28, 2018 by coconut
AKA_Scorp Posted April 28, 2018 Posted April 28, 2018 Quote data\logs and data\multiplayer should be under IL-2. Not sure if DServer and Resaver will work with your setting, but if they do, I suppose it's fine. All those folder and more are in my IL-2 folder, I just didn't show them as they are part of the copy process when I copied my IL-2 installation over all 14G of it. I was getting an error that those folders didn't exist so I created them and everything ran smoothly after that. Didn't know that I didn't need F#, I already had it installed, good to know.
56RAF_klem Posted April 29, 2018 Posted April 29, 2018 OK. More progress coconut I followed your instructions and successfully set password into Config.yaml I started SturmivikServerControl and when DOS box settled I opened the browser to localhost:8083 and logged in ok. Question: you said " Follow the instruction, i.e. "SetPassword ..\..\ServerController\bin\config.yaml" I notice you did not include the folder \Release\ folder, i.e. \bin\Release\config.yaml. Could that be why the password isn't written to config.yaml? Perhaps it does not expect \Release\ in the write path? Also could that be the reason I have to open the browser by hand? Anyway, I went to the Schedule tab and Added my \sds\DynamicaCampaign which started DServer (also declared in the DOS box). Now, I had previously edited the sds file to read: [rotation] random = false file = "Dogfight\DynamicCampaign_1" file = "Dogfight\DynamicCampaign_2" [end] as suggested in an earlier post. However the DServer couldn't find those because of course they don't exist. So I changed the sds file to point towards my DynamicCampaign.msnbin file under \Multiplayer\Dogfight\. btw I am using a copy of one of the coconutexpert missions from my cache. That didn't work and I noticed DServer looking in \Multiplayer\ so I moved the mission files there and it worked. So I wonder if there is a path issue there (Campaign config.yaml talks about # These files are copied to <ServerDataDir>/Multiplayer/Dogfight ). DServer returned these messages: Failed to start Remote Console service on localhost port 8083 ===== DeathMatch mode ===== ===== Dedicated server ===== Brief info: Max clients = 85 TCP: 28000, UDP: 28000, Downloader: 28100, U/D Limits = 10240/10240 Login with UserName '##################'' (edited out) ... Login success Server is being created ... Server name 'KubanDynamicCampaign' and it loaded the mission. I don't know the implications of the first line and I don't have time right now to play out the mission and see if the server generates something new but I thought I pass this on for now, one step at a time Many thanks again for the help. I will get there!
coconut Posted April 29, 2018 Author Posted April 29, 2018 59 minutes ago, 56RAF_klem said: Question: you said " Follow the instruction, i.e. "SetPassword ..\..\ServerController\bin\config.yaml" I notice you did not include the folder \Release\ folder, i.e. \bin\Release\config.yaml. Could that be why the password isn't written to config.yaml? Perhaps it does not expect \Release\ in the write path? You have to put in the correct path according to your installation, I'm not sure what that is. If you point at the wrong file, SetPassword will give you an error, and you would notice. 1 hour ago, 56RAF_klem said: Anyway, I went to the Schedule tab and Added my \sds\DynamicaCampaign which started DServer (also declared in the DOS box). You have first to create a campaign, if you haven't done so already. That's done using the "Campaign reset" alternative. Once the campaign has ben initialized, it will run itself. Whenever you stop SturmovikServerControl, to continue the campaign, you have to use the "Campaign" alternative. 1 hour ago, 56RAF_klem said: Also could that be the reason I have to open the browser by hand? You always have to open the browser by hand.
AKA_Scorp Posted May 17, 2018 Posted May 17, 2018 (edited) Hi Coconut, Was wondering how do you show the map of your servers on https://il2missionplanner.com/ Also, do you ever get the dserver still showing as a process when when you stop the server from the web page? It happens now and again on our server which stops the server from starting again for a campaign reset etc. The window disappears, just a process running in the background. Thanks, Edited May 17, 2018 by AKA_Scorp
coconut Posted May 17, 2018 Author Posted May 17, 2018 (edited) 18 hours ago, AKA_Scorp said: Was wondering how do you show the map of your servers on https://il2missionplanner.com/ @AKA_Scorp If you navigate to the equivalent of http://coconutside.eu:8083/campaign/Expert you will get some json code. If you save it to a file and import it in the il2missionplanner.com you should see the campaign map. To get an URL on il2missionplanner.com, get in touch with CuriousGambler, the author of il2missionplanner.com. 18 hours ago, AKA_Scorp said: Do you ever get the dserver still showing as a process when when you stop the server from the web page? It happens now and again on our server which stops the server from starting again for a campaign reset etc. The window disappears, just a process running in the background. Yep, it's annoying. You need to find the process and kill it manually. Edited May 17, 2018 by coconut
AKA_Scorp Posted May 17, 2018 Posted May 17, 2018 Thanks Coconut. Yes I have been killing it manually, at least I know I haven't done anything wrong.
AKA_Scorp Posted June 2, 2018 Posted June 2, 2018 Hi Coconut, I'm trying to build the binaries for the Server Controller and Campaign Controller from your source code using VS 2017 but am running into problems. Do you have any advice on which commits I should try (and any other general advice for that matter). Thanks
coconut Posted June 3, 2018 Author Posted June 3, 2018 Normally almost any commit should do. I'll try and setup a fresh development environment, there may be things in my current environment that are needed which I'm unaware of.
coconut Posted June 3, 2018 Author Posted June 3, 2018 You can try building server control now, I've cleaned up things a bit and updated dependencies. I'm still getting an error that I haven't fixed (see below), and I won't manage to do that today. If you try, let me know how that goes for you. Done Building Project "D:\a\1\s\SetPassword\SetPassword.fsproj" (default targets). Done Building Project "D:\a\1\s\SturmovikServerControl.sln" (default targets) -- FAILED. Build FAILED. "D:\a\1\s\SturmovikServerControl.sln" (default target) (1) -> "D:\a\1\s\SturmovikServerControl\SturmovikServerControl.fsproj" (default target) (2) -> (WebSharperCompile target) -> D:\a\1\s\packages\WebSharper.3.6.20.6\build\WebSharper.targets(60,5): error MSB4018: The "WebSharperTask" task failed unexpectedly. [D:\a\1\s\SturmovikServerControl\SturmovikServerControl.fsproj] D:\a\1\s\packages\WebSharper.3.6.20.6\build\WebSharper.targets(60,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Core, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. [D:\a\1\s\SturmovikServerControl\SturmovikServerControl.fsproj]
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