modding sea zones to patrol

Post bug reports and ask for help here.
Post Reply
Radar8717
Posts: 39
Joined: Fri Aug 03, 2007 1:26 pm
Location: Minnesota

modding sea zones to patrol

Post by Radar8717 »

From the ai_data

How do you interpret the following numbers from 1939 Great Britain?

SeaZonesToPatrol;2;0;3;0;4;0;5;0;6;0;7;0;73;0;74;0;75;0;;;;;;

Does each number refer to a particular sea zone? What do the actual numbers mean, perhaps a percentage?
I wish to modify a sea zone's number to make sure it is, or is not patrolled. Thanks for a great game.
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: modding sea zones to patrol

Post by doomtrader »

Every name indicates a sea zone and behavior of the fleet in there.
Name of the sea zones can be found in sea_nodes.csv.
Trough events you can define which sea zones should be covered by AI in certain situations
Radar8717
Posts: 39
Joined: Fri Aug 03, 2007 1:26 pm
Location: Minnesota

RE: modding sea zones to patrol

Post by Radar8717 »

These are the first 10 listed in the 1939 sea_nodes file:

1;1;Baltic sea;1030;719;-1;-1
2;1;North sea;660;742;-1;-1
3;1;North East Atlantic;230;800;-1;-1
4;1;Central East Atlantic;260;1200;-1;-1
5;1;West Mediterranean Sea;703;1255;-1;-1
6;1;Central Mediterranean Sea;1032;1310;-1;-1
7;1;East Mediterranean Sea;1279;1395;-1;-1
8;1;Black Sea;1385;1187;-1;-1
9;0;Helsinki;1186;598;161;44
10;0;Leningrad;1307;621;172;44

How do they (above) correspond by sequence into the ai_data 1939 Great Britain file (below)?

SeaZonesToPatrol;2;0;3;0;4;0;5;0;6;0;7;0;73;0;74;0;75;0;;;;;;

There are 18 sea zones defined in the 1939 scenario and there are 18 sequential numbers in the ai_data 1939 Great Britain. How do I match them up? For example which one is the North Sea in the SeaZonesToPatrol ? Thanks again.
User avatar
doomtrader
Posts: 5319
Joined: Tue Jul 22, 2008 5:21 am
Location: Poland
Contact:

RE: modding sea zones to patrol

Post by doomtrader »

The AI data file might be translated to something like that:
SeaZonesToPatrol;North sea;Regular;North East Atlantic;Regular;Central East Atlantic;Regular;(...)
Which means that AI will send ships to the Sea zones IDs as regular ships.

In other words the numbers are paired and the first number in pair is responsible for Sea Zone ID (first number in sea_zones.csv), and the second one is responsible for setting fleet behavior (regular or rider).

For example if you will change the entry to something like that:
SeaZonesToPatrol;2;1;
then it will means that the AI will send ships only to North sea in raider mode.
Post Reply

Return to “Tech Support”