Why do XML and SQL deffined Diplo Responses not work?

DoktorApplejuce

Champion of Kirkwall
Joined
Apr 9, 2015
Messages
582
Location
Canada
With the exception of <ResponseType>RESPONSE_FIRST_GREETING</ResponseType>, I have yet to get any diplomacy responses for my civs to work properly. Instead, all the lines revert to the basic, default responses. Has anyone else run into this problem?
 
Without seeing what your code is, it's a bit hard to say what's going wrong here.

Worth mentioning though is that the default responses will still appear on occasion, regardless of whether there are specific responses defined for your leader. The way to counter this is to add a large bias to each entry in the Diplomacy_Responses table for your leader. It won't get rid of the default responses completely, but they should seldom appear after that.
 
Without seeing what your code is, it's a bit hard to say what's going wrong here.

Worth mentioning though is that the default responses will still appear on occasion, regardless of whether there are specific responses defined for your leader. The way to counter this is to add a large bias to each entry in the Diplomacy_Responses table for your leader. It won't get rid of the default responses completely, but they should seldom appear after that.


Well, here's what I have for the civ I'm currently working on. I can attach the full file if you need that as well.
Spoiler :
Code:
<GameData>
	<Diplomacy_Responses>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_FIRST_GREETING</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_FIRSTGREETING%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_DEFEATED</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_DEFEATED%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_GREETING_POLITE_HELLO</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_POLITE_HELLO%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_GREETING_NEUTRAL_HELLO</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_NEUTRAL_HELLO%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_GREETING_HOSTILE_HELLO</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_HOSTILE_HELLO%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_HOSTILE_AGGRESSIVE_MILITARY_WARNING</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_HOSTILE_AGGRESSIVE_MILITARY_WARNING%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_EXPANSION_SERIOUS_WARNING</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_EXPANSION_SERIOUS_WARNING%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_REQUEST</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_RESPONSE_REQUEST%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_LUXURY_TRADE</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_RESPONSE_LUXURY_TRADE%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_OPEN_BORDERS_EXCHANGE</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_OPEN_BORDERS_EXCHANGE%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_ATTACKED_BETRAYED</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_ATTACKED_BETRAYED</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_ATTACKED_EXCITED</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_ATTACKED_EXCITED</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_ATTACKED_HOSTILE</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_ATTACKED_HOSTILE</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_DECLAREWAR</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_DECLAREWAR%</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_TRADE_NEEDMORE_ANGRY</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_ANGRY</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_TRADE_NEEDMORE_NEUTRAL</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_NEUTRAL</Response>
		</Row>
		<Row LeaderType="LEADER_HAWKE">
			<ResponseType>RESPONSE_TRADE_NEEDMORE_HAPPY</ResponseType>
			<Response>TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_HAPPY</Response>
		</Row>
	</Diplomacy_Responses>
	<Language_en_US>
		<!--General phrases -->
		<!--Greeting (first time meeting) -->
		<Row Tag="TXT_KEY_LEADER_HAWKE_FIRSTGREETING_1">
			<Text>Greetings, I'm Hawke, the Champion of Kirkwall.  All the stories you've heard about me?  Completely true.  Well, the good ones at least.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_FIRSTGREETING_2">
			<Text>Welcome to Kirkwall!  Oh, the smell?  If I had to guess, I'd say it's just my uncle Gamlen.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_FIRSTGREETING_3">
			<Text>Welcome to Kirkwall!  Yes, I'm the one they call the 'Champion of Kirkwall'.  How did I get the name, you ask?  Well, talk to my friend Varric, he tells the story a lot better than I do.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_DEFEATED_1">
			<Text>Damn it.  I never thought this day would come.  I guess this won't just be another one of Varric's stories.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_GREETING_POLITE_HELLO_1">
			<Text>Oh good, you're here!  I was just about head over to the Hanged Man with Aveline and Varric.  Why don't you join us?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_GREETING_NEUTRAL_HELLO_1">
			<Text>Welcome back to Kirkwall.  Have you been to the Hanged Man yet?  No?  Probably for the best.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_GREETING_HOSTILE_HELLO_1">
			<Text>Oh, it's you.  Look, there's some paint drying on one of the buildings in Hightown, and I'd honestly rather spend my time watching that.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_HOSTILE_AGGRESSIVE_MILITARY_WARNING_1">
			<Text>Look, I don't want to fight.  Well, actually, I do, but I figured I'd be nice and give you a warning first.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_EXPANSION_SERIOUS_WARNING_1">
			<Text>Yes, I'm aware that Kirkwall is a great city, but it is our city.  Let's keep it that way.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_REQUEST">
			<Text>It's not my proudest moment; but I need to ask for some help.  Any chance you could lend a hand?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_LUXURY_TRADE">
			<Text>Look, the nobles up in Hightown want some of your luxuries.  They've repeatly insisted that I propose this trade agreement, and for the sake of my sanity, I hope you agree.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_OPEN_BORDERS_EXCHANGE">
			<Text>How would you like to exchange open borders?  Think about it; free access to Kirkwall's creepy statues and smelly taverns!  Who could say no?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_ATTACKED_BETRAYED">
			<Text>Of course; no day would ever be complete without being stabbed in the back at least once, would it?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_ATTACKED_EXCITED">
			<Text>Oh, excellent! Target practice!.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_ATTACKED_HOSTILE">
			<Text>I knew it was a good idea to bring my weapons.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_DECLAREWAR_1">
			<Text>Look, It's nothing personal...  Well, alright, maybe it is a little bit personal.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_ANGRY">
			<Text>If that's a joke, it's not a very good one.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_HAPPY">
			<Text>I know we're friends and all, but if I don't ask for more, I know Aveline will get get angry at me for giving you preferential treatment.  And I really don't want that; she gets scary when she's angry.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_HAWKE_TRADE_NEEDMORE_NEUTRAL">
			<Text>You should come down to the Hanged Man sometime.  Those tactics might actually might get Isabela to lose a couple rounds of Wicked Grace.</Text>
		</Row>
	</Language_en_US>
</GameData>
 
Top Bottom