Civ4VoteInfo

From Civilization Modding Wiki
Jump to navigationJump to search

The Civ4VoteInfo file defines the types of votes that can be initiated via the United Nations and the Apostolic Palace.

All tags must be opened and closed; the first is the "open", the second the "close" tag. If nothing goes inside a "list tag", then it should just be the opening tag with a "/" before the closing bracket. The following tables contain all available tags, as well as their purpose and accepted values.

This page is missing information. Do not remove this notice until it is complete.


Tags

Headers

These tags typically bracket other tags, sometimes the entire file, and are generally used to specify more than one piece of data.

Tag Name Description
VoteInfos This tag surrounds all entries of the file
VoteInfo Main bracket for each entry


Text

Tag Name Description
Type How the entry is referenced in files
Description The text for the entry in the game


Integers

All of these tags have a numerical value. Though it sometimes can be negative, it usually is not.

Tag Name Description
iPopulationThreshold unknown
iMinVoters Number of voting members necessary for the vote to be voted on
iStateReligionVotePercent unknown
iTradeRoutes Number of trade routes granted to each member if vote passes


Boolean

All of these can either be 1 (on, or true) or 0 (off, or false). Be careful, as you can wind up with a double-negative, which the game will interpret as "True".

Tag Name Description
bSecretaryGeneral Whether vote is for the leader of the UN/AP
bVictory Whether vote is for diplomatic victory
bFreeTrade Whether vote is for free trade between members
bNoNukes Whether vote is to ban nukes
bDefensivePact Whether vote is for a defensive pact between members
bOpenBorders Whether vote is for open borders between members
bForcePeace Whether vote is to end a war between members
bForceNoTrade Whether vote is to create an embargo against a non-member
bForceWar Whether vote is to have members declare war against a non-member
bAssignCity Whether vote is to change the ownership of a city from one member to another (return control after conquest)


Lists (Multi-line)

All List tags consist of an opening/closing tag, which is shown here, and then each entry within it is another tag with the same name as the parent tag, minus the "s" (i.e. singular, rather than plural).

Tag Name Description
ForceCivics The vote will require the members to use any civics defined here if passed
<ForceCivic>
 <CivicType>CIVIC_UNIVERSAL_SUFFRAGE</CivicType>
 <bForce>1</bForce>
</ForceCivic>
DiploVotes The vote can be initiated from any vote source defined here (options are DIPLOVOTE_UN and DIPLOVOTE_POPE by default)
<DiploVote>
 <DiploVoteType>DIPLOVOTE_UN</DiploVoteType>
 <bValid>1</bValid>
</DiploVote>


Example

In the following example of code, please note that there is a specific order of all of the tags. You must list the tags in this order for the game to properly interpret your file.

<VoteInfo>
 <Type>VOTE_UNIVERSAL_SUFFRAGE</Type>
 <Description>TXT_KEY_VOTE_UNIVERSAL_SUFFRAGE</Description>
 <iPopulationThreshold>51</iPopulationThreshold>
 <bCityVoting>0</bCityVoting>
 <bCivVoting>0</bCivVoting>
 <iMinVoters>3</iMinVoters>
 <iStateReligionVotePercent>0</iStateReligionVotePercent>
 <iTradeRoutes>0</iTradeRoutes>
 <bSecretaryGeneral>0</bSecretaryGeneral>
 <bVictory>0</bVictory>
 <bFreeTrade>0</bFreeTrade>
 <bNoNukes>0</bNoNukes>
 <bDefensivePact>0</bDefensivePact>
 <bOpenBorders>0</bOpenBorders>
 <bForcePeace>0</bForcePeace>
 <bForceNoTrade>0</bForceNoTrade>
 <bForceWar>0</bForceWar>
 <bAssignCity>0</bAssignCity>
 <ForceCivics>
  <ForceCivic>
   <CivicType>CIVIC_UNIVERSAL_SUFFRAGE</CivicType>
   <bForce>1</bForce>
  </ForceCivic>
 </ForceCivics>
 <DiploVotes>
  <DiploVote>
   <DiploVoteType>DIPLOVOTE_UN</DiploVoteType>
   <bValid>1</bValid>
  </DiploVote>
 </DiploVotes>
</VoteInfo>


GlobalDefinesGlobalDefinesAltGlobalTypesPythonCallbackDefines

Art:

Civ4ArtDefines_BonusCiv4ArtDefines_BuildingCiv4ArtDefines_CivilizationCiv4ArtDefines_FeatureCiv4ArtDefines_ImprovementCiv4ArtDefines_InterfaceCiv4ArtDefines_LeaderheadCiv4ArtDefines_MiscCiv4ArtDefines_MovieCiv4ArtDefines_TerrainCiv4ArtDefines_UnitCiv4MainMenusCiv4RiverModelInfosCiv4RouteModelInfos

Audio; Buildings:

Audio2DScriptsAudio3DScriptsAudioDefinesAudioSoundscapeScriptsCiv4BuildingClassInfosCiv4BuildingInfosCiv4CityLSystemCiv4PlotLSystemCiv4SpecialBuildingInfos

BasicInfos:

Civ4AttitudeInfosCiv4BasicInfosCiv4CalendarInfosCiv4CityTabInfosCiv4DenialInfosCiv4DomainInfosCiv4InvisibleInfosCiv4MemoryInfosCiv4MonthInfosCiv4NewConceptInfosCiv4SeasonInfosCiv4UnitAIInfosCiv4UnitCombatInfos

Civilizations; Events:

Civ4CivilizationInfosCiv4LeaderHeadInfosCiv4TraitInfosCiv4UnitArtStyleTypeInfosCiv4EventInfosCiv4EventTriggerInfos

GameInfo:

Civ4CivicInfosCiv4CivicOptionInfosCiv4ClimateInfoCiv4CommerceInfoCiv4CorporationInfoCiv4CultureLevelInfoCiv4CursorInfoCiv4DiplomacyInfosCiv4EmphasizeInfosCiv4EspionageMissionInfoCiv4EraInfosCiv4ForceControlInfosCiv4GameOptionInfosCiv4GameSpeedInfoCiv4GoodyInfoCiv4GraphicOptionInfosCiv4HandicapInfoCiv4HintsCiv4MPOptionInfosCiv4PlayerOptionInfosCiv4ProcessInfoCiv4ReligionInfoCiv4SeaLevelInfoCiv4SpecialistInfosCiv4TurnTimerInfoCiv4UpKeepInfoCiv4VictoryInfoCiv4VoteInfoCiv4VoteSourceInfosCiv4WorldInfo

Interface:

Civ4AdvisorInfosCiv4CameraInfosCiv4ColorValsCiv4InterfaceModeInfosCiv4PlayerColorInfosCiv4SlideShowInfosCiv4SlideShowRandomInfosCiv4SpaceShipInfosCiv4ThroneRoomeInfosCiv4ThroneRoomCameraInfosCiv4ThroneRoomStyleInfosCiv4WorldPickerInfos

Misc:

Civ4AttachableInfosCiv4CameraOverlayInfosCiv4DetailManagerCiv4EffectInfosCiv4QuestInfosCiv4RiverInfosCiv4RouteInfosCiv4TerrainPlainInfosCiv4TutorialInfosCiv4WaterPlaneInfos

Technologies:

Civ4TechInfos

Terrain:

Civ4BonusClassInfosCiv4BonusInfosCiv4FeatureInfosCiv4ImprovementInfosCiv4SymbolMeshPathsCiv4TerrainInfosCiv4TerrainSettingsCiv4YieldInfos

Units:

Civ4AnimationInfosCiv4AnimationPathInfosCiv4AutomateInfosCiv4BuildInfosCiv4CommandInfosCiv4ControlInfosCiv4EntityEventInfosCiv4FormationInfosCiv4MissionInfosCiv4PromotionInfosCiv4SpecialUnitInfosCiv4UnitClassInfosCiv4UnitInfos

Schemas:

Civ4GlobalDefinesSchemaCiv4GlobalTypesSchemaCiv4ArtDefinesSchemaAudioDefinesSchemaAudioScriptSchemaCiv4BasicInfoSchemaCiv4BuildingSchemaCiv4LSystemSchemaCiv4CivilizationSchemaCiv4EventSchemaCiv4GameInfoSchemaCiv4InterfaceSchemaCiv4MiscSchemaCiv4TutorialSchemaCiv4DetailManagerSchemaCiv4TechnologiesSchemaCiv4TerrainSchemaCiv4FormationSchemaCiv4UnitSchema

Italics: Beyond the Sword only