Sid Meier's Civilization V

Sid Meier's Civilization V

Policies Grant Buildings [snippet for mod makers]
Showing 1-9 of 9 entries
Update: 1 Sep, 2014 @ 8:02pm

There is an outstanding issue where in some circumstances AI player will not have specialists removed from buildings as those buildings are being deleted. This can cause problems if a capital-only building provides specialists and an AI player recaptures their capital. Or if a player switches ideology. In previous versions this circumstance would cause the game to hang forever. I have implemented a mitigation strategy that will allow the game to continue, however, removing the building without removing the specialists will result in the citizen data for that city becoming malformed.

Update: 30 Jul, 2014 @ 4:10pm

Policies grant buildings - v 7
Added additional error checking so that a nil buildingClass results in no building being created instead of a floating garden being created.

Update: 25 Jul, 2014 @ 7:54pm

Previous version was the incorrect package. This version is now the correct package.

Update: 25 Jul, 2014 @ 7:53pm

Added a few changes that should slightly improve performance and reduce the likelyhood of mod makers doing wacky things with building overrides ending up with floating gardens being added to cities.

Update: 13 Jul, 2014 @ 1:30pm

Fixed typo in PGB_Tables.xml.

Update: 13 Jul, 2014 @ 9:20am

Policies Grant Buildings - v 4

Redesigned the algorithm. The snippet will now work correctly even if an end-user is playing with multiple mods that use the snippet. Other mod makers can add support for additional tables within their own mod without worrying about their tables being impacted by other mods that use this snippet (see "Adding a table" section in the description for more info).

Changed the naming convention on the existing XML tables. They are now all have a "PBG" for "Policies Grant Buildings" prefix to reduce likelyhood of clashing with names of tables added by other mods. For example, "Policy_FreeBuildingClass" is now: "Policy_PBG_FreeBuildingClass".

Update: 13 Jun, 2014 @ 8:00am

Previou update was the incorrect package. This update restores the mod to what it is suppose to be.

Update: 13 Jun, 2014 @ 7:49am

Fixed minor typo in the Madrasa example.

Update: 24 May, 2014 @ 4:27pm