# How to Create a Civilization in BTS

Discussion in 'Civ4 - Modding Tutorials & Reference' started by CaptainLepidus, Jan 3, 2010.

1. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
PHP:
             <NIF>Art/Interface/African Marine/marines.nif</NIF>            <KFM>Art/Interface/African Marine/marines.kfm</KFM>            <SHADERNIF>Art/Interface/African Marine/marines_fx.nif</SHADERNIF> 
there you go .

2. ### civlearner99Chieftain

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA
P.S. Thanks for all your help.

File size:
3.5 KB
Views:
132
3. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
What is the error?

(you have to tell me exactly, because i can't load it, i'm not at my gaming computer)

4. ### civlearner99Chieftain

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA
Invalid source at beginning of Civ4textyourciv.xml Source: <GameText>

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA

6. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
I have to guess now:
PHP:
 <!-- Game Text - New --> 
If you put the - in the middle, then remove it please.
Else i'll need the precise error text

7. ### Civ'edI ain't gotta explain a thing

Joined:
Oct 7, 2010
Messages:
6,315
Gender:
Female
Location:
Aberdonia et Banffia
I tried modding again, adding Finland, and the mod works, except for the fact that a lot of things have the TXT_SOMETHING_CIV or that instead of the real name. But it works

8. ### civlearner99Chieftain

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA
Exact Error: Failed Loading XML file xml/text/gametextinfos_yourciv.xml. [.\FXml.cpp:133] Error parsing XML File-
File: xml\text\gametextinfos_yourciv.xml
Reason: Invalid at the top level of the document.
Line: 1,1
Source: ?<!--Game Text Objects-->
By the way... I could have related errors.

9. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
Nice to hear .
Check, if the TXT_KEY references to the text files are really correct.

With what programm did you edit the file?
(no idea why i did not see that before )

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA

12. ### civlearner99Chieftain

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA
here's a copy of my updated file

File size:
3.2 KB
Views:
109
13. ### AsafSleep Deprived

Joined:
Mar 22, 2010
Messages:
1,326
The file was encoded in UTF-8 with BOM (byte order mark) - these were the characters The_J saw.
In addition it didn't have the XML header which specified the encoding.

Try the attached file (can't try it myself right now, but I think it'll work).

BTW, there's really no need to post every couple of minutes if no one has posted since. If you want to add information you can edit your last post

And I suggest moving on to Notepad++. It's free and much more comfortable for text editing than notepad.
You can also see the current encoding at the bottom right, and you have a menu for changing it.

File size:
3.2 KB
Views:
161
14. ### Civ'edI ain't gotta explain a thing

Joined:
Oct 7, 2010
Messages:
6,315
Gender:
Female
Location:
Aberdonia et Banffia
Point is, TXT_KEY_JUSTANIAN shouldn't be a problem, since I only added a civ. Maybe it's that I took the Hippodrome art for the Pesapällo field (UB, replaces Colloseum)

15. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
...er...do i understand you right, that you did not edit any of the original text files (or a copy of them in your mod folder), but there are still entries broken which should get loaded out of these files?

16. ### Civ'edI ain't gotta explain a thing

Joined:
Oct 7, 2010
Messages:
6,315
Gender:
Female
Location:
Aberdonia et Banffia
No, I edited the text files, but some of the file links i did NOT touch are broken.

17. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
All links from one file, or only some of them?

18. ### Civ'edI ain't gotta explain a thing

Joined:
Oct 7, 2010
Messages:
6,315
Gender:
Female
Location:
Aberdonia et Banffia
only some. For example, all Byzantine Text Files.

19. ### civlearner99Chieftain

Joined:
May 1, 2011
Messages:
42
Location:
MA, USA
AnotherProblem. Error on tags not matching in text file. By the way, this is a different mod.

File size:
6 KB
Views:
138
20. ### The_JSay No 2 Net ValidationsAdministratorSupporter

Joined:
Oct 22, 2008
Messages:
36,354
Location:
DE/NL/FR
  your pleas. Bye and Die.English>