• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Quick Modding Questions Thread

[Question]:

The same goes for "Road" and "Rail Road". Neither one of them is even listed in ImprovementInfos.xml. Where the heck are they??


Thanks in advance.

Because they are not improvements: they hide as CIV4RouteInfos.xml in the Misc folder. In the meantime, you have seen them in the BuildInfos file as well. :scan:
 
Thanks man. Looks like I'm gonna be keeping you two busy in the next little while with my questions. New kid on block with his tricycle :lol:.
 
In which XML files does one rename civics and units? I knew it months ago but forgot about it again. :blush:
 
In which XML files does one rename civics and units? I knew it months ago but forgot about it again. :blush:
1 - Take the value from the <Description> tag in the Civic/Unit .xml file, typically starting TXT_KEY_XXX
2 - Look in the Text folder in the base install and find the XML with this value defined.
3 - Copy the XML block to a new file in your mods Text folder. The naming of the file is flexible, but I should have CIV4GameText in the filename at the start or the end.
4 - Change the values in the <Language> tags to what you want the new value to be

e.g. in CIV4UnitInfos.xml
Code:
		<UnitInfo>
			<Class>UNITCLASS_LION</Class>
			<Type>UNIT_LION</Type>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ANIMAL</DefaultUnitAI>
			<Description>[COLOR="Blue"]TXT_KEY_UNIT_LION[/COLOR]</Description>
			<Civilopedia>TXT_KEY_CONCEPT_ANIMALS_PEDIA</Civilopedia>
			<Strategy>TXT_KEY_UNIT_ANIMAL_STRATEGY</Strategy>

From CIV4GameTextInfos_Objects.xml
Code:
	<TEXT>
		<Tag>[COLOR="Blue"]TXT_KEY_UNIT_LION[/COLOR]</Tag>
		<English>Lion</English>
		<French>
			<Text>Lion</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Löwe</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Leone:Leoni</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Italian>
		<Spanish>
			<Text>León:Leones</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Spanish>
	</TEXT>

Then copy the complete block, including the <TEXT> and </TEXT> tags to your new file in your mod folder

Code:
	<TEXT>
		<Tag>[TXT_KEY_UNIT_LION</Tag>
		<English>[COLOR="Blue"]Leo[/COLOR]</English>
		<French>
			<Text>Lion</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</French>
		<German>
			<Text>Löwe</Text>
			<Gender>Male</Gender>
			<Plural>0</Plural>
		</German>
		<Italian>
			<Text>Leone:Leoni</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Italian>
		<Spanish>
			<Text>León:Leones</Text>
			<Gender>Male</Gender>
			<Plural>0:1</Plural>
		</Spanish>
	</TEXT>
 
Thanks, I guess.
The problem is that I'm modmodding LoR and some units' names seem to be all over the place.
 
Just change the TXT reference in the unit info to a new one and you don't have to check where the original is defined
 
Thanks, I guess.
The problem is that I'm modmodding LoR and some units' names seem to be all over the place.

In that case I would suggest that you find all the instances of the TXT_KEY value and then either change them one by one to find out the last one that is being read or you delete all the existing entries and add a new file of your own that is the only one with the key value.

I haven't seen LoR so I don't know how its text files are organised. If there are multiple entries I am presuming that it uses modular XML. Whilst I understand why that mechanism is used and the value it provides I personally hate it for the very reason that it can be a pain to try and work out which files are actually used. A good reference is here in Appendix A
 
Does a fan made translation of BtS exist for Latin?
 
This is unacceptable! There are like four different official translations just for Celtic perversions of the Lingua Latina (barbaric beasts with a ton of accents all around the place like 'French' or 'Spanish') but not even a fan made version for the original? Somebody's gotta do something about this y'all!
 
are there any tutorials on how to put city sets into a mod?

@Lib, I tried to change the HUD color, yet I still get the same error. I used lemon merchants thing to easily change the HUD color of my CIV, but it isn't for the mod if I upload it. So I copied the resource folder over, I changed what the tutorial says
Code:
// *** Control Bitmap Theme file

// Set the resource 
resource_path	"TTT - In The Trenches/Resource";

// Setup common properties
include			"TTT - In The Trenches/Resource/Themes/Civ4/Civ4Theme.thm";
Code:
<MiscArtInfo>
			<Type>DEFAULT_THEME_NAME</Type>
			<Path>TTT - In The Trenches/Resource/Civ4.thm</Path>
			<fScale>0.0</fScale>
			<NIF>None</NIF>
			<KFM>None</KFM>
		</MiscArtInfo>

Yet when I load the mod it crashes, any ideas?
 
Are you not missing Mods/ in the paths?

Look at post #3189 by Archid (a bit above on this page): he gives a link to a BtS tutorial by Kael. There is a section on themes: there the path is more like

<Path>Mods/[ModName]/Resource/Civ4.thm</Path>

and

Code:
// *** Control Bitmap Theme file

// Set the resource 
resource_path	"Mods/[ModName]/Resource";

// Setup common properties
include			"Mods/[ModName]/Resource/Themes/Civ4/Civ4Theme.thm";
.
 
Sorry guys thats embarrassing

I of course put the mods/ but it didnt work, i simply was tinkering around to see what could possibly work
Code:
// *** Control Bitmap Theme file

// Set the resource 
resource_path	"Mods/TTT - In The Trenches/Resource";

// Setup common properties
include			"Mods/TTT - In The Trenches/Resource/Themes/Civ4/Civ4Theme.thm";
Code:
<MiscArtInfo>
			<Type>DEFAULT_THEME_NAME</Type>
			<Path>Mods/TTT - In The Trenches/Resource/Civ4.thm</Path>
			<fScale>0.0</fScale>
			<NIF>None</NIF>
			<KFM>None</KFM>
		</MiscArtInfo>

It crashes when I load it. I used the lemon merchants thing to change my BTS color, coppied resources folder from BTS placed in mod, copied artdefinesmisc and chaanged the two files. Set BTS back to normal color. No idea what Ive done wrong
 
This might belong more into the RFC subforum, but how difficult would it be to create a 1500AD scenario or something like that for Rhye's and Fall of Civilization, or to be more specific its Multiplayer Version? No adding of new civs, units or other features, just an advanced start.
 
Back
Top Bottom