View Full Version : Utility Dominions Diplomacy Tool - Amnesia
Illuminated One
February 27th, 2009, 08:12 PM
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
Wow, that sounds very useful!
lch
February 28th, 2009, 08:10 AM
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
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
Awesome!
A windows .exe would be so :cool:
Gandalf Parker
February 28th, 2009, 06:21 PM
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
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
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
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.
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.
#!/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
The censor has been at work... thanks for that guys, I'll let Illwinter know about it.
chrispedersen
March 1st, 2009, 09:30 PM
I sent an email as soon as the topic came out - but you probably have back door ways to get noticed better. Still, I thought my write up was pretty good so you might have them look for it. I sent it to info:penguin:illwinter:)com
Illuminated One
March 2nd, 2009, 11:07 PM
Ok, I've ported to windows.
WraithLord
March 3rd, 2009, 04:41 AM
Cool :)
Can you please post the windows version?
Illuminated One
March 3rd, 2009, 07:04 PM
It's in the zip on the first post. :D
vfb
January 9th, 2010, 09:23 PM
Can you please build a 32-bit linux exe?
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.