/////////////////////////////////////////////////////////////////////////////
//
// Readme for Diplomod script AI for CTP2 - Version 3.5
//
// Diplomacy by Dale
//
// 14-May-2001
//
// Free for public use and modification
//
// Diplomod version 3.5 contains Withdraw version 1.3
//
/////////////////////////////////////////////////////////////////////////////

Filelist:
---------

readme-diplomod.txt				- This file
history-diplomod.txt				- History of versions and changes
modersnotes-diplomod.txt			- Notes for moders wanting to use Diplomod
ctp2_data\default\aidata\diplomacy.txt		- Updated diplomacy models
ctp2_data\default\aidata\diplomacyproposal.txt	- Updated proposal settings
ctp2_data\default\gamedata\diplomod.slc		- SLIC for diplomacy
ctp2_data\english\gamedata\diplomod_str.txt	- Required message settings

Installing:
-----------

NOTE: IF YOU ARE UPDATING FROM ANY PREVIOUS VERSIONS OF DIPLOMOD YOU MUST INSTALL THIS VERSION COMPLETELY.  A LOT of changes have occured in the last version release, and to avoid conflicts you need to completely install V3.5.

CRITICAL!!!!!!!!!
YOU MUST HAVE THE OFFICAL ACTIVISION CTP2 PATCH INSTALLED TO RUN DIPLOMOD V3.5!  IF YOU DO NOT HAVE THE PATCH INSTALLED YOU WILL RECEIVE ERRORS!  DO NOT EMAIL ME SAYING YOU GET ERROR MESSAGES RELATING TO "GetStopResearchingAdvance" AS I GET VERY PISSY EASILY!  ;)

IMPORTANT: This mod will change the default install settings for diplomacy for all games.  I have done this because I (and many others at Apolyton) see the default CTP2 diplomacy model as useless and the AI does not make use of the enhanced features, and commonly makes stupid illogical errors in its diplomacy (EG. Requesting something it's just rejected).  I have tried to make this mod as generic as possible.  If you have your own mods or changes then this shouldn't interfere much, if at all.  If you use a different advance than bureaucracy to enable Diplomats, you will need to change "The art of establishing embassies" to the required advance (See modersnotes-diplomod.txt).

1 - Unzip files to Call to Power 2 install directory.
2 - Open: \Call to Power 2\ctp2_data\default\gamedata\script.slc in notepad.
3 - Delete from bottom of file: 
		#include "diplomacy.slc"
4 - Add the following line to bottom of file:
		#include "diplomod.slc"
5 - Open: \Call to Power 2\ctp2_data\english\gamedata\strings.txt in notepad.
6 - Add the following line to bottom of file:
		import "diplomod_str.txt"
7 - PLAY!

If you use a non-english version of CTP2 the folder titled "english" above will be different.  You will need to move "diplomod_str.txt" to the folder of your language.  "strings.txt" is also found in this folder.

Effects of script:
------------------

New diplomacy models for AI to AI and AI to HUMAN interaction.

- AI will not by default refuse another AI's proposal.
- AI has higher priorities for making proposals.  This causes the AI to make more proposals.
- AI's will generate either positive or negative regard for each other.
- AI/Human interaction will be more agressive/demanding.
- Enabled trade and military pacts for peace treaty.  I believe this to be more historically accurate.
- On average, an AI will make 16 considerations for proposals every turn for every civ.
- AI has 6 different AI-Human and AI-AI diplomatic states being friendly, neutral and provoking.
- AI's will now build embassies with other AI civs and embassies closed by war are re-opened after the war.
- AI's will now pullout non-civilian troops from land when withdraw troops agreement is in place.
- AI's will swap maps rarely in the beginning with increasing frequency till normal 1% chance.
- AI's will almost snub you completely if at war with you.
- Disabled Research Pact to avoid blatent Activision bug.
- This model will come into affect after the HasContact flag is enabled.

Suggestions:
------------

See Apolyton CTP2-Creation or CTP2-Mods/Scenarios forums for details on how to do these.

1 - Increase AI timeslices in const.txt.
2 - Play on larger maps.  My diplomacy model works better on them.
3 - Change all "SpecialUnitsCount" in strategies.txt to double what they are now.  Has the effect of the AI using more clerics/diplomats/spies/corporates/etc.

Using Scenarios:
----------------

Diplomod will not work with the Activision scenarios that shipped with CTP2.  Quite simply, CTP2 will error out if you try to use Diplomod with the Activision scenarios.  I do not know how other created scenarios will be affected.  Please do not ask me to fix the scenario problem as I wrote this mod specifically for the random generated game.

Using saved games:
------------------

IMPORTANT: If you install Diplomod then decide to play a saved game from BEFORE Diplomod, you must do the following after loading the saved game:
     1. Press the apostrophe key (')
     2. Type "/reloadslic" without the quote marks
     3. Press ENTER twice
This is only required the first time you load a saved game from BEFORE Diplomod.  If you save that game again or create a new game or scenario, you are not required to reload the SLIC.
WARNING: The above procedure may corrupt your save file meaning you cannot play it.  There is no support for using the above.

Moders Notes:
-------------

If you're a moder and wish to use Diplomod in your own mod, then have a read of modersnotes-diplomod.txt where I describe the design and reasoning behind my madness, and point out areas that might need to be changed depending on your mod.

Diplofrenzy Notes:
------------------

In the CTP2 forums at Apolyton, it has been noted by many that the Diplomacy mod and the AI Frenzy mod together make for a really good game.  In fact, it looks like these mods may become the default for playing single-player or succession games.  On a personal note, if you don't have the AI Frenzy mod, download it.  It's great.  :)

Bug Notes:
----------

There are two known diplomacy bugs that shipped with the release version of CTP2.  These were not fixed in the patch 1.11 update.  These two bugs are the "advance-for-gold" bug and the "research-treaty" bug (See Apolyton CTP2 forum boards for details).  These are internal bugs and cannot be rectified by SLIC.  The "advance-for-gold" bug is where the AI requests an advance, you counter by asking for gold, the AI accepts and receives the advance, but you do not receive the gold.  The "research treaty" bug is where the AI will gain one advance per turn if you have a research pact with them.  To counter this bug I have disabled Research Pacts entirely.

Credits:
--------

I wish to thank the following people for their help, patience and prodding to make me get up and finish this project:

- Markos and Dan at Apolyton Civ Site.  Moderator fellas.  They do a fantastic job with the site.  Also, Markos convinced me to keep moding after I cracked it at Activision's dumping CTP2 while it was still buggy.  http://www.apolyton.net
- OmniGod.  Files database admin type guy.  As far as I know he's been using Diplomod since the first and has helped me out with bugs and suggestions, and has helped others out when I was too slow to reply on the forums.
- Locutus.  SLIC guru god.  Without your SLIC notes this mod wouldn't have come about.  Also thanks for helping me out with chunks of code and suggestions.
- Wes.  Famous moder dude.  He's been patient while I iron out the bugs and add in a few other suggestions.  Thanks mate and I hope this adds flavour to the Med Pack II.
- Richard (Azmel).  The AI coding guru from Activision.  Thanks for helping the moding community with all your tips and tricks and explanations.
- Milkweed.  A second pair of eyes.  Thanks for solving the array bug and other suggestions in relation to the code.
- Beta testers.  There's about 8 of you (from memory).  Thanks for helping me test this thing and finding all the probs with the various versions.  How many times did you crash out to desktop without a msg?  :)
- Loyal fans.  The most important people of all.  Without you folks this mod is just another piece of code floating round cyber-space.  I hope this mod makes CTP2 better for ya's.

End:
----

I hope you enjoy Diplomod.  If you have suggestions/comments, please email me or preferable leave a message on the Apolyton CTP2 forums.

Dale
dale.kent@mel.alphawest.com.au