From: Fishers Ferry
Deployment location, facing and Defend/Ambush stance can be customized for the AI and/or player using .bsf files. Initial movement and fire orders can also be issued.
Attached are two template .bsf files, Allied and Axis, which can be used to set custom deployments for command, infantry, mg, AT infantry and AT guns. Inf guns, HTs, and AFVs arent yet included because code samples for these werent on the Omahalanding.bsf I used as a reference.
After creating a custom scenario Deployment locations can be determined using the \Close Combat - The Bloody First\Campaigns\MAIN\DATA\BATTLES\mapname.bmp preview images which have measurement guides along the left and top edges. The .bsf coordinate system starts at lower left corner of the map not the upper left on these measurement guides. A unit that is dead center on a 256x512 map has the coordinates: (12800,25600).
The .bsf templates have blank x,y grid coordinate locations (000,000). Plug in the location coordinates as determined using the preview map, for each unit here.
The digit following the coordinates is facing: 0=N, 1=NE, 2=E, 3=SE, 4=S, 5=SW, 6=W, 7=NW.
The IssueUnitOrder is: (id,order#,-1,x,y,order#); order#: 0=Move, 1=Move Fast, 2=Sneak/Hunt, 3=Fire, 4=Smoke, 5=Defend, 6=Ambush.
eg. if a unit was coded to sneak to the center of a 256x512 map and assume a Defend stance it would look like:
To use a .bsf with a custom scenario file, add three lines after the Can Dig In line. The first two lines will contain 0. The third line points the scenario to the name given your new .bsf: SCRIPT .bsfname. NOTE: dont use the .bsf file extension here.
In the case of stock scenarios only the SCRIPT .bsfname line will need to be added.
Play the scenario you are creating a .bsf file for. Note on the Selection screen how many units of each type need to be specified in the .bsf template. Delete any unused unit slots on the template. Be careful to maintain the bracket structure. When in doubt, use the Omahalanding.bsf as a reference.
The .bsf file is placed in the \Close Combat - The Bloody First\Campaigns\MAIN\DATA\BATTLES\ folder. It doesnt have to have the same name as the battle(s) that point to it.
Custom deployments by .bsf dont prevent a player from repositioning or giving different orders to units.
< Message edited by ineffable -- 2/3/2020 3:16:24 AM >