Hey folks,
I'm always trying to keep the best old custom maps alive for me and my friends and up to the latest patch it worked perfectly. After 2.45 I had to re-generate the tmp.con files and nothing else on most maps, to get all kits working.
Now, things changed. I have no idea why Devs did this, considering the fact that it did work well before and was way more userfriendly. But thats not the matter now.
I'll point out the problem at the example: Beda_Fomm
The map will now CTD once it has loaded 100%. The reason: A python error. The NCO was not defined.
I redid the mapdata.py like it was shown in the first post of this thread, but that didn't help. Then I've completely redone it using a working .py as model (bardia) and adding the code from here to it after it still showed me errors concerning the NCO in the log.
The beda_fomm/mapdata.py now looks like this:
Spoiler
from game.plugins import plugin, limitKit, ticketLoss, aiPush, NCOrifleData
rifleNCO = [plugin(NCOrifleData, kits = ('IA_NCOBeretta38', 'BA_NCOTommygunS')),]
gpm_coop = {
64: [
plugin(limitKit, team = 1, slot = 0, limit = 4.0/32.0, kit = "IA_ScoutK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 1, limit = 5.0/32.0, kit = "IA_Limited_Assault_Beretta38_K98", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 1, slot = 2, limit = 9.0/32.0, kit = "IA_RiflemanK98", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 3, limit = 6.0/32.0, kit = "IA_Limited_Support_MG34_K98", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 1, slot = 4, limit = 4.0/32.0, kit = "IA_EngineerK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 5, limit = 5.0/32.0, kit = "ia_ATPzB39_Limited", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 2, slot = 0, limit = 4.0/32.0, kit = "BA_ScoutEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 1, limit = 6.0/32.0, kit = "BA_Limited_Assault_TommygunD_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 2, limit = 9.0/32.0, kit = "BA_RiflemanEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 3, limit = 6.0/32.0, kit = "BA_Limited_Support_Bren_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 4, limit = 4.0/32.0, kit = "BA_EngineerEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 5, limit = 4.0/32.0, kit = "BA_ATBoys_Limited", soldier = "ba_heavy_soldier"),
plugin(aiPush),
plugin(ticketLoss, ticketLoss1 = 5, ticketLoss2 = 5),
]+ rifleNCO,
}
sp3 = gpm_coop
The map still crashes after loadup, showing this log:
Spoiler
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:09:54.937000 (wall time: 13.4064253663) ******
[13.4064253663] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4064253663] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4064253663] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12AF83F0> <game.plugins.limitKit.limitKitNCO object at 0x12AF83F0>:
local variable 's' referenced before assignment
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 137, in on_round_start
UnboundLocalError: local variable 's' referenced before assignment
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:09:55.159000 (wall time: 13.4064253663) ******
[13.4064253663] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4064253663] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4064253663] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12AF4030> <game.plugins.limitKit.limitKitNCO object at 0x12AF4030>:
local variable 's' referenced before assignment
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 137, in on_round_start
UnboundLocalError: local variable 's' referenced before assignment
I tried like a thousand times with different ideas, but this produced the shortest .log, so I guess it is the closest to the solution. If theres a script error, I haven't found it. I didn't use a local variable called "s" in the map files.
Any help is appreciated.
NOTE: If this post should be a new topic rather than a comment on the current thread, tell me and I will do it. Or move it.
Thanks for the quick answer, Ts4EVER
But unfortunatly it didn't help. At first I replaced it only in the mapdata.py.
So it would look like this:
Spoiler
from game.plugins import plugin, limitKit, ticketLoss, aiPush, NCOrifleData
rifleNCO = [
plugin(NCOrifleData, kits = ('IA_NCOBeretta38', 'BA_NCO')),
]
gpm_coop = {
64: [
plugin(limitKit, team = 1, slot = 0, limit = 4.0/32.0, kit = "IA_ScoutK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 1, limit = 5.0/32.0, kit = "IA_Limited_Assault_Beretta38_K98", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 1, slot = 2, limit = 9.0/32.0, kit = "IA_RiflemanK98", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 3, limit = 6.0/32.0, kit = "IA_Limited_Support_MG34_K98", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 1, slot = 4, limit = 4.0/32.0, kit = "IA_EngineerK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 5, limit = 5.0/32.0, kit = "ia_ATPzB39_Limited", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 2, slot = 0, limit = 4.0/32.0, kit = "BA_ScoutEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 1, limit = 6.0/32.0, kit = "BA_Limited_Assault_TommygunD_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 2, limit = 9.0/32.0, kit = "BA_RiflemanEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 3, limit = 6.0/32.0, kit = "BA_Limited_Support_Bren_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 4, limit = 4.0/32.0, kit = "BA_EngineerEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 5, limit = 4.0/32.0, kit = "BA_ATBoys_Limited", soldier = "ba_heavy_soldier"),
plugin(aiPush),
plugin(ticketLoss, ticketLoss1 = 5, ticketLoss2 = 5),
]+ rifleNCO,
}
sp3 = gpm_coop
That led to this log:
Spoiler
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:36:59.865000 (wall time: 13.4571675876) ******
[13.4571675876] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4571675876] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4571675876] gameplayPlugin::warn: exception in plugin.bf2_init <game.plugins.limitKit.limitKitNCO object at 0x12B09370>:
Kit 'ba_nco' is not defined or has not been loaded for this map.
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 281, in bf2_init
File "python/game/plugins/limitKit.py", line 679, in bf2_init
File "python/game/plugins/limitKit.py", line 587, in __init__
File "python/game/plugins/limitKit.py", line 453, in __init__
File "python/game/utilities.py", line 650, in verifyTemplateExistence
Exception: Kit 'ba_nco' is not defined or has not been loaded for this map.
[13.4571675876] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12B09370> <game.plugins.limitKit.limitKitNCO object at 0x12B09370>:
Kit limit for slot 6 of team 1 has not been defined.
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 132, in on_round_start
Exception: Kit limit for slot 6 of team 1 has not been defined.
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:37:00.091000 (wall time: 13.4571675876) ******
[13.4571675876] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4571675876] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.4571675876] gameplayPlugin::warn: exception in plugin.bf2_init <game.plugins.limitKit.limitKitNCO object at 0x12B5C590>:
Kit 'ba_nco' is not defined or has not been loaded for this map.
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 281, in bf2_init
File "python/game/plugins/limitKit.py", line 679, in bf2_init
File "python/game/plugins/limitKit.py", line 587, in __init__
File "python/game/plugins/limitKit.py", line 453, in __init__
File "python/game/utilities.py", line 650, in verifyTemplateExistence
Exception: Kit 'ba_nco' is not defined or has not been loaded for this map.
[13.4571675876] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12B5C590> <game.plugins.limitKit.limitKitNCO object at 0x12B5C590>:
Kit limit for slot 6 of team 1 has not been defined.
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 132, in on_round_start
Exception: Kit limit for slot 6 of team 1 has not been defined.
After that I updated the init.con and tmp.con, too and replaced the tommyGunS NCO with the standart BA_NCO. That lead to a ctd again with this log about a variable error again.
Spoiler
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:42:13.306000 (wall time: 13.6101303138) ******
[13.6101303138] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.6101303138] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.6101303138] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12AEF410> <game.plugins.limitKit.limitKitNCO object at 0x12AEF410>:
local variable 's' referenced before assignment
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 137, in on_round_start
UnboundLocalError: local variable 's' referenced before assignment
****** beda_fomm, gpm_coop, 64 - 2014-11-15 22:42:13.533000 (wall time: 13.6101303138) ******
[13.6101303138] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.6101303138] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.6101303138] gameplayPlugin::warn: exception in plugin.round_start <game.plugins.limitKit.limitKitNCO object at 0x12AEA090> <game.plugins.limitKit.limitKitNCO object at 0x12AEA090>:
local variable 's' referenced before assignment
Traceback (most recent call last):
File "python/game/gameplayPlugin.py", line 302, in round_start
File "python/game/plugins/limitKit.py", line 630, in round_start
File "python/game/plugins/limitKit.py", line 137, in on_round_start
UnboundLocalError: local variable 's' referenced before assignment
No stubbfan, it shouldn't (I suppose). The rifleNCO should be initialized for the gpm_coop mode. the sp3 is another story and has no impact on the gpm_coop. I'm always running the coop mode.
@gavrant: Here you go
init.con:
Spoiler
rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor
run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\beda_fomm\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor
else
run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\beda_fomm\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
endIf
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "IT"
gameLogic.setTeamName 2 "GB"
gameLogic.setTeamLanguage 1 "FH2Italian"
gameLogic.setTeamLanguage 2 "FH2British"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_it"
gameLogic.setTeamFlag 2 "flag_gb"
gameLogic.setKit 1 0 "IA_ScoutK98Short" "ia_light_soldier"
gameLogic.setKit 2 0 "BA_ScoutEarly" "ba_light_soldier"
gameLogic.setKit 1 1 "IA_Limited_Assault_Beretta38_K98" "ia_heavy_soldier"
gameLogic.setKit 2 1 "BA_Limited_Assault_TommygunD_No4" "ba_heavy_soldier"
gameLogic.setKit 1 2 "IA_RiflemanK98" "ia_light_soldier"
gameLogic.setKit 2 2 "BA_RiflemanEarly" "ba_light_soldier"
gameLogic.setKit 1 3 "IA_Limited_Support_MG34_K98" "ia_light_soldier"
gameLogic.setKit 2 3 "BA_Limited_Support_Bren_No4" "ba_heavy_soldier"
gameLogic.setKit 1 4 "ia_EngineerK98Short" "ia_light_soldier"
gameLogic.setKit 2 4 "BA_EngineerEarly" "ba_light_soldier"
gameLogic.setKit 1 5 "ia_ATPzB39_Limited" "ia_heavy_soldier"
gameLogic.setKit 2 5 "BA_ATBoys_Limited" "ba_heavy_soldier"
gameLogic.setKit 1 6 "IA_NCOBeretta38" "ia_light_soldier"
gameLogic.setKit 2 6 "BA_NCOTommygunS" "ba_light_soldier"
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera -452/26/82 -9/6/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 500
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 200
gameLogic.setDefaultNumberOfTicketsEx 16 2 200
gameLogic.setDefaultNumberOfTicketsEx 32 1 250
gameLogic.setDefaultNumberOfTicketsEx 32 2 250
gameLogic.setDefaultNumberOfTicketsEx 64 1 350
gameLogic.setDefaultNumberOfTicketsEx 64 2 350
gameLogic.setDefaultNumberOfTicketsEx 128 1 350
gameLogic.setDefaultNumberOfTicketsEx 128 2 350
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 4
gameLogic.setTicketLossPerMin 2 4
rem -----------------------------------------------------------------------------
rem -----------------------------------------------------------------------------
renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
tmp.con:
Spoiler
rem $fh2_donotread
rem *** KIT LOADERS ***
rem *** autogenerated ***
run ../../objects/kits/ia/ia_ncoberetta38.inc
run ../../objects/kits/spawnable/ga_pickupsapperk98short.inc
run ../../objects/kits/spawnable/ba_pickuppilotwebley.inc
run ../../objects/kits/spawnable/ga_pickupgrenadierk98.inc
run ../../objects/kits/spawnable/ba_pickupsniperno4.inc
run ../../objects/kits/ba/ba_scoutearly.inc
run ../../objects/kits/spawnable/ga_pickuptankhunterk98short.inc
run ../../objects/kits/spawnable/ia_pickupsappercarcano38.inc
run ../../objects/kits/spawnable/ba_pickuptankhunterno4short.inc
run ../../objects/kits/ia/ia_limited_support_mg34_k98.inc
run ../../objects/kits/ba/ba_limited_support_bren_no4.inc
run ../../objects/kits/ia/ia_engineerk98short.inc
run ../../objects/kits/spawnable/ia_pickupsupportbreda.inc
run ../../objects/kits/ia/ia_atpzb39_limited.inc
run ../../objects/kits/ba/ba_riflemanearly.inc
run ../../objects/kits/spawnable/ga_pickuppilotp08.inc
run ../../objects/kits/ia/ia_scoutk98short.inc
run ../../objects/kits/ba/ba_ncotommygunS.inc
run ../../objects/kits/spawnable/ia_pickuptankhuntercarcano38.inc
run ../../objects/kits/ba/ba_atboys_limited.inc
run ../../objects/kits/spawnable/ba_pickupantitankboys.inc
run ../../objects/kits/spawnable/ba_pickupsupportbrenmk1.inc
run ../../objects/kits/spawnable/ba_pickupsapperno4short.inc
run ../../objects/kits/ba/ba_engineerearly.inc
run ../../objects/kits/ba/ba_limited_assault_tommygund_no4.inc
run ../../objects/kits/ia/ia_riflemank98.inc
run ../../objects/kits/spawnable/ga_pickupsupportmg34.inc
run ../../objects/kits/spawnable/ga_pickupsniperk98.inc
run ../../objects/kits/spawnable/ba_pickupgrenadierno4.inc
run ../../objects/kits/spawnable/ga_pickupantitankpzb39.inc
run ../../objects/kits/ia/ia_limited_assault_beretta38_k98.inc
run ../../objects/kits/spawnable/ia_pickuppilotberetta34.inc
rem *** KITSETS ***
run ../../objects/kits/ia/ia_kits.inc
run ../../objects/kits/ba/ba_kits.inc
rem *** KIT SPAWNERS ***
run ../../objects/kits/ia/ia_kits_spawner.inc
run ../../objects/kits/ba/ba_kits_spawner.inc
rem *** END OF AUTO_GENERATED PART ***
rem $fh2_read
Another info on the CTD: it happens right after the click on "Join" when I host a local game or right after the 100% loaded when starting up a local dedicated server. I'm not even ingame on the deployment screen with no kits available like after the 2.45 patch with the .tmp issue back then.
EDIT: py warn messages ingame are on thing. They usually, as you pointed out, don't lead to ctds and don't affect the gameplay. But the logs show some exception errors and that seem to cause the crashes, if I'm not mistaken.
Try this mapdata.py:
Spoiler
from game.plugins import plugin, limitKit, ticketLoss, NCOrifleData
gpm_coop = {
64: [
plugin(limitKit, team = 1, slot = 0, limit = 4.0/32.0, kit = "IA_ScoutK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 1, limit = 6.0/32.0, kit = "IA_Limited_Assault_Beretta38_K98", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 1, slot = 2, limit = 9.0/32.0, kit = "IA_RiflemanK98", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 3, limit = 6.0/32.0, kit = "IA_Limited_Support_MG34_K98", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 4, limit = 4.0/32.0, kit = "ia_EngineerK98Short", soldier = "ia_light_soldier"),
plugin(limitKit, team = 1, slot = 5, limit = 4.0/32.0, kit = "ia_ATPzB39_Limited", soldier = "ia_heavy_soldier"),
plugin(limitKit, team = 2, slot = 0, limit = 4.0/32.0, kit = "BA_ScoutEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 1, limit = 6.0/32.0, kit = "BA_Limited_Assault_TommygunD_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 2, limit = 9.0/32.0, kit = "BA_RiflemanEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 3, limit = 6.0/32.0, kit = "BA_Limited_Support_Bren_No4", soldier = "ba_heavy_soldier"),
plugin(limitKit, team = 2, slot = 4, limit = 4.0/32.0, kit = "BA_EngineerEarly", soldier = "ba_light_soldier"),
plugin(limitKit, team = 2, slot = 5, limit = 4.0/32.0, kit = "BA_ATBoys_Limited", soldier = "ba_heavy_soldier"),
plugin(NCOrifleData, kits = ('IA_NCOBeretta38', 'BA_NCOTommygunS'), soldiers = ("ia_light_soldier", "ba_light_soldier")),
],
}
sp3 = gpm_coop
Note, it should fix Python warnings but not CTDs. For CTDs, try launching the map in the local game in the windowed mode, perhaps the game will show the error then.
Well, thanks, I suppose.
That seems to have solved the issue with the NCO and Kit limits. Now the log is significantly shorter. However the CTD is still there.
log:
Spoiler
****** beda_fomm, gpm_coop, 64 - 2014-11-15 23:33:02.841000 (wall time: 13.7431609299) ******
[13.7431609299] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.7431609299] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
****** beda_fomm, gpm_coop, 64 - 2014-11-15 23:33:03.070000 (wall time: 13.7431609299) ******
[13.7431609299] aiFixups::warn: ControlPoint British_7th_Armored_Division_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
[13.7431609299] aiFixups::warn: ControlPoint Italian_10th_Army_64: an unableToChangeTeam CP with incoming neighboring strategic areas.
But these are only warnings. They shouldn't cause CTDs. So I guess the error must lay somewhere else. I'll have investigate further. Unfortunatly the log doesn't seem to be much of a help from now on.
Copy the following code to GameModes\gpm_coop\64\AI\StrategicAreas.ai in server.zip:
Spoiler
rem *** Create strategic areas ***
aiStrategicArea.createFromControlPoint Agedabia_64 1 1000000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint Antelat_64 305 1000000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint Beda_Fomm_East_64 304 1000000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint Beda_Fomm_West_64 302 1000000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint British_7th_Armored_Division_64 301 100000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint Italian_10th_Army_64 303 100000
aiStrategicArea.layer 1
aiStrategicArea.createFromControlPoint Sidi_Saleh_64 2 1000000
aiStrategicArea.layer 1
aiStrategicArea.setActive Agedabia_64
AIStrategicArea.addNeighbour Beda_Fomm_West_64
AIStrategicArea.addNeighbour Sidi_Saleh_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry -770.064/24.865/-676.934
AIStrategicArea.setOrderPosition Vehicle -764.82/24.865/-670.745
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 22.6274
aiStrategicArea.setActive Antelat_64
AIStrategicArea.addNeighbour Sidi_Saleh_64
AIStrategicArea.addNeighbour British_7th_Armored_Division_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry 379.724/36.0625/-68.6586
AIStrategicArea.setOrderPosition Vehicle 385.362/36.0625/-66.284
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 25.4558
aiStrategicArea.setActive Beda_Fomm_East_64
AIStrategicArea.addNeighbour Beda_Fomm_West_64
AIStrategicArea.addNeighbour Sidi_Saleh_64
AIStrategicArea.addNeighbour Italian_10th_Army_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry -362.796/24.175/116.441
AIStrategicArea.setOrderPosition Vehicle -377.933/24.175/107.802
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 56.5685
aiStrategicArea.setActive Beda_Fomm_West_64
AIStrategicArea.addNeighbour Beda_Fomm_East_64
AIStrategicArea.addNeighbour Agedabia_64
AIStrategicArea.addNeighbour Sidi_Saleh_64
AIStrategicArea.addNeighbour Italian_10th_Army_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry -515.13/24.175/70.233
AIStrategicArea.setOrderPosition Vehicle -506.934/24.175/83.7643
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 56.5685
aiStrategicArea.setActive British_7th_Armored_Division_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry 833.684/25.725/156.979
AIStrategicArea.setOrderPosition Vehicle 834.474/25.725/157.519
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 2.82843
aiStrategicArea.setActive Italian_10th_Army_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry 835.619/25.725/157.908
AIStrategicArea.setOrderPosition Vehicle 831.587/25.725/160.371
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 2.82843
aiStrategicArea.setActive Sidi_Saleh_64
AIStrategicArea.addNeighbour Beda_Fomm_West_64
AIStrategicArea.addNeighbour Beda_Fomm_East_64
AIStrategicArea.addNeighbour Antelat_64
AIStrategicArea.addNeighbour Agedabia_64
aiStrategicArea.addObjectTypeFlag ControlPoint
AIStrategicArea.setOrderPosition Infantry -273.953/27.39/-393.533
AIStrategicArea.setOrderPosition Vehicle -276.627/27.39/-399.943
aiStrategicArea.setSide 0
aiStrategicArea.vehicleSearchRadius 22.6274
This will fix the warnings. I also took the liberty of slightly improving AI spawning in there.
ESAI was removed in 2.48 because the amount of issues it started to cause exceeded the amount of issues it supposedly fixed.