Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Advanced Scenario Editing (OBSOLETE)

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> Advanced Scenario Editing (OBSOLETE) Page: [1]
Login
Message << Older Topic   Newer Topic >>
Advanced Scenario Editing (OBSOLETE) - 11/26/2018 2:09:39 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline
This thread has tips for advanced scenario editing, based on the build v1.000.

In a scenario, there can be 'no-go zones' that restrict movement, 'destruction zones' where all buildings are converted into rubble and trees are burnt, and 'water crossing points' that convert deep water into passable water. These are read from the scenario's 'zones.bmp' file. In the Battle Generator objectives screen, click the 'READ 'zones.bmp'' button to read the 'zones.bmp' file in the data\scenario\user folder. The image size must match the scenario sector size in pixels, shown top-right between the brackets. The image uses an 8 bit grayscale BMP format. When the scenario is saved, the file is automatically copied to the generated scenario folder.

The zones.bmp file is a grayscale image. The colors are:

No-go zones: 0
Destruction zones: 64
Water crossing points: 128
Passable terrain: 255

In the data\scenario\development.cfg file you can enable the 'developer mode' by changing the developerMode value from '0' to '1'. This enables a few additional hotkeys. You'll find them in the hotkeys menu under 'developer mode'. Most importantly, Control+Shift+D shows all the AI units, formations and 'main groups' and their paths.

If the developer mode is enabled, then the player side formation positions and shapes can be edited in-game. There are two places to launch the scenario edit mode:

1. The Battle Generator. In the 'mission options' screen, save the scenario and click 'EDIT'.
2. In the scenario selection menu. Select the scenario and click 'EDIT'.

Note: Only the 'user' folder scenarios can be edited, not the 'default' folder official scenarios.

In the scenario edit mode you can move the player formations to their default positions and change the formation orientation, shape, spacing and pathfinding. In the right-click menu you can 'LOCK' the formation, so the player cannot change its default position in the battle setup phase. Also, a mechanized formation can start with its units mounted or dismounted. After you are done, click the 'SAVE SCENARIO' button.

The locked 'player character' unit must be assigned, if it was enabled in the scenario launch options. If the option was enabled it will be saved in the scenario.xml file and cannot be changed without enabling the developer mode.

After a scenario has been saved, the scenario.xml file is generated. It contains editable scenario variables. The scenario.xml file in the folder can be edited manually, but be aware that changes can make the scenario unplayable. Here's a description of a few attributes you find there:

forceADescription: Force A briefing.

forceBDescription: Force B briefing.

objectiveX: You can change the objective name by editing 'name'.

forceXFormationN: Formation names can be edited here, e.g. 'Dismounted Scout Section'.

forceBPlayable: Set to 'FALSE' if the Force B should not be playable.

Other notes:

You may have noticed that if the Force A 'type' is set to 'dynamic' then the scenario is not playable as the Force B, because the Force A AI doesn't have the behavior template available (mechanized/armored/infantry).

About purchasing units: The purchase points should always be used as close to the maximum as possible (except if you're purchasing for the Force A in the 'dynamic' mode) so the Victory Point system functions optimally.

When editing the .xml or other files I strongly recommend using a more advanced editor than the standard Windows Notepad. It can corrupt the files. I use Notepad++.

In the future, there will be more flexible ways to move and rename objectives and designate zones in the scenario edit mode.

Making zones.bmp with Gimp:















The layers in Gimp:




< Message edited by Veitikka -- 10/7/2019 12:23:10 AM >


_____________________________

Know thyself!
Post #: 1
RE: Advanced Scenario Editing - 11/26/2018 2:48:01 PM   
exsonic01

 

Posts: 1131
Joined: 7/26/2016
From: Somewhere deep in appalachian valley in PA
Status: offline
quote:

ORIGINAL: Veitikka
This thread has tips for advanced scenario editing, based on the build v1.000.

In a scenario, there can be 'no-go zones' that restrict movement, 'destruction zones' where all buildings are converted into rubble and trees are burnt, and 'water crossing points' that convert deep water into passable water. These are read from the scenario's 'zones.bmp' file. In the Battle Generator objectives screen, click the 'READ 'zones.bmp'' button to read the 'zones.bmp' file in the data\scenario\user folder. The image size must match the scenario sector size in pixels, shown top-right between the brackets. The image uses an 8 bit grayscale BMP format. When the scenario is saved, the file is automatically copied to the generated scenario folder.

The zones.bmp file is a grayscale image. The colors are:

No-go zones: 0
Destruction zones: 64
Water crossing points: 128
Passable terrain: 255

Thanks for the info, but this is not what I'm asking. My question about no-go zone and water crossing point is about detail of "how" can players prepare "zones.bmp".

So, how can I edit the zones.bmp for to create new destruction zones and water crossing point? Is it possible for scenario designer to edit such no-go zone and water crossing point from in-game scenario editing mode? Or is this should be done by external programs like GIMP or photoshop?

If it requires the exgternal program GIMP or photoshop, could you upload or write tutorial how to create / edit zones.bmp for no-go zone, water crossing point, and etc?


ps) Thank you for GIMP guide!!

< Message edited by exsonic01 -- 11/27/2018 1:03:15 PM >

(in reply to Veitikka)
Post #: 2
RE: Advanced Scenario Editing - 11/26/2018 3:54:04 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Thanks for the advice.

I figured I'd ask this here: is there any way the scenario designer can influence the enemy AI's behavior at all e.g. number and placement of objectives? If so, I would like as many objectives as possible and the ability to choose which ones are dummies. Designers also would like to lock the enemy AI into good logical defensive positions with the ability to release them during the battle. This would allow some design creativity thereby encouraging the community to produce scenarios with a human touch. We all have our wish lists, but the lock function already exists for the player side and might be extended to cover the AI defensive set-up. Thanks.

Kevin


_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to exsonic01)
Post #: 3
RE: Advanced Scenario Editing - 11/26/2018 4:41:33 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: kevinkin

I figured I'd ask this here: is there any way the scenario designer can influence the enemy AI's behavior at all e.g. number and placement of objectives? If so, I would like as many objectives as possible


The number of objectives and their initial placement is set in the Battle Generator objectives screen.

quote:



and the ability to choose which ones are dummies.


If the player knows which objectives are dummies after playing the scenario for the first time, the scenario doesn't have any replay value.

quote:



Designers also would like to lock the enemy AI into good logical defensive positions with the ability to release them during the battle. This would allow some design creativity thereby encouraging the community to produce scenarios with a human touch. We all have our wish lists, but the lock function already exists for the player side and might be extended to cover the AI defensive set-up. Thanks.


At least the locking of defensive AI formations can be a good idea. I'll try it.


_____________________________

Know thyself!

(in reply to kevinkins)
Post #: 4
RE: Advanced Scenario Editing - 11/26/2018 5:07:19 PM   
22sec

 

Posts: 976
Joined: 12/11/2004
From: Jackson, MS
Status: offline

quote:

ORIGINAL: Veitikka


quote:

ORIGINAL: kevinkin

I figured I'd ask this here: is there any way the scenario designer can influence the enemy AI's behavior at all e.g. number and placement of objectives? If so, I would like as many objectives as possible


The number of objectives and their initial placement is set in the Battle Generator objectives screen.

quote:



and the ability to choose which ones are dummies.


If the player knows which objectives are dummies after playing the scenario for the first time, the scenario doesn't have any replay value.

quote:



Designers also would like to lock the enemy AI into good logical defensive positions with the ability to release them during the battle. This would allow some design creativity thereby encouraging the community to produce scenarios with a human touch. We all have our wish lists, but the lock function already exists for the player side and might be extended to cover the AI defensive set-up. Thanks.


At least the locking of defensive AI formations can be a good idea. I'll try it.



That last bit about trying to allow for us to lock defensive AI formations is big. Thanks for considering it.

_____________________________

Mapping Specialist

(in reply to Veitikka)
Post #: 5
RE: Advanced Scenario Editing - 11/26/2018 6:41:21 PM   
exsonic01

 

Posts: 1131
Joined: 7/26/2016
From: Somewhere deep in appalachian valley in PA
Status: offline
In the future, could you able to make it possible for scenario designers to place enemy recon unit in friendly main deploy zone, and vice versa? (Only for scenario editing mode, not normal mode)

I know that this game have penetrate option for dismounted infantry, but sometimes penetration is not enough. I served in Army (not US army though) as a LRRP team long ago, I served in recon battalion under infantry regiment. Depending on the scale of operation, we were able to infiltrate to AO long before any operation started. Or we even choose very long circumventing route to penetrate. This make it possible for us to infiltrate deep, hide, and observe enemy assets and HQ position and track them. Sometimes we attempt to raid on enemy HQ tent, but usually we call artillery or air strike. In this game, infiltration during set up phase is limited by enemy LOS. But in reality, (case by case) recon teams are able to infiltrate behind enemy line without being detected by several methods.

So, if this game allows to place recon team into enemy territory from set up zone during scenario edit mode, that would be help to create some interesting scenarios for scenario designers. Of course, there should be a limitation that such recon teams, placed deep in enemy deploy zone, should not have direct LOS from enemy. So, they should be hidden in mountains or buildings, and their default SOP value should be set as not engage against enemy right after start.

We could introduce one or two SF teams like GRU Spetsnaz, VDV Spetsnaz, Green Berets or Detla (I think it is possible to introduce them via database modding, as infantry team with very high training, morale, move speed, sight and detection, and etc. Maybe we can add some new weapon for them). Then, scenario designers can make some interesting scenarios. We could make hunting of SF teams, or assault on ammo depot or enemy artillery using SF teams, or combined assault of mech infantry + armor supported by spec ops / recon team in AO, and etc... Some of them were in our team's exercise scenario.

ps) Could you please help me with zones.bmp question I asked above? Thank you!

< Message edited by exsonic01 -- 11/26/2018 6:59:06 PM >

(in reply to 22sec)
Post #: 6
RE: Advanced Scenario Editing - 11/26/2018 7:42:33 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
But I asked if objectives (real or dummy) affect the AIs behavior i.e can the designer coax the AI around the battlefield (even a little bit) using objective placement? I think so. Please confirm. Replay value is maintained when the designer issues several files for the same scenario each with different dummy arrangements. Easy. Not an issue.

Thanks for looking at locked defensive positions. As you can see, some of us are trying to squeeze as much as possible out of capabilities of the current scenario design process as it stands with version 1.0.

kevin



< Message edited by kevinkin -- 11/26/2018 7:49:54 PM >


_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to Veitikka)
Post #: 7
RE: Advanced Scenario Editing - 11/26/2018 9:37:41 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: exsonic01

ps) Could you please help me with zones.bmp question I asked above? Thank you!


I updated the first post.


_____________________________

Know thyself!

(in reply to exsonic01)
Post #: 8
RE: Advanced Scenario Editing - 11/26/2018 10:00:06 PM   
Missouri_Rebel


Posts: 3065
Joined: 6/19/2006
From: Southern Missouri
Status: offline
Is there a way to edit a scenario to add more units and/or delete others?

_____________________________

**Those who rob Peter to pay Paul can always count on the support of Paul
**A government big enough to give you everything you want is a government big enough to take from you everything you have-Gerald Ford

(in reply to Veitikka)
Post #: 9
RE: Advanced Scenario Editing - 11/26/2018 10:37:13 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: exsonic01

In the future, could you able to make it possible for scenario designers to place enemy recon unit in friendly main deploy zone, and vice versa? (Only for scenario editing mode, not normal mode)


Perhaps this could be done with the 'infiltrate' command... giving the AI a very high rate of success or something.


_____________________________

Know thyself!

(in reply to exsonic01)
Post #: 10
RE: Advanced Scenario Editing - 11/26/2018 10:41:51 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: kevinkin

But I asked if objectives (real or dummy) affect the AIs behavior i.e can the designer coax the AI around the battlefield (even a little bit) using objective placement? I think so. Please confirm.


Yes of course. The AI is trying to capture or defend the objectives, so indeed it's guided by the objectives.


_____________________________

Know thyself!

(in reply to kevinkins)
Post #: 11
RE: Advanced Scenario Editing - 11/26/2018 10:48:07 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: Missouri_Rebel

Is there a way to edit a scenario to add more units and/or delete others?


Currently the only way is to edit the scenario.xml file. The issue is that after making changes you should update the 'combatPower' and 'forceBModifier' attributes. In the near future patches I'll try to get rid of these point attributes in the scenario.xml, so the system automatically readjusts the values when the scenario starts. That should also fix the issue where the player has not used all of his purchase points, making the scenario last too long.

Another great improvement would be to let the player run the unit selection phase again after saving the scenario.


_____________________________

Know thyself!

(in reply to Missouri_Rebel)
Post #: 12
RE: Advanced Scenario Editing - 11/26/2018 11:15:49 PM   
Missouri_Rebel


Posts: 3065
Joined: 6/19/2006
From: Southern Missouri
Status: offline
quote:

Another great improvement would be to let the player run the unit selection phase again after saving the scenario.


This. And allowing the player to place both sides units.



_____________________________

**Those who rob Peter to pay Paul can always count on the support of Paul
**A government big enough to give you everything you want is a government big enough to take from you everything you have-Gerald Ford

(in reply to Veitikka)
Post #: 13
RE: Advanced Scenario Editing - 12/5/2018 8:57:03 PM   
CapnDarwin


Posts: 8467
Joined: 2/12/2005
From: Newark, OH
Status: offline
Made scenario copies and changed the name in order to see it in the list, turned on Dev mode. Moved stuff around for player where I wanted it. Saved. Started game and units moved from saved placement locations, still in the basic area, but enough to trash the LOS setups on most of the repositioned units. Is there a way to not have units move when loading? Thanks.

_____________________________

OTS is looking forward to Southern Storm getting released!

Cap'n Darwin aka Jim Snyder
On Target Simulations LLC

(in reply to Missouri_Rebel)
Post #: 14
RE: Advanced Scenario Editing - 12/5/2018 10:20:54 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
You can only lock the Player Side. The AI Side will disregard your well meaning intentions and scatter your placements to high heaven. This issue has been recognized by the developer in another thread. He said giving the designer the ability to lock the AI placement is something he might consider. If you lock the Player Side, the initial placement you decide on should not move. Locking the AI Side is not available at this time. This makes setting up integrated defenses based on cover concealment and LOS impossible for the scenario designer. Once the scenario starts, the AI places their forces where ever it pleases.

Kevin

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to CapnDarwin)
Post #: 15
RE: Advanced Scenario Editing - 12/5/2018 11:17:43 PM   
CapnDarwin


Posts: 8467
Joined: 2/12/2005
From: Newark, OH
Status: offline
Kevin, this was the player side. I'll check the locks. Maybe that's where I broke it. Thanks for the information.

_____________________________

OTS is looking forward to Southern Storm getting released!

Cap'n Darwin aka Jim Snyder
On Target Simulations LLC

(in reply to kevinkins)
Post #: 16
RE: Advanced Scenario Editing - 12/5/2018 11:22:24 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: CapnDarwin

Kevin, this was the player side. I'll check the locks. Maybe that's where I broke it. Thanks for the information.


Are you sure you loaded the scenario you had in the 'user' folder, not the 'default' one?


_____________________________

Know thyself!

(in reply to CapnDarwin)
Post #: 17
RE: Advanced Scenario Editing - 12/5/2018 11:29:54 PM   
CapnDarwin


Posts: 8467
Joined: 2/12/2005
From: Newark, OH
Status: offline
User version. I renamed the scenario so I could tell which one it is.

_____________________________

OTS is looking forward to Southern Storm getting released!

Cap'n Darwin aka Jim Snyder
On Target Simulations LLC

(in reply to Veitikka)
Post #: 18
RE: Advanced Scenario Editing - 12/5/2018 11:39:46 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline
Ok I think I know what's wrong. You must give the scenario a unique ID in the scenario.xml. It's the same because you copied the file.


_____________________________

Know thyself!

(in reply to CapnDarwin)
Post #: 19
RE: Advanced Scenario Editing - 7/30/2019 9:43:33 PM   
hkh0003

 

Posts: 5
Joined: 7/27/2019
Status: offline

quote:

ORIGINAL: CapnDarwin

Made scenario copies and changed the name in order to see it in the list, turned on Dev mode. Moved stuff around for player where I wanted it. Saved. Started game and units moved from saved placement locations, still in the basic area, but enough to trash the LOS setups on most of the repositioned units. Is there a way to not have units move when loading? Thanks.


Same problem here. Locking works if I set the formation to, say, a vee. But it doesn't work if I put the units to irregular formations. I tried setting the formation to "free", didn't work.

I created the scenario and the ID is unique, so probably not because of that either.

(in reply to CapnDarwin)
Post #: 20
RE: Advanced Scenario Editing - 8/6/2019 12:50:08 PM   
Veitikka


Posts: 1304
Joined: 6/25/2007
From: Finland
Status: offline

quote:

ORIGINAL: hkh0003

Same problem here. Locking works if I set the formation to, say, a vee. But it doesn't work if I put the units to irregular formations. I tried setting the formation to "free", didn't work.


Individual unit positions cannot be locked, other than the player pillbox positions since the 1.031 update. In the next update there will be better graphics showing which units are locked.

I've been thinking that perhaps the designer should be prevented from moving individual units because they cannot be locked, but on the other hand they can be used the check the LOS.

This thread is obsolete by now...


_____________________________

Know thyself!

(in reply to hkh0003)
Post #: 21
RE: Advanced Scenario Editing - 8/6/2019 3:54:33 PM   
CCIP-subsim


Posts: 695
Joined: 11/10/2015
Status: offline
Ooh, did not know about the lockable bunkers. That is handy to know

(in reply to Veitikka)
Post #: 22
RE: Advanced Scenario Editing - 10/6/2019 8:48:57 PM   
DoubleDeuce


Posts: 1247
Joined: 6/23/2000
From: Crossville, TN
Status: offline

quote:

ORIGINAL: Veitikka

This thread is obsolete by now...


If this is the case, could we maybe get the thread subject changed or something so that user's are not referencing it as current??

_____________________________


(in reply to Veitikka)
Post #: 23
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> Advanced Scenario Editing (OBSOLETE) Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.938