Quick Modding Questions Thread

Changing it back to ANSI stopped the crash concerning the symbols in front, but now I'm getting a "Civilization 4: Beyond the Sword" has stopped working message. :mad:
 
Is there a good tutorial for adding civilopedia details to a new civ (including UU, UB, and leaders)?

At the very least, which XML files would i need, and where to put them?
 
In the city/units/buildings etc info there are tags that look like this:
<Civilopedia>TXT_KEY_CIV_AMERICA_PEDIA</Civilopedia>
Set that to what your thing is, so lets say its an SAM do
TXT_KEY_UNIT_SAM_PEDIA

then place a text file in assets/xml/text

in the text files it there will be things that look like this:

<TEXT>
<Tag>TXT_KEY_CIV_USA_PEDIA</Tag>
<English></English>
<French></French>
<German></German>
<Italian></Italian>
<Spanish></Spanish>
</TEXT>

in the tag, name it whatever you named it before (so for sam do: TXT_KEY_UNIT_SAM_PEDIA) then place what you want in the civilopedia in the Enlgish parts, and if you want different languages, in those parts as well
 
In the city/units/buildings etc info there are tags that look like this:
<Civilopedia>TXT_KEY_CIV_AMERICA_PEDIA</Civilopedia>
Set that to what your thing is, so lets say its an SAM do
TXT_KEY_UNIT_SAM_PEDIA

then place a text file in assets/xml/text

in the text files it there will be things that look like this:

<TEXT>
<Tag>TXT_KEY_CIV_USA_PEDIA</Tag>
<English></English>
<French></French>
<German></German>
<Italian></Italian>
<Spanish></Spanish>
</TEXT>

in the tag, name it whatever you named it before (so for sam do: TXT_KEY_UNIT_SAM_PEDIA) then place what you want in the civilopedia in the Enlgish parts, and if you want different languages, in those parts as well
I'm confused.... :confused:

REALLY confused..... :confused:

Are you saying, I'm supposed to make a .xml file from scratch and add to that?

I've no clue how to do that.

Or, are there pre-existing .xml files containing the text seen in the Civilopedia, so I can add my civ's info to a copy of it in my mods folder?
 
The XML\Text folder is unique in that the game loads every XML file in it, not just files with specific names. This lets you make your own file to hold the text for things in your mod. You can name it anything you want as long as it ends in ".xml". It just has to have the same format as the other text XML files.

BTW, this is also why you can run into problems replacing these files. If you make a backup copy of the original (which can be a good plan) in the Text folder and it still has the .xml at the end of the name then seemingly strange things can happen. The game will load both the new one and the backup in alphabetical order and the backup can end up overwriting the data for the new file leaving you with the old text instead of the new text. You need to either change the copy's ".xml" to something else or keep the copy in some other folder.
 
Makes sense now. Thanks. :)

New question: Is there a list of all the text formatting options for having text in the Civilopedia looking a certain way (bolded, italics, tabs, etc.)
 
I was wondering if anybody knew of an easier way to make diplo entries. Right now I'm stuck with the Civ4DiplomacyInfos route, where I have to find each subsection and place my entry there. I don't think that there's an easier way to do it, but if there is I'd like to know. I hate doind diplo entries, so if there's a faster way, it would be great to know.
 
Hello, Civfans! :)

I have some questions, I don't think that they hard for you.
All of the questions for BTS.
1. How to make unit, which REMOVE specific religion from the city?
2. If city with negative happy level, how to write script, which this city could become an indie civilization?
 
1. How to make unit, which REMOVE specific religion from the city?
2. If city with negative happy level, how to write script, which this city could become an indie civilization?

1) Check the BtS mod "Gods Of Old", it has an Inquisitor unit. Or check this mod ;).
2) Check this mod.

I don't know if you want to mod, or if you want to play. If you want to play, then you should really try the second ;).
If you want to mod, then you should try to combine these two. Because doing it yourself will not be easy.


---------------
No idea @ DiplomacyInfos, it's an awful file.
 
Thanks, inquisitor code was successfully copied to my mod! :) I will look RevolutionDCM mod later ;)

ML1SpdfS.jpg
 
I have you there, but I guess there's somehow a problem.
Can you see what I wrote?

And it's maybe the easiest thing if you attach the files to your post here ;). Just .zip them, and then there's at the bottom a "manage attachements" button, alternatively the
attach.gif
at the top.
 
No real idea :dunno:.
Always the same cities, or random?

I have question again. When I highlight my current civ in scoreboard in my mod - where info about points - it's crashes. What it is could be?

Since I found it out, and it's relatively interesting, I'm going to share it: Your techs don't have eras assigned.
If you look at your technologies\TechInfos.xml, all entries have:
PHP:
<Era>NONE</Era>

which causes the crash. Just put ERA_ANCIENT, ERA_MODERN, or whatever (probably the latter) into it, and the crash is gone.
That's also important for other parts, e.g. you shouldn't have city art or any music without an era (-> therefore, put ERA_MODERN, the music and city art should match best with your mod).

Another point: Don't use 2D leaderheads as the buttons.
All buttons should max. have a size of 64*64, not more, else you might get crashes (also take a look at your foreign advisor...).
 
Back
Top Bottom