| Massive enemy counterattacks... in all major cities[message #312154]
|
Fri, 16 November 2012 22:10
|
|
| Flugente |
 |
Messages:3499
Registered:April 2009 Location: Germany |
|
|
Massive enemy counterattacks... in all major cities
Hi,
one thing most players enjoy a lot (or fear :scary: ) is the massive counterattack the queen launches after you conquered Drassen. So I added a bit of code... that allows her to do this on the other major cities (Chitzena, Grumm, Cambria, Alma, Balime). It works the same way as the Drassen counterattack, the attack is started after she says so in the cutscene.
Another thing I added, which will further increase difficulty:
On 2 occasions in the campaign, the queen launches a major offensive. I won't go into much detail as to what that is - lets just say it'll be more difficult than the Drassen counterattack (if I the AI does not screw up the timing).
Of course, these things are fully optional:
; This enables massive counterattacks in all cities, just like in Drassen.
; NOTE: These attacks will be huge. You have been warned.
; 0: no attacks
; 1: counterattacks on all cities possible
; 2: 1 + major offensives depending on game progress
AGGRESSIVE_STRATEGIC_AI = 1
sets wether this feature is on or not, and
; The queen decides to go on the offensive. WARNING: This will be hard!
; AGGRESSIVE_STRATEGIC_AI must be true for this to have any effect
GAME_PROGRESS_OFFENSIVE_STAGE_1 = 65
GAME_PROGRESS_OFFENSIVE_STAGE_2 = 85
sets when these offensives can occur.
Important sidenote to those who want truly massive attacks: Currently, the size of the Drassen counterattacks is limited by MAX_STRATEGIC_ENEMY_GROUP_SIZE for each pack. If you want massive battles, increase that number (never decrease that thing below 20!!!). Also increase MIN_ENEMY_GROUP_SIZE_..., as this is the base for the size calculation.
Note that it is not necessary to start a new game for this, just update your .exe and the Ja2Options.ini.
Lets see how people manage to fend off counterattack in sectors where there are no toilets to hide in :pitchfork:
This feature is now in the trunk (r5688, GameDir r1562).
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Massive enemy counterattacks... in all major cities[message #312516]
|
Mon, 26 November 2012 21:06 
|
|
| Flugente |
 |
Messages:3499
Registered:April 2009 Location: Germany |
|
|
@Uriens: I thought about how to externalise this, and did not find a good way. For starters, the counterattacks are tied to specific NPC actions - if those numbers ever change, the attacks will occur with very odd timing (like every time you get mine income or whatever). Counter attacks on cities that are not hardcoded are pretty impossible (as the Strategic AI does not know them). Workaround would be to somehow determine where cities are and then launch an assault once the player captures all of those sectors, but there's a whole lot of additional work behind that.
A much, much more severe problem is Arulco's topology. If you change a minor thing about he map, like, say, the road topology, the enemy groups that make up an attack will walk a different way. Even worse, if one does not plan this, they can decide that in order to surround a sector before attacking, they have to move through it - which results in several small assaults instead of a massive one from all sides. For example, I found absolutely no way to get troops coming from Meduna to surround Alma mine, those that should go to the east always try to be smart and move through the mine.
I saw no other solution than to test each attack and time their travel times... for example, the Grumm counterattack patrols start from 3 different sectors. Which means that I would have to externalise a lot of data to get this working. Not saying it's impossible, but a lot of work... especially note that anyone testing his/her own custom counter attacks will have to test a lot. Even with a debugger and custom-built 'destroy city garrison on button' and 'press key to initiate counter attack #3' it is a pain. Especially if one goes the way above for custom cities.
So, in short: doable, but a lot of work (or more), and a lot of pain to test.
@Parkan: Have you perhaps run out of troops? The counterattacks take troops from the queen's reinforcement pool (interestingly, the DCA never did), so they can easily deplete it...
@Sam Hotte: the interesting thing is that there always were counter attacks fro SAM sites... jsut like for the other cities. But they were always just a very small squad, so nobody ever noticed. I might improve those, but the problem is that Chitzena SAM is hard to reach from Meduna, and Drassen SAM suffers from the 'AI pathfinding results in one-directional attack' problem.
Question: Has anybody already experienced the new counter-attacks? I'm wondering how hard they were. Also... Has anybody tried the offensives yet? If yes, how was it?
Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Massive enemy counterattacks... in all major cities[message #312615]
|
Thu, 29 November 2012 12:28 
|
|
Parkan |
  |
Messages:432
Registered:April 2010 Location: Russia,Sevastopol |

|
|
Well, now i am playing with such Ai settings and still enemy no counterattack my sectors.It only attack when i capture city and attack 1 time.
Toggle Spoiler
[Strategic Enemy AI Settings]
;******************************************************************************************************************************
; These settings change the behavior of the queen's army on the Strategy Map.
;******************************************************************************************************************************
;------------------------------------------------------------------------------------------------------------------------------
; New strategic AI
;
; This AI is capable of launching massive attacks (with reinforcements) at important sectors. Teams of several dozen enemies
; will assemble to attack your sector SIMULTANEOUSLY. This is similar to the Drassen Counterattack event, except it happens
; to every city, possibly several times during the campaign!
; When set to TRUE, this setting has the potential of making the game considerably harder.
;------------------------------------------------------------------------------------------------------------------------------
NEW_AGGRESSIVE_AI = TRUE
;
INITIAL_GARRISON_PERCENTAGES_NOVICE = 70
INITIAL_GARRISON_PERCENTAGES_EXPERIENCED = 100
INITIAL_GARRISON_PERCENTAGES_EXPERT = 150
INITIAL_GARRISON_PERCENTAGES_INSANE = 500
; Minimum enemy group size. Enemy groups will never be smaller than this!
MIN_ENEMY_GROUP_SIZE_NOVICE = 3
MIN_ENEMY_GROUP_SIZE_EXPERIENCED = 4
MIN_ENEMY_GROUP_SIZE_EXPERT = 6
MIN_ENEMY_GROUP_SIZE_INSANE = 32
; Percent of troops converted to extra elites in enemy groups
PERCENT_EXTRA_ELITES_EXPERIENCED = 0
PERCENT_EXTRA_ELITES_EXPERT = 25
PERCENT_EXTRA_ELITES_INSANE = 100
UNLIMITED_POOL_OF_TROOPS_NOVICE = FALSE
UNLIMITED_POOL_OF_TROOPS_EXPERIENCED = FALSE
UNLIMITED_POOL_OF_TROOPS_EXPERT = FALSE
UNLIMITED_POOL_OF_TROOPS_INSANE = TRUE
; Amount of troops avaliable to the queen at game start
QUEENS_INITIAL_POOL_OF_TROOPS_NOVICE = 150
QUEENS_INITIAL_POOL_OF_TROOPS_EXPERIENCED = 200
QUEENS_INITIAL_POOL_OF_TROOPS_EXPERT = 400
QUEENS_INITIAL_POOL_OF_TROOPS_INSANE = 10000
QUEEN_POOL_INCREMENT_PER_DIFFICULTY_LEVEL = 100
ENEMY_STARTING_ALERT_LEVEL_NOVICE = 5
ENEMY_STARTING_ALERT_LEVEL_EXPERIENCED = 20
ENEMY_STARTING_ALERT_LEVEL_EXPERT = 60
ENEMY_STARTING_ALERT_LEVEL_INSANE = 100
;
ENEMY_ALERT_DECAY_NOVICE = 75
ENEMY_ALERT_DECAY_EXPERIENCED = 50
ENEMY_ALERT_DECAY_EXPERT = 25
ENEMY_ALERT_DECAY_INSANE = 1
NUM_AWARE_BATTLES_NOVICE = 1
NUM_AWARE_BATTLES_EXPERIENCED = 2
NUM_AWARE_BATTLES_EXPERT = 3
NUM_AWARE_BATTLES_INSANE = 4
BASE_DELAY_IN_MINUTES_BETWEEN_EVALUATIONS_NOVICE = 480
BASE_DELAY_IN_MINUTES_BETWEEN_EVALUATIONS_EXPERIENCED = 360
BASE_DELAY_IN_MINUTES_BETWEEN_EVALUATIONS_EXPERT = 180
BASE_DELAY_IN_MINUTES_BETWEEN_EVALUATIONS_INSANE = 60
EVALUATION_DELAY_VARIANCE_NOVICE = 240
EVALUATION_DELAY_VARIANCE_EXPERIENCED = 180
EVALUATION_DELAY_VARIANCE_EXPERT = 120
EVALUATION_DELAY_VARIANCE_INSANE = 30
GRACE_PERIOD_IN_HOURS_AFTER_SECTOR_LIBERATION_NOVICE = 144
GRACE_PERIOD_IN_HOURS_AFTER_SECTOR_LIBERATION_EXPERIENCED = 96
GRACE_PERIOD_IN_HOURS_AFTER_SECTOR_LIBERATION_EXPERT = 48
GRACE_PERIOD_IN_HOURS_AFTER_SECTOR_LIBERATION_INSANE = 3
GRACE_PERIOD_IN_DAYS_AFTER_PATROL_DESTROYED_NOVICE = 16
GRACE_PERIOD_IN_DAYS_AFTER_PATROL_DESTROYED_EXPERIENCED = 12
GRACE_PERIOD_IN_DAYS_AFTER_PATROL_DESTROYED_EXPERT = 8
GRACE_PERIOD_IN_DAYS_AFTER_PATROL_DESTROYED_INSANE = 1
AGGRESSIVE_QUEEN_AI_NOVICE = FALSE
AGGRESSIVE_QUEEN_AI_EXPERIENCED = FALSE
AGGRESSIVE_QUEEN_AI_EXPERT = FALSE
AGGRESSIVE_QUEEN_AI_INSANE = TRUE
ENEMY_INVESTIGATE_SECTOR = FALSE
REASSIGN_PENDING_REINFORCEMENTS = FALSE
[Strategic Event Settings]
;******************************************************************************************************************************
; Controls various campaign events.
;******************************************************************************************************************************
;------------------------------------------------------------------------------------------------------------------------------
; Can queen send troops to reinforce Drassen like she says she's going to in the Meanwhile...?
; NOTE: This will make the beginning of the game MUCH HARDER if enabled!
TRIGGER_MASSIVE_ENEMY_COUNTERATTACK_AT_DRASSEN = TRUE
; This enables massive counterattacks in all cities, just like in Drassen.
; NOTE: These attacks will be huge. You have been warned.
; 0: no attacks
; 1: counterattacks on all cities possible
; 2: 1 + major offensives depending on game progress
AGGRESSIVE_STRATEGIC_AI = 2
Is my settings really screwed or there is a really bugs in AI ,that's prevent him to attack captured city.?
All my checks was on 5697 exe with Vanilla maps,UC hybrid,AFS 3.65.
[Updated on: Thu, 29 November 2012 12:30] by Moderator Report message to a moderator
|
Master Sergeant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|