TA bug: AI sent blank declaration of war message

While playing a TA game today, I received this rather bizarre message from a custom opponent:

The next turn confirmed that they had declared war on me.

I've never seen anything like this before, either earlier in this particular game or anywhere else. I haven't modded the dialogue other than to correct some bugs and this civilization certainly didn't have any unique to it that I could see causing this. Examining my debug.err file showed nothing unusual.

Does anyone know why this happened?

10,875 views 3 replies
Reply #1 Top

As I recall, this is because there needs to be a declaration of war text for each possible morality (good, neautral, evil).  Really there should be a catch-all at the bottom but it's not a file I've looked at much so I don't even know if that would work.

Reply #2 Top

And the same thing has just happened in another game, this time with the Yor. Still no indication of anything odd in the debug.err.

Again, I've literally never seen this before, so it's not just a problem with the dialogue file or the mod. Something has to have changed.

Reply #3 Top

Quoting qrtxian, reply 2
Again, I've literally never seen this before, so it's not just a problem with the dialogue file or the mod. Something has to have changed.

Those empty messages have been around, at the very least, since TotA got released. I don't remember, if they also happened in DL or DA, but they require certain race and/or alignment-combinations to appear, which could explain why you haven't noticed them before. In any case, this is definitely due to bugs in the GC2_Conversations.xml. I've solved most of them in my mod, but I'm not sure, if I got all of them. Testing them is a pain. :annoyed:

Anyhow, part of the problem is what MarvinKosh said, but there is more to it. All entries of a Topic need to be ordered in a specific way: starting with the Terrans, going through the Drengin, Altarians, etc, and finally ending with the Generic (Custom Race) entry (just like how they are ordered in the RaceConfig.xml). If there is no entry for a race at all, then the Generic entry will be used. If there is only a limited amount of entries for a race (like Terrans-talk-to-Generic), then the Generic entry will be used for the rest. However, this isn't always the case, leading the game to display an empty message (because it can't find the necessary entry). I'm still not certain why this is, but the easiest way to fix it, is to add all the missing entries.

There is still a lot I don't know about the GC2_Conversations.xml. Everything I do know, I've learned through trial and error, because there is no documentation about it.