PMC Theater TCL scripts rewrite project

F4Browse, CATE, Tacedit, Terrainview & TheaterMaker etc utility related

Moderators: Lone Wolf, Snake Man

Post Reply
Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

PMC Theater TCL scripts rewrite project

Post by Snake Man » 2010-05-07 10:10:01

I started to test if I could improve the TCL scripts used by PMC theaters so far and I think I've now rewritten some of them into much more organized and efficient manner.

Here is simple example of Afghanistan Enduring Freedom save0.cam campaign script "index" script:

Code: Select all

#
# Afghanistan - save 0
#

# airdefenses
source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\create.PMC.Airdefenses.tcl"

# load in some routines
source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\create.Squadron.tcl"

# run blufor squadrons
source "afghanistan_save0_ef_squadrons_blufor.tcl"

# run blufor squadrons helicopters
source "afghanistan_save0_ef_squadrons_helicopters_blufor.tcl"

# run opfor squadrons
source "afghanistan_save0_ef_squadrons_opfor.tcl"

# run opfor squadrons helicopters
source "afghanistan_save0_ef_squadrons_helicopters_opfor.tcl"

# run blufor squadrons carriers
source "afghanistan_save0_ef_squadrons_blufor_carriers.tcl"

printout "blufor ground forces..."
source "afghanistan_save0_ef_ground_blufor.tcl"

printout "opfor ground forces..."
source "afghanistan_save0_ef_ground_opfor.tcl"

printout "thank you, have a nice day."
The whole purpose of rewriting the scripts was to split up as much "functionality" as possible. I don't like thousand line script file, I rather take ten scripts with hundred lines. Its much easier to read, debug and manage.

In this case we first run the default Tacedit airdefense and squadron function scripts, then we proceed with creating squadrons.

Squadrons are now split up to BLUFOR and OPFOR, more than that, the helicopter squadrons and aircraft carriers/squadrons are placed in their own script files.

Finally we run the ground forces, again each individual script file for BLUFOR and OPFOR. Of course ground forces are airdefenses and the normal moving ground units... but the airdefenses are placed separately at the top of this "index" script from its own file.

I really like this new system, its much more easier to manage than the older scripts I wrote so long time ago (for example ODS carriers are still created with the old method if anyone knows what I'm talking about heh).

Next on the this project is to change the "create.brig.bat.sub.tcl" script / system so the ground units are placed on objectives, instead of just x,y coordinates most of the time them being open ground where ground unit movement is very bad or no movement at all.

If anyone has any suggestions, feel free to post.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

lamurt
Recruit
Posts: 46
Joined: 2002-04-11 22:01:01
Location: izmir, Turkey
Contact:

Re: PMC Theater TCL scripts rewrite project

Post by lamurt » 2010-05-07 16:08:16

is it possible to reduce the amount of supplies and reduce priority of objectives etc. via tcl script?
-murad

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Re: PMC Theater TCL scripts rewrite project

Post by Snake Man » 2010-05-08 11:44:54

Changing Supply status, I'm not sure exactly. Changing priorities yes. But please this is not topic for generic TCL questions.

To get back on topic...

Does anyone have any suggestions for sort of OOB for those division sized ground forces which would be "realistic" to place in our non realistic theaters (not ODS 1991 or Vietnam)?

What I'm thinking is to have simple script function where you give it objective ID, blufor/opfor type and then it places whole division like M1A1 tanks, M2A2 bradleys, infantry, specops, artillery, engineers and supply vehicles. I found it tiresome to put down each individual battalion one by one, so simple function to place fully organized divisions at once would be great.

Oh and when I'm saying division that's just what I think they are, a damn big group of brigades -> battalions. If they are or can be called something else in more proper military terms, please let me know.

Right now I'm feeling out something like this in my test script:

Code: Select all

# brigade type
# 111 - hq
set brgtype 111

# batallion types
# 181 - M2A2 BCV
set battype 81

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 86 - armored
set brgtype 86

# batallion types
# 45 - M1A1
set battype 45

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 120 - Armored Cav
set brgtype 120

# batallion types
# 2620 - Cavalry M3A3
set battype 2520

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 87 - Mechanized
set brgtype 87

# batallion types
# 154 - M2A3
set battype 54

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 88 - infantry
set brgtype 88

# batallion types
# 827 - M-16
set battype 727

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# same

# batallion types
# 157 - Recon Squad (m16)
set battype 57

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 100 - marine
set brgtype 100

# batallion types
# 165 - USMC AAV7-A1
set battype 65

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 99 - Airmobile
set brgtype 99

# batallion types
# 163 - Air assault M-16
set battype 63

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 101 - Self Propelled Artillery
set brgtype 101

# batallion types
# 67 - sp guns M109
set battype 67

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 102 - Towed Artillery
set brgtype 102

# batallion types
# 170 - towed gun 155 Gun
set battype 70

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 110 - Engineer
set brgtype 110

# batallion types
# 79 - M113
set battype 79

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"

# brigade type
# 109 - Supply
set brgtype 109

# batallion types
# 177 - supply M978
set battype 77

source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\Func\\add.brigade.batallions.sub.tcl"
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

toonces
Brig. General
Posts: 484
Joined: 2008-07-20 19:43:12

Re: PMC Theater TCL scripts rewrite project

Post by toonces » 2010-05-16 13:39:16

I think this is a great idea SM.

Here is an example of what I did for Nevada, based more or less on a "real world" division. Yes, it's not entirely realistic.

NATO/Bluefor:

V Corps
11th ACR (11 Div)
1st Squadron (1 Bde)
A-D Troops (1-4 Bn)
2nd Squadron (2 Bde)
E-H Troops (1-4 Bn)
3rd Squadron (3 Bde)
I-L Troops (1-4 Bn)
** 41st Artillery Group (not currently present)

3rd Armored Division [Reinforcement D+12h]
1st Armored Brigade (1 Bde)
2-36 Mechanized Infantry Battalion (1 Bn)
3-36 Mechanized Infantry Battalion (2 Bn)
2-32 Armored Battalion (3 Bn)
2-33 Armored Battalion (4 Bn)
3-33 Armored Battalion (5 Bn)

11 Division has 3 brigades. Each brigade has 3 battalions of "Mech M2A3" and 1 battalion of "Armor M60" or "Armor M1A1" (4 total battalions).

Warsaw Pact/Opfor

Soviet Forces

8th Guards Army
20th Guards Motor Rifle Division (20 Div)
55th Guards Motor Rifle Regiment [GMRR] (55 Bde)
1-5 Bn
57 GMRR (57 Bde)
1-5 Bn
60 GMRR (60 Bde)
1-5 Bn

20 Division has 3 Brigades. Each Brigade as 5 Battalions. Each Battalion has "Armor Motor Rifle BMP-2".

It's been a while, but I believe the Motor Rifle Battalions give you a mix of both tanks and APCs. The exact composition will vary with which version of Falcon the theater installs to.

If you have a specific theater in mind to do this first, I recommend we chat about where to put the units. Obviously putting the units on/near objectives is the way to go. However, the next step would be to actually build the script to place units precisely; I believe this will yield much more pleasing results. I certainly have plenty of ideas.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Re: PMC Theater TCL scripts rewrite project

Post by Sherlock » 2010-05-16 18:52:38

Air Defense units are assigned as Corps assets in the US Army. Maybe you want to have a Corps-level TCL script to incorporate the typical manuver Corps of 3 divisions alongside Corps assets such as Air Defense and Additional Combat Service Support (CSS) units such as Nuclear/Biological/Chemical support units?
Sherlock
Victurous te Saluto

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests