Post by Erebus on Jul 11, 2018 15:12:57 GMT
Coordinate Equations for World Conquest 4
hex
up -94
down +94
left -1
Right +1
Sequence in conquest btl file
1. Number
2. Country
3. Territory
4. Ownership
5. City
6. Unit
7. Mines
8. Action
9. Weather
10. Events
11. Auto production Unit
12. Air Force
13. Flag
14. Air Force
Territory are 296 bytes per line
Unit and city ownership is 148 bytes per line
City are 32 bytes per line
Units are 48 bytes per line
Auto production Unit are 80 bytes per line
Event are 44 bytes per line
The setting to makes it easier to see it in a row.
WC4 An City part example: Seoul
75 0C A6 00 0F 01 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0D 00 02 00 02 01 00 00 00 00
75 0C is the coordinate value.
A6 is the name of the city.
The 0F 01 is a city level.
08 is Capital
and city buildings, see 02 00 02 01 00 00 00
Factory, science, cure, airport, missile, nuclear
02 Windmill
03 Village
0b City 1
0c City 2
0d City 3
0e City 4
0f City 5
10 City 6
11 City 7
12 City 8
13 City 9
15 Plant
16 Factory
17 Nuclear Power
1f Port 1
20 Port 2
21 Port 3
22 Port 4
0B Anti-air Gun 1
0C Anti-air Gun 2
0d Anti-air Gun 3
0e Anti-air Gun 4
15 Anti-air Artillery 1
16 Anti-air Artillery 2
17 Anti-air Artillery 3
18 Anti-air Artillery 4
1F Anti-air Missile 1
20 Anti-Air Missile 2
21 Anti-Air Missile 3
22 Anti-Air Missile 4
If you want to add a city, add 32 bytes.
If you change the coordinates, it becomes a new city.
+1 city is completed with the number of cities previously notified.
In addition, cities must have both local and private ownership.
Auto production Unit is
In the case of AI, certain country, certain turn, certain city (except EW6 general certain city conditions) are units production without dosen't spending money. 80 byte
ex: Original wc4 1939 Rommel(heavy tank stack 1 level 2) production at Cologne turn 4
97 07(coordinate) 00 00 09 (army)00 00 00 02(level) 00 00 00 01(stack) 00 00 00 01(movement lock) 00 00 00 00 00 00 00 00 00 00 00 7B 71(general number) 00 00 09(general rank) 00 00 00 01(general rank) 00 00 00 01(Skill Level) 00 00 00 01(Skill Level) 00 00 00 02(Skill Level) 00 00 00 00(Skill Level) 00 00 00 00(Skill Level) 00 00 00 F8 03(general medal) 00 00 00 00 00 00 00 00 00 00 01(country) 00 00 00 03(turn) 00 00 00
Auto production Unit(Airforce) is
As with Auto production unit, if conditions designated certain turn&country, used according to without consuming resources. 16 byte
ex: Original wc4 1950 Soviet Union production LRB Missile with Atomic Bomb turn 4
1B(Airforce id) 00 00 00 1D(nuclear) 00 00 00 04(country) 00 00 00 0A(turn) 00 00 00
+ Territory map, circled part is London
european-war-4.boards.net/thread/10364/wc4-basic-files