Some partners don't know this AIX 2 reality 4 5. Why did you adjust the number of modules to aidefault in the ai folder The number of descendants of the ai document does not take effect, or there are only 24 on the opposite side, which is much more on our side,
The reason is very simple. In order to test the balance of each map of the module, the author wrote some code. The following figure is how to change the number limit on the summary page when the module was released by moddb:
I'm too lazy to translate by myself. The situation of machine translation is as follows:
Specifically, how do I change the number of robots on the map?
-First, if you want to play the map as designed, you need to use the default embedded settings. Changing it can destroy gameplay - make adjustments after hundreds of tests on each map. What you can really change is the ticket number, because it needs some correction after the ticket number is lost in CP capture.
However, if you really need to change the number of robots (you want to learn maps / tactics, or it's too difficult for you), AIX2 Reality has two ways to adjust the proportion of robots.
By default, the maximum number of BOT defined in AIDFultAAI is 58: aisettin SETMAXNBOTS 58
Some maps use it as the default number of bots, and the flag used in this way is in it * Missing ai. In con* character string.
However, if you really need to change the robot value, there are two methods to adjust the robot parameters of AIX2 Reality
The maximum number of bots defined in aidefault.ai - it is 58 by default: aiSettings.setMaxNBots 58 Some maps is it as the default number of bots, the signs of using this way is the missing ai.* strings in Init*.con. So, lets take a look at Dragon Valley 64: sv.coopBotCount 22 sv.coopBotDifficulty 80 sv.teamRatioPercent 100 sv.coopBotRatio 100 Then it means that the first team (ch) will have 22 bots, and the second (nl) will have 58-22=36 bots. Very simple. Another example, Dalian Plant 16. We don't need whole bunch of 58 bots on such small map, so we need to redefine the maximum number: aiSettings.overrideMenuSettings 1 aiSettings.setMaxNBots 11 aiSettings.setBotSkill 0.9 aiSettings.maxBotsIncludeHumans 0 sv.autoBalanceTeam 0 sv.teamRatioPercent 100 sv.coopBotRatio 100 sv.coopBotCount 6 So, in this case the maximum number of bots is eleven - six for the first team, and five for the second.
-I found a bug!
-Welcome to the report. If it is CTD, please run it in window mode to see if any errors will pop up. It really helps me.
Copy code
Then I went to practice as follows, taking the famous island 2007 map as a demonstration > > > > > > > > >
1. Find the path of the map under my computer, E:\battlefield2\mods\aix2_reality\Levels\Wake_Island_2007\
After entering, open the service compressed package without decompressing it. Just open it directly e: \ Battlefield2 \ MODS \ aix2_ reality\Levels\Wake_ Island_ 2007\serve r. zip
You will find such file names:
2. Find init For the file con, open it with Notepad or other programming software (some files are init16.con, and init32.con respectively represent the map initialization data under 16 person and 32 person maps of different sizes. You can change it if you need it, or you can directly change init.con if you don't need it)
Find these lines of code:
sv.autoBalanceTeam 0 sv.teamRatioPercent 100 sv.coopBotRatio 100 sv.coopBotCount 24 sv.coopBotDifficulty 80 sv.ticketRatio 300 sv.timeLimit 3600
Copy code
Among them, the main code we changed is SV Coopbotcount, originally 24, every time you open a map, even if you change aidefault The bot number code on the AI side, in this init Under the con folder, the maximum number of hostile sides will also be redefined 24,
So, I changed it to 54 and then aidefault The maximum number of people in the AI file is set to aisettings Setmaxnbots 96. In this way, the default number of the other half of the system map is 48 at the beginning of each game. If the number of people on your side is 96-48 = 48, there will be no original 96-24 = 92 people on your side,
There are only 24 people on the opposite side. This is the modification method
sv.autoBalanceTeam 0 sv.teamRatioPercent 100 sv.coopBotRatio 100 sv.coopBotCount 48 sv.coopBotDifficulty 80 sv.ticketRatio 300 sv.timeLimit 3600
Of course, things are not over yet. I change the code and play the game. This map has nothing to do. Some maps have been changed but there are bug s. The number of people is still unbalanced. Why?
Because of some maps, the author did not delete the code at the end of the test game, and the following code appeared
aiSettings.overrideMenuSettings 1 aiSettings.setMaxNBots 44 aiSettings.setBotSkill 0.8 aiSettings.maxBotsIncludeHumans 0 sv.autoBalanceTeam 0 sv.teamRatioPercent 100 sv.coopBotRatio 100 sv.coopBotCount 48 sv.coopBotDifficulty 80 sv.ticketRatio 300 sv.timeLimit 3600
Copy code
This is mainly to comment out the first four lines of code, because they take effect only when the map is loaded, resulting in the redefinition of aidefault AI files, so we annotate them here, write them like this, or delete them directly:
rem aiSettings.overrideMenuSettings 1 rem aiSettings.setMaxNBots 44 rem aiSettings.setBotSkill 0.8 rem aiSettings.maxBotsIncludeHumans 0
Copy code
It will not affect us in E: \ Battlefield2 \ MODS \ aix2_ Under reality \ AI \ folder The definition of AI file data, so that the number of people on both sides of the map is 48, which is balanced.
Of course, you have to change these data for each map by yourself. The author has hardly deleted them. In order to prevent game memory overflow, it is recommended that there are at most 54 people on both sides.
Finally, a Bug that some friends haven't solved is about the problem that when occupying the flag and raising our flag after the flag lands, the map data does not refresh and the flag can't rise. This is because there will be memory bugs in the previous games, so in this case, please launch the game server or directly exit the game and play in the LAN mode, I also ran out of memory a few times ago, but after reading the author's answer, I understand what's going on. There are almost no such problems later.
The author's original words are as follows:
- I have no flags/some icons on map
- This is the common bug, due to the memory bug caused by the high number of icons. Nothing to do here - just restart the client
Copy code
The address of the author's original link to answer various bug questions is as follows:
https://www.moddb.com/mods/aix2-reality-battlefield-2-coop-mod