Thread Tools
Old December 20, 2002, 03:13   #1
ivanbuto
Chieftain
 
Local Time: 07:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 45
Functions of the capitol
In general, what exactly are they in CTP 2? Does the distance from the capitol only affect happiness and crime, and if so, where can one find how exactly one can calculate this? Are these some of the coefficients in Govern.txt?
__________________
Ivan - ivanbuto2@yahoo.com
ivanbuto is offline  
Old December 20, 2002, 13:03   #2
Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 7,665
Got this from http://apolyton.net/ctp2/modification/

Code:
EmpireDistanceScale -  Coefficient for distance to capital happiness penalty. 
Distance is multiplied by this value to get penalty 
MinEmpireDistance -  Distance below which there is no penalty 
MaxEmpireDistance -  Distance above which the penalty no longer increases
That second line is just on the second line so it doesnt make the thread too wide, but it refers to the EmpireDistanceScale above.
__________________
Call to Power 2: Apolyton Edition - download the latest version (7th June 2010)
CtP2 AE Wiki & Modding Reference
One way to compile the CtP2 Source Code.
Maquiladora is offline  
Old December 20, 2002, 17:38   #3
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 09:58
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
if the capitol is lost the distance happiness penalty is at maximum thats why the capitol is such a important building. Once destroyed tha happiness drops drastically

I am not sure if crime does increase with the distance from capitol It does???
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
Old December 20, 2002, 17:51   #4
Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 7,665
I thought it did, like it represents crime and corruption like civ2, and crime still varies from city to city without a courthouse etc, so the distance must affect it.
__________________
Call to Power 2: Apolyton Edition - download the latest version (7th June 2010)
CtP2 AE Wiki & Modding Reference
One way to compile the CtP2 Source Code.
Maquiladora is offline  
Old December 20, 2002, 18:09   #5
Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 7,665
It also says on the tech tree poster that the Capitol building is a crime type building, but that could mean that crime is lowered in all cities when its built, and not necessarily relative to the position of the city its in.
__________________
Call to Power 2: Apolyton Edition - download the latest version (7th June 2010)
CtP2 AE Wiki & Modding Reference
One way to compile the CtP2 Source Code.
Maquiladora is offline  
Old December 20, 2002, 21:03   #6
HuangShang
Call to Power II Democracy GameCTP2 Source Code Project
King
 
HuangShang's Avatar
 
Local Time: 05:58
Local Date: November 1, 2010
Join Date: Jul 2002
Location: Berkeley
Posts: 1,375
what r the radii of the capitols effect?
HuangShang is offline  
Old December 20, 2002, 21:28   #7
Maquiladora
Call to Power II MultiplayerCTP2 Source Code ProjectCall to Power PBEMCall to Power Multiplayer
Emperor
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 7,665
Quote:
Originally posted by HuangShang
what r the radii of the capitols effect?
If Capitol distance does effect crime, i assume its the same distance as happiness is affected from the distance. The radius is decided by the government, for Monarchy its "MinEmpireDistance 500" thats 5+ tiles before cities become unhappy from distance i think. The count of tiles can go diagonally to the grid lines too. Unless someone corrects me... again.
__________________
Call to Power 2: Apolyton Edition - download the latest version (7th June 2010)
CtP2 AE Wiki & Modding Reference
One way to compile the CtP2 Source Code.
Maquiladora is offline  
Old December 20, 2002, 21:54   #8
HuangShang
Call to Power II Democracy GameCTP2 Source Code Project
King
 
HuangShang's Avatar
 
Local Time: 05:58
Local Date: November 1, 2010
Join Date: Jul 2002
Location: Berkeley
Posts: 1,375
oh k
HuangShang is offline  
Old December 20, 2002, 23:53   #9
ivanbuto
Chieftain
 
Local Time: 07:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 45
What is the scale of the distance? For example 500 means what exactly in terms of the # of squares?
I haven't been able to find the constant 25 for base crime anywhere in the text files. I am wondering if in some way crime is related to happiness, since for example we know that above 95 happiness for all governments there is 0 crime.
Speaking of distances, if somebody coudl enlighten me on these lines in Const.txt I would be happy:

MIN_START_DISTANCE_COEFFICIENT 0.45
MAX_START_DISTANCE_COEFFICIENT 0.6
MAX_SAME_TILES 4
__________________
Ivan - ivanbuto2@yahoo.com
ivanbuto is offline  
Old December 21, 2002, 07:12   #10
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Other way around: happiness is related to crime.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old December 21, 2002, 10:32   #11
J Bytheway
Call to Power PBEMCall to Power II Democracy GameCTP2 Source Code Project
Emperor
 
J Bytheway's Avatar
 
Local Time: 13:58
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
(Edit: I'm an idiot, I'm talking about CTP1 here - probably best to ignore this post)

I believe that crime and happiness are interdependant, both affect each other. In govern.txt note:

CRIME_COEF 1
CRIME_OFFSET 85

I think this sets how crime varies with happiness. i.e. zero crime at 85 happiness, and +1% for each happiness point below that.

Last edited by J Bytheway; December 21, 2002 at 10:39.
J Bytheway is offline  
Old December 21, 2002, 13:31   #12
ivanbuto
Chieftain
 
Local Time: 07:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 45
Yeah, but these two lines are similar in CTP2. However, the CrimeCoef is a number that multiplies the generated crime depended on your government - this number doesn't say anything about happiness.
The other number, CrimeOffset, does relate them though - it seems to imply that crime is related to happiness. Immortal Wombat, if you are claiming that happiness is a function of crime, could you elaborate on that?
__________________
Ivan - ivanbuto2@yahoo.com
ivanbuto is offline  
Old December 22, 2002, 02:19   #13
ivanbuto
Chieftain
 
Local Time: 07:58
Local Date: November 1, 2010
Join Date: Jun 2001
Posts: 45
I browsed through the CTP 1 mod pages on apolyton, and I foudn the following formula for cirme:

Crime = CrimeCoeff * (CrimeOffset - Happiness)

Seems like this could work...
__________________
Ivan - ivanbuto2@yahoo.com
ivanbuto 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 08:58.


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