I don't get this !

grallon

Warlord
Joined
Feb 5, 2003
Messages
110
I've been working my way through the XLM files, modding as I went and now I can't figure this one out.

I created a new building - the Tribal Hall - intended to be used as a giv center at the start of the game until Monarchy is discovered. I wanted to use the vanilla palace model but after changing the ArtdefBuilding file the new building "works" - meaning the effects are there - but the model itself doesn't appear on the game interface. I made similar other changes (using the Parthenon as my new religion (Pantheism)' cathedral) with similar results: I can built the thing but it's not visible. And I don't know what I'm missing. Here's the relevant part of the XLM file.

<BuildingArtInfo>
<Type>ART_DEF_BUILDING_TRIBAL_HALL</Type>
<bAnimated>0</bAnimated>
<fScale>1.0</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Structures/Buildings/palace/palace.nif</NIF>
<KFM/>
<Button>,Art/Interface/Buttons/Buildings/palace.dds,Art/Interface/Buttons/Buildings_Atlas.dds,6,5</Button>
</BuildingArtInfo>

There are 2 other NIF files in the Palace subfolder and I don't know which one is the right one. But even after trying all of them it still doesn't work. I even tried renaming the folder and the files but the game crashed. All the other relevant files (Pedia - strategy - textobject) have been changed as well.... I'm lost !



G.
 
grallon said:
I've been working my way through the XLM files, modding as I went and now I can't figure this one out.

I created a new building - the Tribal Hall - intended to be used as a giv center at the start of the game until Monarchy is discovered. I wanted to use the vanilla palace model but after changing the ArtdefBuilding file the new building "works" - meaning the effects are there - but the model itself doesn't appear on the game interface. I made similar other changes (using the Parthenon as my new religion (Pantheism)' cathedral) with similar results: I can built the thing but it's not visible. And I don't know what I'm missing. Here's the relevant part of the XLM file.

If you're just using the palace model then use the reference to the palace art. The game doesn't care if multiple buildings (or units) use the same set of artwork. It would read the same as a palace, i.e.:

<ArtDefineTag>ART_DEF_BUILDING_PALACE</ArtDefineTag>

Max
 
maxpublic said:
If you're just using the palace model then use the reference to the palace art. The game doesn't care if multiple buildings (or units) use the same set of artwork. It would read the same as a palace, i.e.:

<ArtDefineTag>ART_DEF_BUILDING_PALACE</ArtDefineTag>

Max


It doesn't work - so there must be something else involved.




G.
 
The handles for putting Buildings on the Map interface is in Buildings/CityLSystem.xml

You need to add an entry to that, to make the model appear. But I must warn you it's a somewhat tricky task, as the LSystem files aren't all that userfriendly. I'm trying to get us some docs for this file, but in the meantime, best thing to do is to copy one of the entries of the other buildings (preferably one with a model of the same size) and then just change the ArtRef entry to whatever <Type> value you gave your building.
 
Isak said:
The handles for putting Buildings on the Map interface is in Buildings/CityLSystem.xml


More intricacies in this "very easy to mod" game :D


Anyhow in each of the building entries in the file you mentioned there's a scale value - does this supersedes the scale value mentioned in the Art Def file ? Are they even the same thing ? In fact there are 3 scale variables: the one in this file and 2 in the Art Def... Which one has precedence ?


G.
 
grallon said:
More intricacies in this "very easy to mod" game :D

Easy? Easy and Powerful don't mix, I'm afraid. I can whip out countless user interfaces to point it out, and I've never seen anyone whip out countless user interfaces to prove the opposite. ;)

Anyhow in each of the building entries in the file you mentioned there's a scale value - does this supersedes the scale value mentioned in the Art Def file ? Are they even the same thing ? In fact there are 3 scale variables: the one in this file and 2 in the Art Def... Which one has precedence ?

Not sure which one takes precedence. I'd think the one in the LSystem does though, but haven't tested.
 
Back
Top Bottom