View Full Version : Demographics to Clipboard Mod
vovan Jan 11, 2006, 04:10 PM If you play any Succession Games or participate in competitions, or otherwise like to show off your accomplishments, you know that often times you need to produce a screenshot of the Demographics screen. Well, after taking a screenshot of it for like the billionth time today, I got tired of the image processing associated with the cropping, resizing and uploading the picture, and came up with the "Demographics to Clipboard" mod.
This mod adds a button to the demographics screen, which, when clicked, puts an ASCII representation of the information in the table into the clipboard, for easy pasting into a text file or forum post.
Warning: This mod requires that you add a file to your game's installation directory. Use at your own risk, etc, etc, you know the drill. ;)
Installation instructions in the archive's readme.
vovan Jan 11, 2006, 04:11 PM Attached screenshot produces the following table in the clipboard:
+------------------+-----+----------+-------------+-----------+----+
| Demographics |Value|Rival Best|Rival Average|Rival Worst|Rank|
+------------------+-----+----------+-------------+-----------+----+
| GNP (Gold) | 9 | 10 | 9 | 9 | 3 |
+------------------+-----+----------+-------------+-----------+----+
|Mfg. Goods (Prod.)| 1 | 3 | 1 | 1 | 5 |
+------------------+-----+----------+-------------+-----------+----+
|Crop Yield (Food) | 5 | 5 | 4 | 4 | 1 |
+------------------+-----+----------+-------------+-----------+----+
| Soldiers |5000 | 8000 | 4833 | 1000 | 3 |
+------------------+-----+----------+-------------+-----------+----+
| Land Area |6000 | 12000 | 8333 | 6000 | 6 |
+------------------+-----+----------+-------------+-----------+----+
| Population |1000 | 1000 | 1000 | 1000 | 1 |
+------------------+-----+----------+-------------+-----------+----+
| Approval Rate | 87% | 85% | 85% | 85% | 1 |
+------------------+-----+----------+-------------+-----------+----+
| Life Expectancy | 85 | 91 | 88 | 85 | 7 |
+------------------+-----+----------+-------------+-----------+----+
| Imports/Exports | 0/0 | 0/0 | 0/0 | 0/0 | 1 |
+------------------+-----+----------+-------------+-----------+----+
alerum68 Jan 12, 2006, 06:07 PM Very nice Vovan. Is there a way to make this stand alone, without having to put the file into the main game directory?
vovan Jan 12, 2006, 06:35 PM Very nice Vovan. Is there a way to make this stand alone, without having to put the file into the main game directory?
Not that I know of. :( I haven't been able to make .pyd files work in any other directory...
Vovan
alerum68 Jan 12, 2006, 06:44 PM Damn. I wanted to add this to my MOD, but don't want to have to put stuff in the games root folder. humm.... what to do, what to do....
vovan Jan 12, 2006, 07:13 PM Damn. I wanted to add this to my MOD, but don't want to have to put stuff in the games root folder. humm.... what to do, what to do....
Well, I was looking around for a way to access the windows clipboard through python without using any .pyd files, but haven't found any way to do that yet...
Another thing I was thinking is instead of putting the stuff into clipboard, to put the table into a text file. That would allow one to avoid modifying the game folder, but would also be less convenient, IMO...
Vovan
alerum68 Jan 12, 2006, 07:20 PM No, would be a pain to have to open the text file, and then copy and paste. I guess if someone is playing SGs, and wants to use this feature, they will be able to read the directions and copy it .pyd file to the right location.
Zuul Jan 13, 2006, 01:17 AM Damn. I wanted to add this to my MOD, but don't want to have to put stuff in the games root folder. humm.... what to do, what to do....
Use and batch file (.bat)? That both moves the file and startup with right mod.
alerum68 Jan 13, 2006, 08:46 AM Use and batch file (.bat)? That both moves the file and startup with right mod.
That was my first thought, but not everyone has Civ4, or the MyGames folder, in the same location.:(
|
|