PDA

View Full Version : How to add Building Descriptions by Faction



Dol Guldur
06-11-2005, 11:10
UNIQUE BUILDING DESCRIPTIONS FOR ALL FACTIONS

Introduction

This brief tutorial simply lays out the steps to take in order to provide unique descriptions to any or all of a faction's buildings, regardless of the R:TW vanilla set-up of "one description per culture".

The file listing the description names (see below) does so by culture. So governors_house_barbarian_desc provides the text for the description of the barbarian Governor's House (in-game as "Warrior's Hold").

However, as with the EDB file (export_desc_buildings.txt), Parthia is listed too. So we have (for example) governors_house_parthia_desc. Likewise in EDB Parthia is listed seemingly as a culture. Indeed, in this latter file it is always found alongside the Eastern culture in required factions for buildings (the Parthia faction, together with Armenia and Pontus comprise the Eastern culture). It has been rumoured that Parthia was a culture/remnant code (as far as these files are concerned) but I wondered if that was true.

Initial testing of some time ago - and as I'm sure many know - shows that factions can indeed be used as well as cultures as designated requirements in the EDB. So it got me thinking...what about building descriptions?

Here's what I did:


STEP 1. data\text\export_buildings.txt (this file contains all the long and short descriptions for buildings)

added following new entry:


{governors_house_numidia_desc}
The Numidian Governor's House is the centre for all administrative functions in a settlement. This is the power of Parthia made solid for the people who live here.\n\nThe administrator based here collects taxes, issues instructions to improve the settlement and manages the small day-to-day business of an empire.\n\nWhile not exactly luxurious, the Governor's House is usually the best building in the settlement, and locals try to build their own houses close by so that some prestige rubs off on them!

{governors_house_numidia_desc_short}
The Numidian Governor's House is the controlling hub of the settlement, and the basis of all state power. Without enlightened Parthian government, nothing else can develop.

You'll note that's just a copy of the standard Parthian description but I've inserted the word "Numidian" to differentiate it.

STEP 2.* data\export_descr_buildings_enums.txt

Simply added the following 2 entries:


governors_house_numidia_desc
governors_house_numidia_desc_short


RESULT:

http://www.imagehosting.us/himages/ihnp-526238thumb.jpg (http://www.imagehosting.us/?id=526238&type=viewpic)

ABOVE: Governor's House building scroll during play as Numidia


OBSERVATIONS:

Numidia is part of the Ct_carthage culture but you'll note my text is invoked rather than the ct_carthage one; this would suggest that a cultural basis can be used to provide shared descriptions to all those buildings in a culture whilst allowing any (or all) buildings to be uniquely described.

NOTE:

* The description still gets in-game without performing this step but it seems like it should be done just to be safe.

I did this all just over the last 24 hours or so and it is not thoroughly tested. Much more research and testing is needed and any help is welcome! There's a thread in "General" to discuss this.

DukeofSerbia
10-09-2006, 12:22
export_buildings.txt is key. In EDB add faction you want and then in export_buildings.txt description.

That's how I managed to add unique temples to Slavs in IBFD v6.05. I will explain later.

Makanyane
10-09-2006, 22:23
Thanks Dol Guldur,

There's a thread in "General" to discuss this.
sorry can't find it, could you provide link - then delete this message?

I'll try and double check my findings on having / not having enums in and post in discussion thread..

Dol Guldur
10-10-2006, 00:49
Nah, me neither.

I wrote this up at the time of the discovery and quite some time ago. It's not even updated or edited!

I guess a new thread could be started.

Makanyane
10-10-2006, 00:59
Aaah, :oops: , didn't look at top date, just saw it at top of pile and thought it was to do with recent discussion. :hide:

DukeofSerbia
10-10-2006, 20:32
I succesfully added new temples for Slavs in IBFD v6.05. If I don't forget I will post it tomorrow. It is very easy.

DaVinci
10-24-2006, 04:52
Thanks for this thread/confimation!
I wanted to test out to dividing some building-descriptions in Chivalry since a longer time, concerning the fact that parthia is separated, but have not as yet, due to time constraints.

And, another question related to this theme:

Is it possible, or better said, has anybody tested this division also for the building ui's? So for example can we have a parthia building ui folder?