Thread Tools
Old November 23, 2000, 23:16   #1
Tootool22
Settler
 
Local Time: 09:47
Local Date: October 31, 2010
Join Date: Nov 2000
Location: Palatine, IL, USA
Posts: 6
How do i add new governments
I was looking through the call to power II files and found a government section. I want to add the government Oligargy and Aristocracy, but I don't want to delete any of the old govs, how do I go about do so? Or can I at all, do I just tack it on to the end? Please let me know as soon as possible, Thankyou
Tootool22 is offline  
Old November 24, 2000, 15:25   #2
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 11:47
Local Date: October 31, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Well, I haven't actually tried this yet but it shouldn't be very difficult. Mind that I don't have a copy of the final game yet, just a pre-release version, so if things have slightly different names or anything, that could be an explanation for it.

1) Copy one of the existing entries of default\gamedata\govern.txt (e.g. Communism, as long as it isn't Anarchy, that's a slightly non-standard government) and paste it at the end of the that file. Now change all the stats you want to change.

2) If you have a picture (if you don't, skip this step) to accompany your government (for the Great Library), make sure it's an 16-bit tga file. Save it in default\graphics\pictures.

3) Open uniticon.txt and copy one of the government entries of that file and past in anywhere else in that same file. Now rename all entries. FE if you copied the Communism entry and are adding Aristocracy, replace all instances of COMMUNISM with ARISTOCRACY, presuming that's the name you used in the govern.txt file and the name you'll use in the Great Library section. If you have a picture rename the FirstFrame and Icon sections to the name you gave your picture, if you don't have one, rename them NULL.

4) Now open english\gamedata\Great_Library.txt to add your government to the Great Library. Again, copy one of the existing entries and add it anywhere in the file. Rename the 'titles' of the GL sections (GOVERNMENT_ARISTOCRACY_PREREQ, GOVERNMENT_ARISTOCRACY_STATISTICS) and change the gameplay/historical sections. Look at the existing GL entries to see how you can make links to other sections of the GL if necessary. Don't forget to update the entry on the advance that enables your new government as well (the [ADVANCE_name_STATISTICS] section should say "Gives &ltlink&gtAristocracy&lt/link&gt").

5) Open english\gamedata\gl_str.txt and add the line GOVERNMENT_ARISTOCRACY "Aristocracy" (and for other governments as well of course).

6) Well, basicly your government should work now, so start up your game and try it out. The only problem now is that the AI doesn't know how to handle your new government and will ignore it. So once you've tested it and you know it works for you (and you're happy with all the settings), there's one more step:

7) To make the AI use your government as well, open default\aidata\strategies.txt and search for Government. There should be 8 or so sets of government settings, one for each personality in the game. Add your new governments to those personalities you think should use your settings (scroll up one or two screens to find what personality you're dealing with) and place it where you want it to be used (I think the AI will always choose the highest government in the list). The lines with // in front of it are comments and ignored by the program, so you can ignore those too. Here the example for Economist personality:

Government GOVERNMENT_VIRTUAL_DEMOCRACY
Government GOVERNMENT_CORPORATE_REPUBLIC
Government GOVERNMENT_DEMOCRACY
Government GOVERNMENT_THEOCRACY
Government GOVERNMENT_TYRANNY

Say you want to replace Theocracy with Aristocracy for this government, this should be what it should look like:

Government GOVERNMENT_VIRTUAL_DEMOCRACY
Government GOVERNMENT_CORPORATE_REPUBLIC
Government GOVERNMENT_DEMOCRACY
Government GOVERNMENT_ARISTOCRACY
Government GOVERNMENT_TYRANNY

Well, that should be all. It's not impossible a minor mistake here or there, so if this doesn't work right away, don't give up yet
Locutus is offline  
Old December 30, 2000, 18:12   #3
stahlshwanz
Settler
 
Local Time: 09:47
Local Date: October 31, 2010
Join Date: Dec 2000
Location: Vienna,Vienna,Austria
Posts: 1
Unfortunately this guide didn't let me add a new gov.
I haven't succeeded yet so I'd be greatful on any input!
All I found out so far is that:

quote:

Originally posted by Locutus on 11-24-2000 02:25 PM
5) Open english\gamedata\gl_str.txt and add the line GOVERNMENT_ARISTOCRACY "Aristocracy" (and for other governments as well of course).



might need a line
ADVANCE_NEWGOV "Newgov"

Also the files default/gamedata/advance.txt default/gamedata/advanceicon.txt could be the reason for the errors I get.
Again: I'd be greatful for an update on this HowTo!!
Thanks!
stahlshwanz is offline  
Old December 30, 2000, 19:33   #4
Paul
Apolytoners Hall of Fame
Emperor
 
Paul's Avatar
 
Local Time: 10:47
Local Date: October 31, 2010
Join Date: Mar 1999
Location: Zwolle, The Netherlands
Posts: 6,737
If your new government also requires a new advance you would indeed also have to add that new advance. This requires editing advance.txt, unitcon.txt (advanceicon.txt is no longer used in CTP2) and gl_str.txt. You should also edit greatlibrary.txt if you want it to be in the Great Library. And you should edit the AI files so that the AI civs will research it.
Paul is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:47.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team