DefaultBuilding tag

seady

Prince
Joined
Aug 30, 2006
Messages
582
Location
Sydney
Is this just used if there's a choice amongst building of the same type eg you have stables but the scythians have scythian stables?

I don't understand why i am getting the attached error.

<BuildingClassInfo>
<Type>BUILDINGCLASS_SIEGE_WORKSHOP</Type>
<Description>TXT_KEY_BUILDING_SIEGE_WORKSHOP</Description>
<iMaxGlobalInstances>-1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iExtraPlayerInstances>0</iExtraPlayerInstances>
<bNoLimit>0</bNoLimit>
<bMonument>0</bMonument>
<DefaultBuilding>BUILDING_SIEGE_WORKSHOP</DefaultBuilding>
<VictoryThresholds/>
</BuildingClassInfo>
<BuildingClassInfo>
<Type>BUILDINGCLASS_MAGELLAN</Type>
<Description>TXT_KEY_BUILDING_MAGELLAN</Description>
<iMaxGlobalInstances>1</iMaxGlobalInstances>
<iMaxTeamInstances>-1</iMaxTeamInstances>
<iMaxPlayerInstances>-1</iMaxPlayerInstances>
<iExtraPlayerInstances>0</iExtraPlayerInstances>
<bNoLimit>0</bNoLimit>
(line 1409) <DefaultBuilding>BUILDING_MAGELLAN</DefaultBuilding>
<VictoryThresholds/>
</BuildingClassInfo>
</BuildingClassInfos>
</Civ4BuildingClassInfos>
 

Attachments

  • magellan.GIF
    magellan.GIF
    11.9 KB · Views: 52
Was <bMonument>0</bMonument> something that came in with warlords? I copied the magellan thingie from sevomod and i hadn't noticed the difference before now. Searching on <bMonument> got me nowhere: anyone know what it does?
 
I'm not sure exactly what it does, but it is a boolean value (i.e., either a 0 or a 1). I noticed that the obelisk, temples, and cathedrals have them set to true.
 
Seady, just a tip when adding Xml, python, or C++ problems to the forums, try to put them in code form

Code:
So it's neatly
     Organized
           and easier for other people on the
  Forums to recongize the problem
        and help

It's the little # (number sign) at the top when your posting, If your problem is long and takes up a lot of room, Try the Spoiler form, it is good for that :D


- As for your problem, just check everything in all the other files links up correctly. If the problem is in (Line 1409) then you should check your Civ4_warlords_buildinginfos.xml file and make sure everything is in order.

Hope this works.
 
I see now, ahhh!
Code:
	<ElementType name="BuildingClassInfo" content="eltOnly">
		<element type="Type"/>
		<element type="Description"/>
		<element type="iMaxGlobalInstances"/>
		<element type="iMaxTeamInstances"/>
		<element type="iMaxPlayerInstances"/>
		<element type="iExtraPlayerInstances"/>
		<element type="bNoLimit"/>
		<element type="bMonument"/>
		<element type="DefaultBuilding"/>
		<element type="VictoryThresholds"/>
	</ElementType>
Spoiler :
In battlestar galactica, the humanoid cylons are actually the downloaded personalities of humans who volunteered for the process, as involuntary cylonisation drives the personality created into insanity..

Nah, just made that up. It'd explain a lot tho.


Thank you. Nice tip!
 
I can see these problems could be avoided if there is a program that parses the xml schema (say CIV4BuildingsSchema.xml) and sets up a form automatically, using radio buttons for booleans and otherwise checking for allowable values.

I have the vague idea this has already beeen done but since my experience is very limited I don't know if this is routine or i am actually having an original idea:rotfl:

I can recall many years ago, in the early days of the Inter Web (you know, the thing that the young people use these days), writing a visual basic 3 program that parsed a tagged text file (not html tags) and converted it into html format more or less (some editing required, but better than trying to do it manually).

Now my visual basic has long crumbled into dust but i wonder if what i am thinking of is already a part of some package like OpenOffice? I am trying to figure it out, but if this has already been done, please for pity's sake tell me :D
 
Back
Top Bottom