SYN_Vander Posted January 28, 2023 Posted January 28, 2023 (edited) Hi all, I have created a version of EMG that is able to generate multiple missions and then adjusts the Dserver config file accordingly. This way it's possible to have an automated server that runs different missions every day. It was created for our own Syndicate server so I can not promise it will be easy to figure it out, but if you would like to give it a try: https://sites.google.com/view/il2-great-battles-emg/emg-for-servers Edited January 28, 2023 by SYN_Vander 2 5
Habu Posted January 29, 2023 Posted January 29, 2023 Hi Vander, Thank you to share your tool. Here are a few questions as i try to use it. 1- I don't understand about the AI flight : Quote The first three of this number will be used for an AI bomber flight. In "dogfight" there will be as many AI bomber flights as there are targets (objectives). Each side will take turns to attack a target so there will only be one bomber flight in the air. The AI bombers are turned off by default in config.ini. Look for ai_bombers = False and change to True.The rest will be divided over AI fighter flights. In the example this will come down to: 11-3 = 8, which will result in 2 flights of 2 planes, which will patrol in random areas at the same time. The result of the of the calcul is 8, but you wrotte that there will be 2 flights of 2 planes. Isn't 2 flights of 4 planes, or 4 flights of 2 planes ? How many planes are there in the Bomber flight and can we set it manually ? 2- About server_config.json 2-1 - msbin is set to 0 by default. Does that means that you don't generate a msnbin file ? 2-2- May we set a password ? 2-3 - What do these settings ? Quote "map_name": "The Channel", "front_name": "The Channel", We also have these informations in rotation files. What is the difference between them ? 3- About generating mission If i understand, the generator will generate missions once a time, and not just after one mission is finished ? 4- The mission duration is set in the mission or in the sds, using the mission duration setting in the server_config.json file ?
SYN_Vander Posted January 29, 2023 Author Posted January 29, 2023 (edited) 26 minutes ago, Habu said: Hi Vander, Thank you to share your tool. Here are a few questions as i try to use it. 1- I don't understand about the AI flight : The result of the of the calcul is 8, but you wrotte that there will be 2 flights of 2 planes. Isn't 2 flights of 4 planes, or 4 flights of 2 planes ? How many planes are there in the Bomber flight and can we set it manually ? 2- About server_config.json 2-1 - msbin is set to 0 by default. Does that means that you don't generate a msnbin file ? 2-2- May we set a password ? 2-3 - What do these settings ? We also have these informations in rotation files. What is the difference between them ? s 3- About generating mission If i understand, the generator will generate missions once a time, and not just after one mission is finished ? 4- The mission duration is set in the mission or in the sds, using the mission duration setting in the server_config.json file ? 1) There is a lot of "hidden" logic in the code that isn't obvious. The standard way of creating ambient AI flights is to look at the amount then divide by 2 so you have the number of planes per side. Then I have some logic that determines if multiple flights should be created. Example: Normal (not dogfight mission): AI amount = 8. Divide by 2 = 4 planes per side. My logic will then divide this in two flights per side: One flight with one plane, another with three. For higher numbers you can get more and bigger flights. EMG favors more flights over bigger flights so they will cover more ground and there is a higher chance of meeting them. Later I introduced AI bombers that attack targets for "dogfight" mode. In the code I first create these AI bomber flights (3 planes) and then continue with the rest same as above. Minimum number is 2 and max is 3, hard coded. This because of the huge performance impact. 2-1) Yes, my mistake. I used that for testing, so set it to 1 2-2) You can set the password in the .sds file as usual 2-3) Run EMG and you will see: 3) Correct. You generate them in advance. I though about generating them on the spot, but the bottleneck is the very slow performance of the resaver.exe. With a big map like Normandy or Bodenplatte it can take several minutes to generate the .msbin file which is not acceptable for the players. 4) Correct Edited January 29, 2023 by SYN_Vander
Habu Posted January 29, 2023 Posted January 29, 2023 (edited) 2 hours ago, SYN_Vander said: 2-3) Run EMG and you will see: I don't understand why we have these setting in the server_config.json because if i want générate several missions with several maps on several fronts, it can't be the parameter used to generate the mission as we have only one settings. The logic would be that it uses the Mision rotation file which have settings for several mission. And in that case, the information in the server_config file has no utility. 2 hours ago, SYN_Vander said: 4) Correct What is correct : in the mission file, or in the sds file ? I don't see the advantage to use that utility if we can use EMG, except that we can generate several missions in one time. Edited January 29, 2023 by Habu
SYN_Vander Posted January 29, 2023 Author Posted January 29, 2023 27 minutes ago, Habu said: I don't understand why we have these setting in the server_config.json because if i want générate several missions with several maps on several fronts, it can't be the parameter used to generate the mission as we have only one settings. The logic would be that it uses the Mision rotation file which have settings for several mission. And in that case, the information in the server_config file has no utility. That is correct, these values are not used if you have defined a mission rotation file. But if you leave the the mission rotation field empty, it will generate a bunch of random missions using the map and front. Maybe better forget about this, I don't even use it anymore... 4) It changes the .sds file. So the advantage of this tool is a) it can generate a bunch of missions in one go using configuration files and b) it updates the .sds file accordingly.
SYN_Vander Posted February 4, 2023 Author Posted February 4, 2023 Small update: Added "flight_size": 4 in the server_config to set the number of aircraft of a flight, this is useful for cooperative missions. https://sites.google.com/view/il2-great-battles-emg/emg-for-servers
=FI=Genosse Posted April 14, 2023 Posted April 14, 2023 I'm currently trying to get your EMG for Servers to work on my server but with no avail. I altered the server_config.json so it should point the Server Generator to the 'fis' dogfight folder but after its launch the missions don't get created there and the generator closes down. Its log file says that 'No server config or too many arguments' were found. I have impression that the server_config.json is ignored by the ServerGenerator.exe. There is a folder in data/Multiplayer/Dogfight called 'fis' but it isn't recognised by the generator. Same counts for the 'fis_dogfight.sds'. Or is the path/file name hard coded in the generator executable? Any idea what I've missed here?
SYN_Vander Posted April 14, 2023 Author Posted April 14, 2023 (edited) 8 hours ago, =FI=Genosse said: I'm currently trying to get your EMG for Servers to work on my server but with no avail. I altered the server_config.json so it should point the Server Generator to the 'fis' dogfight folder but after its launch the missions don't get created there and the generator closes down. Its log file says that 'No server config or too many arguments' were found. I have impression that the server_config.json is ignored by the ServerGenerator.exe. There is a folder in data/Multiplayer/Dogfight called 'fis' but it isn't recognised by the generator. Same counts for the 'fis_dogfight.sds'. Or is the path/file name hard coded in the generator executable? Any idea what I've missed here? Shit, you're right. looks like "syndicate" is now hardcoded as the subfolder (in part of the code, not all). See if this works at least, in the mean time I will make a change to use the mission_prefix from the config instead! Edited April 14, 2023 by SYN_Vander
SYN_Vander Posted April 14, 2023 Author Posted April 14, 2023 (edited) 18 minutes ago, SYN_Vander said: Shit, you're right. looks like "syndicate" is now hardcoded as the subfolder (in part of the code, not all). See if this works at least, in the mean time I will make a change to use the mission_prefix from the config instead! try this updated version: https://drive.google.com/file/d/1iMP0v9wHVswnyHzu_v8v_1LQSLG2Gg2b/view?usp=share_link I have also updated the link on the website Edited April 14, 2023 by SYN_Vander 2
=FI=Genosse Posted April 14, 2023 Posted April 14, 2023 35 minutes ago, SYN_Vander said: try this updated version: https://drive.google.com/file/d/1iMP0v9wHVswnyHzu_v8v_1LQSLG2Gg2b/view?usp=share_link I have also updated the link on the website The generator's command window shuts down right after it's been launched. This is the output of the log file: Quote INFO: -------Starting ServerGenerator-------- INFO:No server config or too many arguments INFO:Using mission rotation config: mission_rotation.json Sorry for bothering you, Vander.
SYN_Vander Posted April 14, 2023 Author Posted April 14, 2023 1 hour ago, =FI=Genosse said: The generator's command window shuts down right after it's been launched. This is the output of the log file: Sorry for bothering you, Vander. Send me your specific configuration in a zip and I can run it through the debugger. 1
SYN_Vander Posted December 22, 2023 Author Posted December 22, 2023 Updated the server version as well, following EMG v80: https://sites.google.com/view/il2-great-battles-emg/emg-for-servers 1
SYN_Vander Posted January 10, 2024 Author Posted January 10, 2024 Updated the Server Generator, following EMG v81: https://sites.google.com/view/il2-great-battles-emg/emg-for-servers
SYN_Vander Posted February 10, 2024 Author Posted February 10, 2024 (edited) Updated Server Generator as well, following EMG v82: https://sites.google.com/view/il2-great-battles-emg/emg-for-servers Make sure to install EMG vs 82 as well since the config.ini now has an extra mandatory line: target_position = <x,y> In theory "in target area" can be used as value for target_distance parameter in server_config.json, but then all created missions will use the same target area, which -if you use multiple maps/fronts- could mean the target area can be somewhere totally off the map. So don't use for now. Edited February 10, 2024 by SYN_Vander
=FI=Genosse Posted February 12, 2024 Posted February 12, 2024 Hello, Vander! Does the new "Target postion" option have any effect on the DF missions while using the ServerGenerator?
SYN_Vander Posted February 12, 2024 Author Posted February 12, 2024 5 hours ago, =FI=Genosse said: Hello, Vander! Does the new "Target postion" option have any effect on the DF missions while using the ServerGenerator? No, if you don't change anything then it should have no effect. 1
Trueppp Posted July 25, 2024 Posted July 25, 2024 Would it be possible to add more of the variables from config.ini in the mission_rotation.json? I see them change in config.ini when generating missions but would like to be able to put things like player side / Lead and Escort flight sizes
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