stolenrays
Deity
- Joined
- Aug 2, 2009
- Messages
- 2,063
@Orion. I'm not sure about the diplomacy options. Sorry about the non-reply, I've been so busy at school. I'm glad to hear it has no bugs. I always try and release them without any bugs/crashes.
@Orion. I'm not sure about the diplomacy options.
Also, stolenrays, this is really being anal, but you can also remove the CONTACT_SECRETARY_GENERAL_VOTE and CONTACT_TRADE_CORPORATION from CvEnums.h, CvInfos.cpp, CyEnumsInterfaces.cpp and the GlobalTypes.XML. A harmless assert throws up if you don't do this, because the list in CvLeaderHeadsInfos.XML doesn't match the GlobalTypes.
What I did was add in the missing CONTACT_SECRETARY_GENERAL_VOTE and CONTACT_TRADE_CORPORATION to CIV4LeaderHeadInfos
So now is the same as in GlobalTypes

Ripple could you attach those changed sdk files for me to quickly update the mod?
Stolenrays:
Please see the following post re: some code from CvDeal that was left out of this modcomp. Afforess didn't comment it and the .dll compiled without it, so very easy to miss. I only discovered it after some extensive debugging:
http://forums.civfanatics.com/showpost.php?p=11316454&postcount=3
and thanks again for putting this together!
I was referring to this post actually.
OK, I've changed the leaderheadinfos.xml file now (no update yet). I can't seem to find the CvDeal code strings that was mentioned here.
Lastly, I checked the original Civ4 SDK in both CvDeal files and didn't find it there either. Therefore, I don't beleve we have a problem in ver 2.0.CyEnumsInterface I found this and change it to the second one double

/***********************************************************************************************/
/* Afforess Start 07/29/10 */
/* */
/* Advanced Diplomacy */
/***********************************************************************************************/
,m_iMilitaryUnitRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
,m_iWorkerRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
,m_iCorporationRefuseAttitudeThreshold(ATTITUDE_CAUTIOUS)
,m_iEmbassyRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
/***********************************************************************************************/
/* Afforess END */
/***********************************************************************************************/
Should be changed to:
/***********************************************************************************************/
/* Afforess Start 07/29/10 */
/* */
/* Advanced Diplomacy */
/***********************************************************************************************/
,m_iMilitaryUnitRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
,m_iWorkerRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
,m_iCorporationRefuseAttitudeThreshold(ATTITUDE_CAUTIOUS)
,m_iEmbassyRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
,m_iSecretaryGeneralVoteRefuseAttitudeThreshold(ATTITUDE_ANNOYED)
/***********************************************************************************************/
/* Afforess END */
/***********************************************************************************************/
<!-- Afforess Advanced Diplomacy -->
<ElementType name="MilitaryUnitRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="WorkerRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="CorporationRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="EmbassyRefuseAttitudeThreshold" content="textOnly"/>
<!-- Afforess Advanced Diplomacy -->
becomes
<!-- Afforess Advanced Diplomacy -->
<ElementType name="MilitaryUnitRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="WorkerRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="CorporationRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="EmbassyRefuseAttitudeThreshold" content="textOnly"/>
<ElementType name="SecretaryGeneralVoteRefuseAttitudeThreshold" content="textOnly"/>
<!-- Afforess Advanced Diplomacy -->
AND
<!-- Afforess Advanced Diplomacy -->
<element type="MilitaryUnitRefuseAttitudeThreshold" minOccurs="0"/>
<element type="WorkerRefuseAttitudeThreshold" minOccurs="0"/>
<element type="CorporationRefuseAttitudeThreshold" minOccurs="0"/>
<element type="EmbassyRefuseAttitudeThreshold" minOccurs="0"/>
<!-- Afforess Advanced Diplomacy -->
becomes
<!-- Afforess Advanced Diplomacy -->
<element type="MilitaryUnitRefuseAttitudeThreshold" minOccurs="0"/>
<element type="WorkerRefuseAttitudeThreshold" minOccurs="0"/>
<element type="CorporationRefuseAttitudeThreshold" minOccurs="0"/>
<element type="EmbassyRefuseAttitudeThreshold" minOccurs="0"/>
<element type="SecretaryGeneralVoteRefuseAttitudeThreshold" minOccurs="0"/>
<!-- Afforess Advanced Diplomacy -->
<!-- Afforess Advanced Diplomacy-->
<MilitaryUnitRefuseAttitudeThreshold>ATTITUDE_ANNOYED</MilitaryUnitRefuseAttitudeThreshold>
<WorkerRefuseAttitudeThreshold>ATTITUDE_ANNOYED</WorkerRefuseAttitudeThreshold>
<CorporationRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</CorporationRefuseAttitudeThreshold>
<EmbassyRefuseAttitudeThreshold>ATTITUDE_ANNOYED</EmbassyRefuseAttitudeThreshold>
<!-- Afforess Advanced Diplomacy-->
should become
<!-- Afforess Advanced Diplomacy-->
<MilitaryUnitRefuseAttitudeThreshold>ATTITUDE_ANNOYED</MilitaryUnitRefuseAttitudeThreshold>
<WorkerRefuseAttitudeThreshold>ATTITUDE_ANNOYED</WorkerRefuseAttitudeThreshold>
<CorporationRefuseAttitudeThreshold>ATTITUDE_CAUTIOUS</CorporationRefuseAttitudeThreshold>
<EmbassyRefuseAttitudeThreshold>ATTITUDE_ANNOYED</EmbassyRefuseAttitudeThreshold>
<SecretaryGeneralVoteRefuseAttitudeThreshold>ATTITUDE_ANNOYED</SecretaryGeneralVoteRefuseAttitudeThreshold>
<!-- Afforess Advanced Diplomacy-->