Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - General Discussions

Notices

Reply
 
Thread Tools
Old Nov 01, 2006, 05:16 PM   #1
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Problem with Air Strike

Hello!

It looks like I have a great problems with Air strikes, with all types of air units.
Sometimes I just can't attack enemy units.

The strangest thing was, I was conducting a series of air strikes against the Indian city garrisoned by a few mech infantry and 1 worker. After 3 or 4 strikes, the worker appeared on top of a city and I couldn't attack with any air unit (the infantry units were still alive). Next turn - the same story. After a few attacks, the worker comes, and no more attacks

Could this be a bug, or just a corrupted game?
I have Civ 4 with the latest patch.
Lord N. is offline   Reply With Quote
Old Nov 01, 2006, 05:24 PM   #2
s.c.dude
Invading N.C.
 
s.c.dude's Avatar
 
Join Date: Jun 2006
Location: SC. Dude.
Posts: 870
Quote:
Originally Posted by Lord N.
Hello!

It looks like I have a great problems with Air strikes, with all types of air units.
Sometimes I just can't attack enemy units.

The strangest thing was, I was conducting a series of air strikes against the Indian city garrisoned by a few mech infantry and 1 worker. After 3 or 4 strikes, the worker appeared on top of a city and I couldn't attack with any air unit (the infantry units were still alive). Next turn - the same story. After a few attacks, the worker comes, and no more attacks

Could this be a bug, or just a corrupted game?
I have Civ 4 with the latest patch.
you cant get it below a certain percent i think its 50%
__________________
desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desudesu desu desu desu desu desu desu desu desu desu desu desu desu desu desu desu
s.c.dude is offline   Reply With Quote
Old Nov 01, 2006, 07:07 PM   #3
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by s.c.dude
you cant get it below a certain percent i think its 50%
Thank you!
That makes air strike missions pretty much useless, if you can't sink anything with your airplanes
Lord N. is offline   Reply With Quote
Old Nov 01, 2006, 10:37 PM   #4
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
Quote:
That makes air strike missions pretty much useless, if you can't sink anything with your airplanes
I agree. It's easily modded to change this though.

If you're interested let me know and I'll provide more details.
cf_nz is offline   Reply With Quote
Old Nov 01, 2006, 11:48 PM   #5
Alulim of Eridu
Chieftain
 
Alulim of Eridu's Avatar
 
Join Date: Aug 2006
Posts: 16
Not really useless, methinks. You bomb the defense % down, bomb the defenders, then send in the gunships to wipe them out!
Alulim of Eridu is offline   Reply With Quote
Old Nov 02, 2006, 08:44 AM   #6
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by cf_nz
I agree. It's easily modded to change this though.

If you're interested let me know and I'll provide more details.
Yes, please, I am interested.
Lord N. is offline   Reply With Quote
Old Nov 02, 2006, 09:12 AM   #7
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by Alulim of Eridu
Not really useless, methinks. You bomb the defense % down, bomb the defenders, then send in the gunships to wipe them out!
It is OK if we are talking about striking a land unit, but it is not very realistic that an airplane (or a group of them) cannot sink a ship!
Lord N. is offline   Reply With Quote
Old Nov 02, 2006, 10:14 AM   #8
Chazcon
Prince
 
Chazcon's Avatar
 
Join Date: Feb 2006
Location: Portland, Oregon
Posts: 458
That makes some sense. A group of fighter-bombers (thinking WW2 era) cannot really 'wipe out' an infantry unit, although they can supress them and degrade there ability to move and fight to a limited degree. And in history we rarely saw airpower used against animal-mounted cavalry, as the two 'technologies' eclipsed each other for the most part.

However, airpower has a much greater effect on vehicular units such as armored units and mech infantry - the targets are larger and thus more difficult to hide, and easier to hit. Each hit has a much greater effect on the combat worthiness of the unit (compared to leg infantry). And since an armored unit's mobility is at least as important as it's weapons systems, attacking such a unit with airpower can be very effective.

Naval targets follow the same idea, but even more so. There is no place to run or hide. Airpower has and should be able to interdict and sink ships. You cannot play a 'Battle of Midway' in CivIV because of the above-mentioned game mechanic regarding airpower.

The way Civ limits the effect of airpower is making it not possible to attack a ground or naval unit after that unit has been damaged below a certain pre-set level (as also mentioned above). From the game designer point of view, that's a clever mechanic and not at all unrealistic - although the 'damage level limit' needs to be adjusted for various types of targets.

What would be a nice, realistic fix would be to have this limit set high for foot units, a bit lower for horse units, even lower still for armored units, and to zero for naval unit (so that ships could be sunk). I haven't got into Civ modding (yet - although I may as I get deeper into the game), is there a way to set this 'damage level limit' by type of target?
__________________
America is the only country that went from barbarism to decadence without civilization in between.
-- Oscar Wilde
Chazcon is offline   Reply With Quote
Old Nov 02, 2006, 11:47 AM   #9
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by Chazcon
What would be a nice, realistic fix would be to have this limit set high for foot units, a bit lower for horse units, even lower still for armored units, and to zero for naval unit (so that ships could be sunk). I haven't got into Civ modding (yet - although I may as I get deeper into the game), is there a way to set this 'damage level limit' by type of target?
Good idea!
Lord N. is offline   Reply With Quote
Old Nov 02, 2006, 12:31 PM   #10
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
Quote:
Originally Posted by Chazcon
What would be a nice, realistic fix would be to have this limit set high for foot units, a bit lower for horse units, even lower still for armored units, and to zero for naval unit (so that ships could be sunk). I haven't got into Civ modding (yet - although I may as I get deeper into the game), is there a way to set this 'damage level limit' by type of target?
Quite possibly yes. It is possible to set the damage limit by domain (it's an SDK mod though), so ships can be sunk but land units not destroyed (it's part of the mod I'm running).

I'm still a relative novice to SDK modding but thanks to PeteT who helped with my mod idea I've learnt a lot more. I'll do my best to try to explain some of the changes needed.

Lord N,

I notice from your first post you're running Civ4 vanilla, I'm running Warlords so unfortunately my SDK code will be different. Do you have any experience with modding Civ4 using the SDK? I'll see if I can still download the old SDK.

Last edited by cf_nz; Nov 02, 2006 at 12:37 PM.
cf_nz is offline   Reply With Quote
Old Nov 02, 2006, 12:33 PM   #11
Lord Olleus
Deity
 
Lord Olleus's Avatar
 
Join Date: Oct 2005
Location: England
Posts: 4,985
It would be SDK work, but relatively easy. Just add a multi line tag allong the line of

<iMaxDamageForUnitCombats>
     <iMaxDamageForUnitCombat>
          <UnitCombatType>UNITCOMBAT_NAVAL</UnitCombatType>
          <iMaxDamage>100</iMaxDamage>
     </iMaxDamageForUnitCombat>
</iMaxDamageForUnitCombats>

The SDK work behind this would be relatively straight forward.
__________________
Most zealously I seek for erudition. Much do I know, but to know all is my ambition.
-Faust
Lord Olleus is offline   Reply With Quote
Old Nov 02, 2006, 01:32 PM   #12
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
What Lord Olleus is suggesting is the best way as this would allow the values to be changed easily, I'm still only learning so the changes in my game are still hard coded into the SDK.

As some background info the values of interest which limit air units damage are:

in XML:

CIV4UnitInfos.XML -> iAirCombatLimit; this number is the total max damage an air unit can do, the default is 50, ie 50% damage limit.

GlobalDefines.XML -> AIR_COMBAT_DAMAGE; this number seems to limit the amount of damage air units do per turn, the default is 30, I assume this means they are only doing 30% of their max possible damage per turn.

in SDK:

CvUnit.cpp; CvPlot.cpp; CvUnitAI.cpp

these file all have references to airCombatLimit(), which is the iAirCombatLimit number from the XML files.

By changing the iAirCombatLimit number (in XML) to 100, air units can destroy all units.

My current game has the following lines added to CvPlot.cpp:

Code:
if (pLoopUnit->getDomainType() == DOMAIN_SEA)
{
    iAirLimit = pAttacker->airCombatLimit()+50;
what this does is add 50 to iAirCombatLimit if the unit being attacked is a sea unit, this allow the unit to be destroyed. It's not quite as sophisticated as what Lord Olleus is suggesting but serves my purposes.
cf_nz is offline   Reply With Quote
Old Nov 02, 2006, 01:49 PM   #13
BeefontheBone
Windbag of the sea
 
BeefontheBone's Avatar
 
Join Date: Nov 2005
Posts: 2,018
It should be possible to make it call the XML for the values, thereby making it easily tweakable later. you could also just have it check against individual units if you wanted even more flexibility, though defining the values for all the units would be a bit of a hassle.
__________________
Blue Marble 3.0 - about a gazillion times sexier than regular Civ 4.
QES: "For a period of time, the rest of the world clamoured to get Levi's genes."
Braindead's Mordor site - Dungeon crawling having nothing to do with LotR, plus a freeware remake in progress featuring descriptive text and crazy ideas by yours truly.
BeefontheBone is offline   Reply With Quote
Old Nov 02, 2006, 02:58 PM   #14
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by cf_nz
Lord N,

I notice from your first post you're running Civ4 vanilla, I'm running Warlords so unfortunately my SDK code will be different. Do you have any experience with modding Civ4 using the SDK? I'll see if I can still download the old SDK.
No, unfortunately I don't have any SDK modding experience, but I am familiar with C (and the code posted above looks like C to me ).
But I'd rather try to change the xml than messing with SDK!
Lord N. is offline   Reply With Quote
Old Nov 02, 2006, 03:59 PM   #15
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
Quote:
Originally Posted by Lord N.
No, unfortunately I don't have any SDK modding experience, but I am familiar with C (and the code posted above looks like C to me ).
But I'd rather try to change the xml than messing with SDK!
In which case you're limited to all or nothing.

Change the value for iAirCombatLimit in CIV4UnitInfos.XML from 50 to 100 for each of the air units, they will then be able to destroy all units.

Messing with the SDk is fun .
cf_nz is offline   Reply With Quote
Old Nov 03, 2006, 11:13 AM   #16
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by cf_nz
In which case you're limited to all or nothing.

Change the value for iAirCombatLimit in CIV4UnitInfos.XML from 50 to 100 for each of the air units, they will then be able to destroy all units.
I think I'll just do that. And while I'm modding, I could lower Transporter's strenght to, say, 2 or 3. I almost fell from my chair laughing when I saw an enemy transporter going after my damaged destroyer (and sunk her!).
Quote:
Messing with the SDk is fun .
I agree, all programing is fun - if you have plenty of time
Lord N. is offline   Reply With Quote
Old Nov 03, 2006, 12:14 PM   #17
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
Quote:
Originally Posted by Lord N.
I think I'll just do that. And while I'm modding, I could lower Transporter's strenght to, say, 2 or 3. I almost fell from my chair laughing when I saw an enemy transporter going after my damaged destroyer (and sunk her!).
You could change the bOnlyDefensive tag in CIV4UnitInfos.XML, make them defensive only like machine guns, at least that way they won't get killed by caravels.
cf_nz is offline   Reply With Quote
Old Nov 03, 2006, 01:11 PM   #18
Lord N.
Chieftain
 
Lord N.'s Avatar
 
Join Date: Nov 2006
Location: In front of the computer screen
Posts: 87
Quote:
Originally Posted by cf_nz
You could change the bOnlyDefensive tag in CIV4UnitInfos.XML, make them defensive only like machine guns, at least that way they won't get killed by caravels.
Thanks for the advice, I appreciate it!

But don't you think that a caravel would sink a modern day transport if they met in the real world?

Seriously now, I'm considering making transport defend only, with strength lowered to 8. That way the only wooden ship able to sink it would be a frigate. What do you think?
Lord N. is offline   Reply With Quote
Old Nov 03, 2006, 01:26 PM   #19
cf_nz
Prince
 
Join Date: Mar 2006
Location: New Zealand
Posts: 414
Quote:
Originally Posted by Lord N.
Thanks for the advice, I appreciate it!

But don't you think that a caravel would sink a modern day transport if they met in the real world?
Interesting point, never thought about it, I guess it might.
cf_nz is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - General Discussions > Problem with Air Strike

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Air unit problem Chazcon Civ4 - Creation & Customization 0 Nov 14, 2006 12:21 AM
v1.61: Air-strike graphic problem tymmail Civ4 - Bug Reports 1 Jul 09, 2006 01:20 AM
problem with air carrier de Genenus Civ3 - Macintosh 3 Mar 26, 2004 06:51 AM
Possible Solution To Air Superiority Problem duke Civ3 - General Discussions 2 Nov 08, 2001 06:17 PM


Advertisement

All times are GMT -6. The time now is 05:47 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR