[BTS] Bug: <TerrainAttacks> doesn't work

Thomas SG

CCV-designer
Joined
Aug 10, 2007
Messages
1,164
Location
Germany
We only talk about TerrainAttack in UnitInfo! TerrainAttacks of promotions are working fine.

Here seems to be a bug, because TerrainAttacks have no effekt, but TerrainDefenses works fine. Tried it with archer and submarine, with coast and grass. No effekt; no comment in civi. :sad:
 
:band: welcome to CFC :dance:

What do you mean with has no effect?


TerrainDefense gives a defense-advantage or a defense-handicap to a unit.
For example: archer +50% defense in hills
(You don't have to use TerrainDefense for hills because there is a shortcut, but if would like to use it with grass you need it.
Example: archer -50% defense on grass)
TerrainDefense works fine!

TerrainAttack should work similar! It should give an attack-advantage or an attack-handicap to a unit. But it doesn't do so. I tried it with an advantage for archer/grass and I tried it with a handicap for submarine/coast. But nothing happens.
I expected something like that:
archer +20% attack on grass
TerrainAttack doesn't work!
 
I think terrain attack means when atttacking INTO the specified tile not FROM them. (e.g. woodsman 3 & guerilla 3)
 
Yes, of course. But there is NO EFFEKT - REALLY NOTHING. :crazyeye:


Modding TerrainAttack at promotions works, but modding TerrainAttack at units failed.
 
I think terrain attack means when atttacking INTO the specified tile not FROM them. (e.g. woodsman 3 & guerilla 3)

I have had tons of units on past games with "terrain attack" bonuses (woodsman 3 mostly) and they work perfectly, even appears in the odds calculation box before the attack. And yes the attack bonuses apply when you attack aunit in that kind of tile (example, woodsman %50 bonus applies if your enemy is in a jungle, not if you are in one)
 
Why don't you understand me?

Yes, terrain attack bonuses from promotions work fine, but bonuses as a feature of the unit won't work.

I give you an example:
You want to mod the archer! When a new archer is build it should have a +20% bonus when attacking a unit on grass without any bonus from promotion! That doesn't make any sense, but that is not interesting at the moment. Rember - no promotions!

So you open UnitInfo and change TerrainAttack. But although you made no mistake there will be no bonus after all. Changes made to TerrainAttack in UnitInfo have no effect!

But changes made to TerrainDefense in UnitInfo have the right effect!

We don't talk about TerrainAttack-bonuses from promotions!
 
Maybe the required code is not in the dll. I don't think all the entries in the XML-files have corresponding code in the normal BtS-dll as some entries are only used in the mods.

Best regards
 
That 'feature' is not used in the game, so I don't see how it can be called a bug. Maybe that stat is a leftover of the game development phase: They planned to use it, but then it was dropped.
 
That 'feature' is not used in the game, so I don't see how it can be called a bug. Maybe that stat is a leftover of the game development phase: They planned to use it, but then it was dropped.

We are talking about a certain setting in the normal xml-files, don't we?
So, if such a tag is there and you make use of - better, you try to make use of it - and it does not work, then it is a bug.

In addition, such an option is so obviously missing that I am really surprised that it hasn't been implemented in the earlier versions already.
 
I tested TerrainAttack tonight and I can confirm it does indeed work.

However, there are some problems. No text appears at all in the Civlopedia entry for the unit for the "Terrain Attack" ability. Also, if you use the unit to attack something on the appropriate terrain, and then look at your combat log, you get something like TXT_KEY_TERRAIN_BONUS or something like that. I suspect you could put that in your text file, but I don't really have any idea how that works since thats stuff like "Combat:+35%".

However, you can see a bonus if you mouse over the unit, or you use the "combat estimator" (go-to) to evaluate an attack onto a terrain of the specified type. Remember that for the bonus to apply, you have to attack a unit on the favored terrain - the terrain your unit is on will not matter.

Here are some screens to prove it:
 

Attachments

  • Civ4ScreenShot0000.JPG
    Civ4ScreenShot0000.JPG
    107.8 KB · Views: 92
  • Civ4ScreenShot0001.JPG
    Civ4ScreenShot0001.JPG
    102.2 KB · Views: 78
  • Civ4ScreenShot0002.JPG
    Civ4ScreenShot0002.JPG
    100.8 KB · Views: 101
  • Civ4ScreenShot0003.JPG
    Civ4ScreenShot0003.JPG
    120 KB · Views: 94
Thank you for the test and the pictures. I just had a look at the Civlopedia entry. Sorry.

Well, we found out that TerrainAttacks in UnitInfo is working, but it's not displayed the right way in the game. That's even more sad for mods... how should others know about my 10000% hill-attack-bonus for my :mischief: warriors. Just a joke... :lol:

Bug found.
 
We are talking about a certain setting in the normal xml-files, don't we?
So, if such a tag is there and you make use of - better, you try to make use of it - and it does not work, then it is a bug.

No, because no company officially guarantees that you can mod their game. They give us the tools to mod the game, but it's a bonus, no integral part of the game. They allow you to meddle with the code, and make it easy to do so by using human-readable xml files instead of compiled code, that's all.
 
Back
Top Bottom