Dale's Combat Mod (BTS 3.19)

I got your request working. Here is what I did for other moders to see:
Code:
if (pLoopUnit->getGroup()->getActivityType() != ACTIVITY_INTERCEPT)
		{
			if (pLoopUnit->getDomainType() == DOMAIN_AIR)
			{
				iCount++;
			}
		}

Basically it is just the port airbomb mission that has substituted this code string in wherever there is:

Code:
if (pLoopUnit->getDomainType() == DOMAIN_AIR)
			{
				iCount++;
			}

It works perfectly in game. I just probably have to chang the resuting text messages and add some new icons.

Sweet thanks:goodjob: Two questions

is the DLL edited?

does it make it impossible to bomb planes that are intercepting? Im assuming thats the first code?
 
The dll is edited. However, I have not uploaded anything yet. You are not able to bomb planes that are intercepting because you cannot select them with the mission cursor (they will be grey and not green). However, the interceptors may try and successfully intercept you.

I'm gonna call the new mission Hangar Airbomb and the messages will be You have destroyed a fighter on the ground and You have damaged a fighter on the ground.
 
I've added in the new mission and the suggested fixes from the thread. Works fine as I can tell. THere is just a little text fix I need to make. I'll try and release it soon.
 

Attachments

  • Civ4ScreenShot0070.JPG
    Civ4ScreenShot0070.JPG
    212.9 KB · Views: 184
New additions I've just finished that I would like feedback from others before I release a new update because DCM is so widely used and hasn't had significant changes in quite some time.

-I've fixed field bombardment so units can now inflict damage on not only stacks, but now also single units again.
-Hangar Airbomb Mission-Military Planes not in intercept mode can be targeted and destroyed (similar to the port airbomb mission).
-I've changed 3 of the mission icons because I can not tell them apart when trying to find the correct one. The new icons I made are attached (Fighter Engagment (Left-Top), Port Airbomb (Right-Top), Production Airbomb (Bottom-Left), Hangar Airbomb (Bottom-Right).
 

Attachments

  • dcmbuttons.jpeg
    dcmbuttons.jpeg
    19.9 KB · Views: 119
New additions I've just finished that I would like feedback from others before I release a new update because DCM is so widely used and hasn't had significant changes in quite some time.

-I've fixed field bombardment so units can now inflict damage on not only stacks, but now also single units again.
-Hangar Airbomb Mission-Military Planes not in intercept mode can be targeted and destroyed (similar to the port airbomb mission).
-I've changed 3 of the mission icons because I can not tell them apart when trying to find the correct one. The new icons I made are attached (Fighter Engagment (Left-Top), Port Airbomb (Right-Top), Production Airbomb (Bottom-Left), Hangar Airbomb (Bottom-Right).



Go for it You got my vote we need new updates and Thankyou for added Hangar Airbomb
 
Reference Roamty's iDCMBombAccuracyChange change to the CIV4UnitSchema.xml file. This change will blowup the mod unless a new tag is created in the SDK. This mod is a very important part of my latest SDK project and I look forward to your release of version 2, which I hope will be soon.
 
Reference Roamty's iDCMBombAccuracyChange change to the CIV4UnitSchema.xml file. This change will blowup the mod unless a new tag is created in the SDK. This mod is a very important part of my latest SDK project and I look forward to your release of version 2, which I hope will be soon.

yes OrionVeteran is right i found that out too what iDCMBombAccuracyChange deals with is in Promotion both can be remove. if added in then a new tag is needed in CIV4PromotionInfos like this for all Promotions <iDCMBombAccuracyChange>0</iDCMBombAccuracyChange> plus the SDK needs updated with text and so on so I say just remove the two tags in CIV4UnitSchema

<ElementType name="iDCMBombAccuracyChange" content="textOnly" dt:type="int"/>

<element type="iDCMBombAccuracyChange"/>
 
I hope somebody can take a look at this .cpp file and tell me what is wrong with the airbomb4 mission messages. It is the port airbomb message. Sometimes the notification that you have sunk a ship doesn't trigger.
 
I hope somebody can take a look at this .cpp file and tell me what is wrong with the airbomb4 mission messages. It is the port airbomb message. Sometimes the notification that you have sunk a ship doesn't trigger.

Looks like missing text files I think dale did not ever added these to the SDK

<TEXT>
<Tag>TXT_KEY_MISC_YOU_AIRBOMB4SUCCESS</Tag>
<English>You have bombed a ship.</English>
<French>You have bombed a ship.</French>
<German>You have bombed a ship.</German>
<Italian>You have bombed a ship.</Italian>
<Spanish>You have bombed a ship.</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_MISC_ENEMY_AIRBOMB4SUCCESS</Tag>
<English>The enemy has bombed a ship.</English>
<French>The enemy has bombed a ship.</French>
<German>The enemy has bombed a ship.</German>
<Italian>The enemy has bombed a ship.</Italian>
<Spanish>The enemy has bombed a ship.</Spanish>
</TEXT>

I don't see any call for these two in the SDK


TXT_KEY_MISC_ENEMYSINK_AIRBOMB6SUCCESS did you add text for this


<TEXT>
<Tag>TXT_KEY_MISC_YOUSINK_AIRBOMB6SUCCESS</Tag>
<English>You have SUNK a %s1_UnitName.</English>
<French>You have SUNK a %s1_UnitName.</French>
<German>You have SUNK a %s1_UnitName.</German>
<Italian>You have SUNK a %s1_UnitName.</Italian>
<Spanish>You have SUNK a %s1_UnitName.</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_MISC_ENEMYSINK_AIRBOMB6SUCCESS</Tag>
<English>The enemy has SUNK a %s1_UnitName.</English>
<French>The enemy has SUNK a %s1_UnitName.</French>
<German>The enemy has SUNK a %s1_UnitName.</German>
<Italian>The enemy has SUNK a %s1_UnitName.</Italian>
<Spanish>The enemy has SUNK a %s1_UnitName.</Spanish>
</TEXT>

<TEXT>
<Tag>TXT_KEY_MISC_YOU_AIRBOMB6FAIL</Tag>
<English>You have failed to bomb a ship in %s1_CityName.</English>
<French>You have failed to bomb a ship in %s1_CityName.</French>
<German>You have failed to bomb a ship in %s1_CityName.</German>
<Italian>You have failed to bomb a ship in %s1_CityName.</Italian>
<Spanish>You have failed to bomb a ship in %s1_CityName.</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_MISC_ENEMY_AIRBOMB6FAIL</Tag>
<English>The enemy has failed to bomb a ship in %s1_CityName.</English>
<French>The enemy has failed to bomb a ship in %s1_CityName.</French>
<German>The enemy has failed to bomb a ship in %s1_CityName.</German>
<Italian>The enemy has failed to bomb a ship in %s1_CityName.</Italian>
<Spanish>The enemy has failed to bomb a ship in %s1_CityName.</Spanish>
</TEXT>

What little I have learn on my own its looks right I can't see a problem
 
Looks like missing text files I think dale did not ever added these to the SDK

What little I have learn on my own its looks right I can't see a problem

Thanks for the help. I have added the hangard airbomb messages to the sdk. They work in game. Fighter engagement now ONLY attacks planes that are in intercept mode.

I think I figured it out, but I'll have to edit the sdk to change it. He did not differentiate the messages to differentiate damaging and destroying units. For the port airbomb mission he uses the airstrike function and one for when the damage is 100%. So you can trigger either function if the damage is 100%. That is why sometimes I just receive a -100% damage message, but no SUNK message.

The intercept messages are what I'll use. There is a boolean function for if the enemy has been destroyed and and one for everything else b/c of the if/else pairing.
 
Had some ideas for the mods that sound like theyd fit in
1) Snipers, onnly problem is the mod doesnt really add units so i doubt youll want to add it. But there needs to be a mod comp out there where snipers can preform sniper missions, where they do something similar to the artillery unts in here. But can only versus gunpowder units, so assuming not much coding. If not in this any chance you could make a seperate mod comp that does this? since it should be easy to copy some codes
2)Redone paratroopers, they should requiere planes to drop them instead of them being able to do it themselves an unrealisticly small amount
3)Probably the most realistic, having some planes be able to drop supplies, essentially can just heal units on the ground a little bit as a mission

Not sure if any are doable or are better seperate but just some ideas
 
Those ideas are defeinelty something to think about for the future. I have seen a sniper mod somewhere before. Dom Pedro II was working on helicopter air deploy/extraction missions. They are in conquerers delight, but I don't think that they are functional.
 
Sniper mod is out there, but no were near something i would want in my mod, or gulf war mod. I guess helicopter would be okay, but i was thinking more of a cargo transport plane, that drop supplies (in a paratrooper fasion, just without the people). Im assuming the art would be difficult there
 
I'm going to hold off on fixing the SINK message for now because it proved more difficult than I thought.

Should I limit ranged bombardment to 50% unit damage or 100%? Right now you can destroy units with range bombardment.
 
Take a look at Community Civ V mod that made help you out with the sink message. Sorry i can not help i don't know how to add changes in SDK I'am just a fair copy and paste person.

And you might not want to change the spelling in CIV4UnitSchema iProductonModifier to iProductionModifier this seem to be a BTS spelling error and not fix it because then we need to fix all miss spelling in BTS like in CIV4BuildingInfos you find iProductonModifier spell this way. So if you change it i say change it back to iProductonModifier the wrong spelling so we get no errors.
 
Back
Top Bottom