orlanth
Storm God. Yarr!
- Joined
- Nov 17, 2001
- Messages
- 1,805
(I don't know if it's appropriate to post here asking for help, but being quite stuck with a FfH modmodding issue I figured I'd give it a shot..)
For the Warhammer Fantasy Battles Mod (a modmod that uses FfH2 as a base), we're trying to create a group of five different Temple buildings for deities in the Chaos pantheon; where a civ can choose from any of these to build, but isn't able to build more than one from this group in the same city.
I had implemented this by making the Temples share one BuildingClass; this initially appeared to work, but it turns out that when trying to provide a civ multiple building types of the same class in Civ4CivilizationInfos.xml, only one building type of the class actually gets through to be buildable in-game. I've also tried giving each Temple their own BuildingClass so they all become buildable, and making them obsolete all the other temples, but this seems to cause problems too since ObsoleteBuildingClass apparently is transitive (if A obsoletes B and B obseletes A, then A obsoletes A), actually causing a crash once when building a temple. This is actually a fairly important part of the mod; we'd also hoped to give our variety of Magic College buildings an overall max of 3 per civ using a shared BuildingClass.
So, does anyone know if it is possible to somehow let a civ build 1 per city of a specific group of buildings, either using a Class or an entirely different way? Thanks very much for any advice - and as always we'd welcome any interested developers to get involved with this modmod in any way that strikes your fancy; it's quite a unique/promising one but in real need of greater talents than I!
For the Warhammer Fantasy Battles Mod (a modmod that uses FfH2 as a base), we're trying to create a group of five different Temple buildings for deities in the Chaos pantheon; where a civ can choose from any of these to build, but isn't able to build more than one from this group in the same city.
I had implemented this by making the Temples share one BuildingClass; this initially appeared to work, but it turns out that when trying to provide a civ multiple building types of the same class in Civ4CivilizationInfos.xml, only one building type of the class actually gets through to be buildable in-game. I've also tried giving each Temple their own BuildingClass so they all become buildable, and making them obsolete all the other temples, but this seems to cause problems too since ObsoleteBuildingClass apparently is transitive (if A obsoletes B and B obseletes A, then A obsoletes A), actually causing a crash once when building a temple. This is actually a fairly important part of the mod; we'd also hoped to give our variety of Magic College buildings an overall max of 3 per civ using a shared BuildingClass.
So, does anyone know if it is possible to somehow let a civ build 1 per city of a specific group of buildings, either using a Class or an entirely different way? Thanks very much for any advice - and as always we'd welcome any interested developers to get involved with this modmod in any way that strikes your fancy; it's quite a unique/promising one but in real need of greater talents than I!