Applying a custom building model

IronicBuddha

Work in progress
Joined
Mar 23, 2008
Messages
153
I searched around for tutorials to adding custom model buildings and nothing really came up, (Maybe I missed something). Every time I try to load a building with a custom model the game crashes saying there is an error in the art defines file. How would one go about adding a custom model to a building? Thanks, all help appreciated.
 
You may want to try just changing models first, to make sure the XML is right. For example, make the granary look like a barracks. If that works, then perhaps the problem is in your model itself. Is your model part of an existing mod which works by itself?
 
Well It seems it is the model,
Code:
                        <LSystem>LSYSTEM_3x2</LSystem>
			<bAnimated>0</bAnimated>
			<fScale>1.15</fScale>
			<fInterfaceScale>0.43</fInterfaceScale>
What do these tags here define, particularly the system and scale. Does it matter what they are when I include a model?
 
I am not an expert, but perhaps I can pretend till a real one comes along :-)

I believe the two scale values are for on-screen display only. So if these values were wrong, the object would show up too small or too large on the screen. But I don't think those would cause a crash.

I am sure you can check if the original and replacement both have the same LSYSTEM size. The lsystem has to do with how the buildings in the city fit together. You will have to make sure the new model and the old model have the same setting. This could well cause a crash. The 3x2 is the size, and you probably cannot replace a 3x2 building with a 2x3 or any other size. (Again, I am not an expert and I may be wrong.)
 
I dont think the size has to be the same, for example;
Code:
		<BuildingArtInfo>
			<Type>ART_DEF_BUILDING_LIBRARY</Type>
			<LSystem>LSYSTEM_3x2</LSystem>
			<bAnimated>0</bAnimated>
			<fScale>1.2</fScale>
			<fInterfaceScale>0.58</fInterfaceScale>
			<NIF>Art/Structures/Buildings/Library/Library.nif</NIF>
			<KFM/>
			<Button>,Art/Interface/Buttons/Buildings/Library.dds,Art/Interface/Buttons/Buildings_Atlas.dds,5,4</Button>
		</BuildingArtInfo>
		<BuildingArtInfo>
			<Type>ART_DEF_BUILDING_ARABIAN_MADRASSA</Type>
			<LSystem>LSYSTEM_2x2</LSystem>
			<bAnimated>0</bAnimated>
			<fScale>1.8</fScale>
			<fInterfaceScale>0.47</fInterfaceScale>
			<NIF>Art/Structures/Buildings/Madrassa/Madrassa.nif</NIF>
			<KFM/>
			<Button>,Art/Interface/Buttons/Buildings/Library.dds,Art/Interface/Buttons/Warlords_Atlas_1.dds,1,2</Button>
		</BuildingArtInfo>
Notice how the madrassa has a different Lsystem than the Library, I am looking to replace the library with a UB but cant seem to get it to work
 
Back
Top Bottom