How to merge templates with wordpad/notepad by lowfighter
It is quite easy once you get familiarised with the way a mission file looks as opened with wordpad/notepad. Here's a simple example
Task: there are two airfield templates Airfield1_template.mis and Airfield2_template.mis, We want to merge them in a single mission say merge.mis.
There are no airplanes in the templates but possibly moving armor, ships artilery, buildings, fires etc.
Open the templates with wordpad: They look like below, but perhaps with hundreds/thousands of entries:
Airfield1_template.mis
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
1_Chief Armor.1-ValentineII 1
2_Chief Armor.1-ValentineII 1
[1_Chief_Road]
74045.02 130462.93 120.00 0 2 2.3616
73193.55 129245.57 120.00
[2_Chief_Road]
73285.88 129190.86 120.00 0 2 2.3611
74161.28 130438.99 120.00
[NStationary]
1_Static vehicles.artillery.Artillery$T40S 1 73392.79 129251.91 490.00 0.0
2_Static vehicles.stationary.Stationary$ZIS5_PC 1 73438.62 129220.16 390.00 0.0
[Buildings]
0_bld House$AirdromeBarrelBlock1 1 128776.64 90996.38 530.00
1_bld House$AirdromeBarrelBlock1 1 67387.30 146091.86 530.00
[StaticKachaCamera]
51178 86176 100
[Bridge]
32 +7
[House]
H2gK1 ++v
G2gK1 +
Airfield2_template.mis:
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
1_Chief Vehicles.ZIS5_PC 2
2_Chief Vehicles.ZIS5_PC 2
[1_Chief_Road]
34100.55 89289.04 120.00 0 8 3.055555582046509
37704.62 91380.14 120.00
[2_Chief_Road]
34007.45 89216.38 120.00 0 8 3.055555582046509
37770.36 91361.39 120.00
[NStationary]
1_Static vehicles.stationary.Stationary$SdKfz251 2 37434.96 91286.47 719.77 0.0
2_Static vehicles.stationary.Stationary$SdKfz251 2 37466.24 91286.70 719.77 0.0
[Buildings]
1_bld House$AirdromeMaskingnet 1 10240.92 142020.12 537.68
2_bld House$FurnitureTreeLine 1 10283.31 142044.32 622.68
[StaticCamera]
51178 86176 100
18935 113202 20
[Bridge]
32 +7
[House]
H2gK1 ++v
G2gK1 +
[Chiefs] contain moving ground objects from: 'armour', 'vehicles' and 'ships' menus of Full mission Builder editor.
[NStationary] contain static ground objects from 'stationary armour' 'artilery','static ships','static objects' menus.
[Buildings] contain static ground objects from 'objects' menu
Example of [buildings] line:
352_bld House$AirdromeMaskingnet 1 10240.92 142020.12 537.68
index of item# type of object# normal(1) or destroied (0)# x and y coordinates# orientation
Merging the two airfield templates in one mission, merge.mis
At the beginning the merge.miss is empty:
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
[NStationary]
[Buildings]
[StaticCamera]
[Bridge]
[House]
Copy the items from [Nstationary] from both templates and paste in merge.mis. The result:
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
[NStationary]
1_Static vehicles.artillery.Artillery$T40S 1 73392.79 129251.91 490.00 0.0
2_Static vehicles.stationary.Stationary$ZIS5_PC 1 73438.62 129220.16 390.00 0.0
1_Static vehicles.stationary.Stationary$SdKfz251 2 37434.96 91286.47 719.77 0.0
2_Static vehicles.stationary.Stationary$SdKfz251 2 37466.24 91286.70 719.77 0.0
[Buildings]
[StaticCamera]
[Bridge]
[House]
Now see that you have 4 items pasted but the INDEX of item 1 and item 3 is the SAME. Don't worry, even if the index is the same FMB will not get confused and you will get the 4 items right in the mission.
The same with items from [Buildings], index doesn't matter. Merge.mis looks now:
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
[NStationary]
1_Static vehicles.artillery.Artillery$T40S 1 73392.79 129251.91 490.00 0.0
2_Static vehicles.stationary.Stationary$ZIS5_PC 1 73438.62 129220.16 390.00 0.0
1_Static vehicles.stationary.Stationary$SdKfz251 2 37434.96 91286.47 719.77 0.0
2_Static vehicles.stationary.Stationary$SdKfz251 2 37466.24 91286.70 719.77 0.0
[Buildings]
0_bld House$AirdromeBarrelBlock1 1 128776.64 90996.38 530.00
1_bld House$AirdromeBarrelBlock1 1 67387.30 146091.86 530.00
1_bld House$AirdromeMaskingnet 1 10240.92 142020.12 537.68
2_bld House$FurnitureTreeLine 1 10283.31 142044.32 622.68
[StaticCamera]
[Bridge]
[House]
What about the [Chiefs]? If two Chiefs have the same index only the first Chief will appear in mission.
Easy remedy. Let's take the Chiefs in Airfield1_template.mis:
Code:
[Chiefs]
1_Chief Armor.1-ValentineII 1
2_Chief Armor.1-ValentineII 1
[1_Chief_Road]
74045.02 130462.93 120.00 0 2 2.3616
73193.55 129245.57 120.00
[2_Chief_Road]
73285.88 129190.86 120.00 0 2 2.3611
74161.28 130438.99 120.00
Lets relabel them by wordpad's "find and replace" option:
place the cursor after [Chiefs] line,
find "Chief" and replace with "ChiefAirfield1"
The result:
Code:
[Chiefs]
1_ChiefAirfield1 Armor.1-ValentineII 1
2_ChiefAirfield1 Armor.1-ValentineII 1
[1_ChiefAirfield1_Road]
74045.02 130462.93 120.00 0 2 2.3616
73193.55 129245.57 120.00
[2_ChiefAirfield1_Road]
73285.88 129190.86 120.00 0 2 2.3611
74161.28 130438.99 120.00
Optionally you can do the same with the Chiefs from Airfield1_template.miss. The result:
Code:
[Chiefs]
1_ChiefAirfield2 Vehicles.ZIS5_PC 2
2_ChiefAirfield2 Vehicles.ZIS5_PC 2
[1_ChiefAirfield2_Road]
34100.55 89289.04 120.00 0 8 3.055555582046509
37704.62 91380.14 120.00
[2_ChiefAirfield2_Road]
34007.45 89216.38 120.00 0 8 3.055555582046509
37770.36 91361.39 120.00
Now one can safely paste the Chiefs in the merge.mis:
result:
Code:
[MAIN]
MAP Stgrad/sload.ini
TIME 18.5
CloudType 1
CloudHeight 1500.0
army 2
playerNum 0
[Chiefs]
1_ChiefAirfield1 Armor.1-ValentineII 1
2_ChiefAirfield1 Armor.1-ValentineII 1
1_ChiefAirfield2 Vehicles.ZIS5_PC 2
2_ChiefAirfield2 Vehicles.ZIS5_PC 2
[1_ChiefAirfield1_Road]
74045.02 130462.93 120.00 0 2 2.3616
73193.55 129245.57 120.00
[2_ChiefAirfield1_Road]
73285.88 129190.86 120.00 0 2 2.3611
74161.28 130438.99 120.00
[1_ChiefAirfield2_Road]
34100.55 89289.04 120.00 0 8 3.055555582046509
37704.62 91380.14 120.00
[2_ChiefAirfield2_Road]
34007.45 89216.38 120.00 0 8 3.055555582046509
37770.36 91361.39 120.00
[NStationary]
1_Static vehicles.artillery.Artillery$T40S 1 73392.79 129251.91 490.00 0.0
2_Static vehicles.stationary.Stationary$ZIS5_PC 1 73438.62 129220.16 390.00 0.0
1_Static vehicles.stationary.Stationary$SdKfz251 2 37434.96 91286.47 719.77 0.0
2_Static vehicles.stationary.Stationary$SdKfz251 2 37466.24 91286.70 719.77 0.0
[Buildings]
0_bld House$AirdromeBarrelBlock1 1 128776.64 90996.38 530.00
1_bld House$AirdromeBarrelBlock1 1 67387.30 146091.86 530.00
1_bld House$AirdromeMaskingnet 1 10240.92 142020.12 537.68
2_bld House$FurnitureTreeLine 1 10283.31 142044.32 622.68
[StaticCamera]
[Bridge]
[House]
Merge.mis is ready for opening in FMB.
All credit for this tutorial goes to the Author,lowfighter