.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Utility: Dominions Diplomacy Tool - Amnesia (http://forum.shrapnelgames.com/showthread.php?t=42443)

Illuminated One February 27th, 2009 08:12 PM

Dominions Diplomacy Tool - Amnesia
 
1 Attachment(s)
For those that are never sure to which nation they sent which item like me I've made a small prog to double check their diplomacy.
For a given *.2h file it displays all diplomacy you conducted in a list.

There are currently versions for 64 bit Linux and Windows XP (hopefully it runs on vista to).

The program recognizes all items and nations in the vanilla game, mod items and nations will just be called unknown item/nation with the item/nation number in brackets.

It also displays gold and gem transfers in detail but only the recipient of a message.


If you find any bugs while using it please tell me.

llamabeast February 28th, 2009 03:45 AM

Re: Dominions Diplomacy Tool - Amnesia
 
Wow, that sounds very useful!

lch February 28th, 2009 08:10 AM

Re: Dominions Diplomacy Tool - Amnesia
 
Haha, chrisp will love this, I think he said that he's always sending stuff to the wrong nations because of frequent misclicks. Very nice, though Linux only... Maybe make it into a web frontend?

Instead of saying "unknown nation" or "unknown item", better tell the ID number so that it's compatible with modding.

chrispedersen February 28th, 2009 04:55 PM

Re: Dominions Diplomacy Tool - Amnesia
 
YES I do LOVE LOVE LOVE it. I started doing it but I'm not much of a programmer. (Send a gift, compare turn file, send a gift, compare turn file)

YAH!!!!!!

The best way to run this illuminated/LCH would be to chain program *after* dominions. The ability is already on the command line. That way, after you run dominions, (but before you submit your turn) it will pop up a little screen that says:

1 msg sent to mictlan
1 msg sent to Ea-Lanka
5 fire gems sent to Kailasa
200 gold sent to Atlantis...
1 unknown item (#45) sent to Jotunheim

Etc.

This is brilliant (the original poster, not me)...

WraithLord February 28th, 2009 05:30 PM

Re: Dominions Diplomacy Tool - Amnesia
 
Awesome!

A windows .exe would be so :cool:

Gandalf Parker February 28th, 2009 06:21 PM

Re: Dominions Diplomacy Tool - Amnesia
 
I agree that a windows exe would probably go over well.
I draw this info from the game logs. For myself, or players in mp games that request it. Thats fairly easy to do for a linux user but much harder for a windows user. Im sure they would appreciate an exe.

Gandalf Parker
--
To some people, unlimited options seems to them to be zero options.
Without a menu of choices, they are lost.

chrispedersen February 28th, 2009 06:37 PM

Re: Dominions Diplomacy Tool - Amnesia
 
What would be *EVEN COOLER*

would be an even further extension.

This would be an application that runs *before* the turn is processed.

The application would check to see that matching trades were made, and if not, set the values traded to zero.

The way to do this would be a text message to your intended trading partner.

So, suppose mictlan wants to trade 150 gold for 10 fire gems from Abysia.

Mictlan would send two messages:

The usual message, sending Abysia 150 gold. And a second text message:
"CT 150 gold Abysia 10 Fire"

The application would check both turn files- if Abysia didn't send fire gems, the application would modify the gold sent to zero.

lch February 28th, 2009 08:32 PM

Re: Dominions Diplomacy Tool - Amnesia
 
chrispedersen, that's a pretty wonky workaround to get insurance about trade agreements, though. You shouldn't have an external program do this for you. I haven't heard of any people that deliberately violated trade agreements in any game, too.

Illuminated One February 28th, 2009 09:11 PM

Re: Dominions Diplomacy Tool - Amnesia
 
Quote:

Originally Posted by Ich
Instead of saying "unknown nation" or "unknown item", better tell the ID number so that it's compatible with modding.

Good idea, I will add that.

Quote:

Originally Posted by chrispedersen
The best way to run this illuminated/LCH would be to chain program *after* dominions. The ability is already on the command line. That way, after you run dominions, (but before you submit your turn) it will pop up a little screen that says:

You should be able to do that already. If you want a window output after running dominions instead of console use this shell script with zenity (I don't like programming UI :D ).
For windows I'll probably just use Messagebox.

Code:

#!/bin/sh

dom3 yourgame
amnesia ~/dominions3/savedgames/yourgame/yournation.2h > amnesia.txt

zenity --text-info --title="Yourgame Diplomacy" --filename="amnesia.txt"

If you'd wanted to make a insurance you could just send the gold/items back to yourself that would be 5 lines of code. Even somewhat thematic the trade caravan returns... :)
But making an interpreter for the messages is a lot of work, and the program would have to decrypt the messages and update the crc.

llamabeast March 1st, 2009 03:48 AM

Re: Dominions Diplomacy Tool - Amnesia
 
The censor has been at work... thanks for that guys, I'll let Illwinter know about it.


All times are GMT -4. The time now is 07:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.