modding the static units

Post new mods and scenarios here.
Post Reply
Manu
Posts: 186
Joined: Thu Jul 22, 2010 4:07 pm
Contact:

modding the static units

Post by Manu »

Is it possible or will it be possible for the modders to choose the emplacement of the static units on the battle map? Are they simply noted in a txt file? How does it work?
Thanks
7A_karlmortar
Posts: 16
Joined: Fri Sep 24, 2010 5:03 pm

RE: modding the static units

Post by 7A_karlmortar »

Yepp you can modify them fairly easy since everything is in a txt file with some text collums who explains what some of the numbers mean.
I recomend that you open the txt in Excel however, because everything is displayed in a more structured manner than in notepad.

You can remove or create static BGs and put them anywhere on the strategic map. You can also decide what kind of units each BG should have and you can even decide if for example a 8.8cm FlaK 36 should only be able to delpoy to a predetermind location on the map. You just have to put in the exact cordinate from the map.
Look at a map with static guns to get some idea how things works.
xe5
Posts: 783
Joined: Sun May 03, 2009 5:06 pm

RE: modding the static units

Post by xe5 »

Static BGs are defined in Data/Base/StaticBGs.txt. The "legend" is found at the end after the last Static BG section.

Each Static BG has:
Index #
Name (used nowhere else in-game)
Side (0=Allies; 1=Axis)
Map# (see the CCLSA Strat Map Connections image in the Documentation folder)
5 rows of data, 1 row for each Difficulty Level, starting with Elite, down to Recruit
Each row of data can contain up to 30 columns, each column alternating between Team Class #s (see Data/Base/*Teams.txt) and Elevation Tile #s.
'-1' values = nothing -OR- "free deploy"



Image
Attachments
StaticBG_txt.jpg
StaticBG_txt.jpg (64.35 KiB) Viewed 265 times
xe5
Posts: 783
Joined: Sun May 03, 2009 5:06 pm

RE: modding the static units

Post by xe5 »

Elevation Tile #s can be determined using Mafi's 5CC Map tool (Open the Visibility menu, select 'Show Coordinates').
FYI, Elevation Tiles (8 square meters) are comprised of 4x4 Terrain Elements (2 square meters each).
If you open a *Map.txt file in Excel, each row of data comprises one Elevation Tile, the row # also being the Elevation Tile #.

The 5CC image below shows how Axis Team Class# 145 (Luftwaffe 8.8cm FlaK36) in the Static "FLAK" BG from above, is "locked" to be deployed inside the weapon pit (Elev Tile# 1080) on Son.

Image
Attachments
ElevTile1.jpg
ElevTile1.jpg (84.21 KiB) Viewed 262 times
Manu
Posts: 186
Joined: Thu Jul 22, 2010 4:07 pm
Contact:

RE: modding the static units

Post by Manu »

ok thanks. It gives me some ideas...
xe5
Posts: 783
Joined: Sun May 03, 2009 5:06 pm

RE: modding the static units

Post by xe5 »

Copy/paste "blocks" of static BG data to add more.
Change the first value in the file to reflect the total quantity of static BGs.
Number the index #s for the new BGs sequentially.
All static BGs have to be on the same side (Axis/Allied).
User avatar
Andrew Williams
Posts: 3862
Joined: Mon Jan 08, 2001 10:00 am
Location: Australia
Contact:

RE: modding the static units

Post by Andrew Williams »

All static BGs have to be on the same side (Axis/Allied).

All bridge repairs had to be done by the same side too - Allied only in 2010 release.

i wonder if that has changed with the re-re-release in 2011.
ImageImage
Post Reply

Return to “Mods and Scenarios”