Finding A Problem In Text Files

Joined
Jan 7, 2009
Messages
620
Hi all,

I was addting to the text files for the CTP mod a few days ago. When I went to check on the changes, I saw that the tech tree was missing at least two techs (I say at least because I wasn't able to scroll through). They show up fine when selecting them from the list of available techs and in the Civilopedia, so I don't think it has to do with the techs themselves. Addtionally, a few units are missing text information of any kind in the Civilopedia.

Now I could go through the text page and check for the problem, but that will take hours. Is there any way to see where the problem is that's blocking the techs from displaying and the units from having text files? I tried ctrl+e to check for any formatting errors but it came up empty.

If it helps, the only things that I (was suppose to have) changed were the display names for the technologies, and I did that with the find and replace function.

Thanks for any help
 
The xml.log file will tell you any text key conflicts, assuming that you've turned on logging. It'll also tell you any other fun XML bugs, some of which might be responsible for the tech tree not displaying.

But usually when the tech tree doesn't display, it's because the Lua function hit a snag that may or may not have been caused by the XML. For that, you need to check FireTuner, it'll give you an error message when the mod first loads. Again, this assumes you've turned on the tuner, but if you're in this forum then I'm sure you have.
 
The xml.log file will tell you any text key conflicts, assuming that you've turned on logging. It'll also tell you any other fun XML bugs, some of which might be responsible for the tech tree not displaying.

But usually when the tech tree doesn't display, it's because the Lua function hit a snag that may or may not have been caused by the XML. For that, you need to check FireTuner, it'll give you an error message when the mod first loads. Again, this assumes you've turned on the tuner, but if you're in this forum then I'm sure you have.

Well that's good news, although I'm embarassed to say I have never used either the xml.log or FireTuner. I'm going to remedy that right now. Thanks for the help.
 
OK so I found a few runtime errors in Tuner:


-Runtime Error: [string "Assets\UI\InGame\TechTree\TechButtonInclude..."]:190: attempt to index field '?' (a nil value)
-Runtime Error: Error loading Assets/UI/InGame/TechTree/TechTreeSocial.lua.
-Runtime Error: [string "Assets/UI/InGame/TechTree/TechTreeSocial.lu..."]:642: attempt to index local 'thisTechButton' (a nil value)

but aside from the error about loading the lua file, I have no idea what is going on. I gathered that the numbers refer to the line of code in the file, but I don't know how to remedy them. What needs to be done to fix these errors?

I found this in the xml.log
[489021.781] Tag (0) does not start with 'TXT_KEY_'

I have attached both the text file and the lua file. If you see anything, plz let me know.

Thanks
 

Attachments

I found this in the xml.log
[489021.781] Tag (0) does not start with 'TXT_KEY_'

If you go about 80% of the way down your XML file, there's this:
Code:
<Row>
  <Tag>0</Tag>
  <Text>The NanoTech Era</Text>
</Row>

It's pretty much exactly what the message says: you have a tag (0) that doesn't start with TXT_KEY_. Fix that and see if it still is broken.
 
Back
Top Bottom