View Single Post
  #8  
Old February 28th, 2009, 09:11 PM

Illuminated One Illuminated One is offline
First Lieutenant
 
Join Date: Oct 2008
Location: In Ulm und um Ulm herum
Posts: 787
Thanks: 133
Thanked 78 Times in 46 Posts
Illuminated One is on a distinguished road
Default 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 ).
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.

Last edited by llamabeast; March 1st, 2009 at 03:47 AM..
Reply With Quote