Does anyone know what these XML tags do?

tsentom1

Bubble Dragon
Joined
Jul 24, 2007
Messages
1,000
Location
New York
In BuildingInfos and UnitInfos:

<StateReligion>NONE</StateReligion>

In VoteInfo:

<bCityVoting>0</bCityVoting>
<bCivVoting>0</bCivVoting>

None of these are ever used in the main game.

Also, does anyone know how I could go about creating a voting system tied to a corporation similar to how the Apostolic Palace does one tied to a religion? (Probably not so simple since there is no state corporation)
 
the sr tag is used in WB Notepad files to determine the :religion: of a Civilization at the start of the game, IIRC
 
I don't know about the first one, but I checked the City and Civ Voting tags in the SDK and they are never used for anything. They're defined to be read from XML, but not actually used in any code so far as I can tell.
 
This is not true. They're used in CvPlayer::getVotes to determine if in AP/UN votes you get 1 vote per civ (bCivVoting = 1), per city (bCivVoting = 0 and bCityVoting = 1) or per population (bCivVoting = 0 and bCityVoting = 0), with the appropriate religion in case of AP.

StateReligion is pretty much what you (or I anyway) would expect: it's a state religion prereq: you must have this religion as your state religion to be able to build this unit/building.
 
This is not true. They're used in CvPlayer::getVotes to determine if in AP/UN votes you get 1 vote per civ (bCivVoting = 1), per city (bCivVoting = 0 and bCityVoting = 1) or per population (bCivVoting = 0 and bCityVoting = 0), with the appropriate religion in case of AP.

Sorry about that, I searched for bCivVoting and that's all I could find. And people wonder why I complain when they say, "Oh, just search the SDK," without providing a link to the appropriate files. Too much room for error. :rolleyes:

So you mean you get an extra vote per unit or per building if that's set to 1? :crazyeye: That's a bit odd...
 
Sorry about that, I searched for bCivVoting and that's all I could find. And people wonder why I complain when they say, "Oh, just search the SDK," without providing a link to the appropriate files. Too much room for error. :rolleyes:

The trick is to backtrack through the code properly ;) Searching for bCivVoting leads you to CvVoteInfo::isCivVoting, if you follow that up with a search for isCivVoting you'll find the code in CvPlayer. This pattern holds true for all XML values, they all point to getter/setter functions which are the ones that are actually used by the game.

So you mean you get an extra vote per unit or per building if that's set to 1? :crazyeye: That's a bit odd...

No, the the voting settings are in CIV4VoteInfo.xml and only affect civs, cities and population, not building/unit. State religion is from the building/unit files and only affects what you can/can't build. They were separate issues, not related.
 
Back
Top Bottom