Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Creation/AI/Mods/Scenarios > Govern.txt questions
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:34
  Old Post 22-03-2004 19:58 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Govern.txt questions Full PM-box? Change here!

How do WarDiscontentMaxUnits and WarDiscontentPerUnit work exactly?

It says in the mod section,

quote:

WarDiscontentMaxUnits - Maximum number of unit to be counted towards War Discontent
WarDiscontentPerUnit - Amount of Unhappiness to be created by each unit


so as an example Democracy is,

WarDiscontentMaxUnits 5
WarDiscontentPerUnit 2

?

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:34
  Old Post 24-03-2004 20:17 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

Okay so i know that for every unit after the 5th i get -2 happiness (using the example above) so 1 city and 6 units would create -2 WD (WarDiscontentPerUnit is 2), but thats only for 1 city. If i have 2 cities and 6 units its -1 WD.

Well i know its worked out by # of cities too, i just dont know how exactly. I had some things written down to work it out and they did work, but the formulas were failing with 35 cities, so im still Would be nice if some looked at the sourcecode

Id also like to know how AtHome Radius works and what it affects too.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:34
  Old Post 24-03-2004 20:45
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

code:
m_warDiscontent = 0; const GovernmentRecord *grec = g_theGovernmentDB->Get(p->m_government_type); if(militaryUnitsOutOfCities > grec->GetWarDiscontentMaxUnits()) { sint32 diff = militaryUnitsOutOfCities - grec->GetWarDiscontentMaxUnits(); double total = diff * grec->GetWarDiscontentPerUnit(); double perCity; if(all_cities.Num() < 1) perCity = 0; else perCity = total / all_cities.Num(); m_warDiscontent = perCity; }


So,

total = (militaryUnitsOutOfCities - WarDiscontentMaxUnits) * WarDiscontentPerUnit


And then (per city): warDiscontent = total/number_of_your_cities


I'll try to track down 'AtHomeRadius' now.

Edit: Yuk. Basically, if an army is further than AtHomeRadius away from one of it's cities, it may contribute to some 'overseas' measure, but I can't find where this is used.

Last edited by Peter Triggs on 24-03-2004 at 21:02

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:34
  Old Post 24-03-2004 22:18 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton or Terrorists Win

Comparing to some saves ive got, working it out with that formula i get roughly WD -2 more above what it actually says in the city manager, i dont have any WD reducing builds either.

I guess stealth units and settlers dont count as "militaryUnitsOutOfCities", but still im not getting an exact result.

But... i guess i cant argue with the sourcecode.

I suspected units in the at home radius, but not in cities, would contribute to WD, which is kinda strange.

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:34
  Old Post 24-03-2004 23:11
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by Maquiladora
Comparing to some saves ive got, working it out with that formula i get roughly WD -2 more above what it actually says in the city manager, i dont have any WD reducing builds either.

I guess stealth units and settlers dont count as "militaryUnitsOutOfCities", but still im not getting an exact result.

But... i guess i cant argue with the sourcecode.

I suspected units in the at home radius, but not in cities, would contribute to WD, which is kinda strange.


which is the weird thing i really love about CTP2, its not an exact game to play or work out

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:34
  Old Post 24-03-2004 23:28 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

Probably the only civ game that cant always be played the same way and won everytime, lots of different strategies, all the more need to know whats going on under the hood.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:34.
Apolyton Time is 00:34.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0367 seconds (90.22% PHP - 9.78% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net