How to add new Contact types?

kipkuhmi

Warlord
Joined
Aug 8, 2007
Messages
131
Hi everybody,

another problem which is driving me insane:

I want to add a new ContactType with the name CONTACT_TRADE_BOYCOT. I've been trying around for two days now, but the SDK wouldn't load the corresponding XML values.

The code has to be changed in many places, so I can't describe all of it here. I just would like to know:

Has anyone already successfully added a new ContactType or is it just not possible?
 
Where precisely in the XML are you working? Don't forget that you must modify Assets/XML/GlobalTypes.xml, where it specifically states that you must also modify the DLL to account for any new additions to the list

Code:
	<ContactTypes>
[COLOR="Orange"]		<!--Changes must be reflected in CvEnums.h-->[/COLOR]
		<ContactType>CONTACT_RELIGION_PRESSURE</ContactType>
		<ContactType>CONTACT_CIVIC_PRESSURE</ContactType>
		<ContactType>CONTACT_JOIN_WAR</ContactType>
		<ContactType>CONTACT_STOP_TRADING</ContactType>
		<ContactType>CONTACT_GIVE_HELP</ContactType>
		<ContactType>CONTACT_ASK_FOR_HELP</ContactType>
		<ContactType>CONTACT_DEMAND_TRIBUTE</ContactType>
		<ContactType>CONTACT_OPEN_BORDERS</ContactType>
		<ContactType>CONTACT_DEFENSIVE_PACT</ContactType>
		<ContactType>CONTACT_PERMANENT_ALLIANCE</ContactType>
		<ContactType>CONTACT_PEACE_TREATY</ContactType>
		<ContactType>CONTACT_TRADE_TECH</ContactType>
		<ContactType>CONTACT_TRADE_BONUS</ContactType>
		<ContactType>CONTACT_TRADE_MAP</ContactType>
	</ContactTypes>
 
Top Bottom