Advertisement
Civilization Fanatics' Center  

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components

Reply
 
Thread Tools
Old Apr 22, 2006, 11:40 AM   #1
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
[SDK MOD] Great Person Thresholds Per City

Great Person Points Threshold Per City Mod v1.0
By: Shaded (Serkan Koc)
Contact: s_koc@hotmail.com

Patch Compatibility: v1.61
MP Compatibility: Not Tested

DESCRIPTION
=-=-=-=-=-=-=


This mod changes the great person point generation. In the original CIV IV, there is a single Great Person Points threshold per player. When this threshold is reached by any city, a great person borns and threshold is increased (doubled). This mod changes this behaviour so that each city has its own threshold. Birth of a great person in a city does not effect the thresholds of other cities. This way specialization of cities are much more meaningful and you can easily make one of your cities a Great Artist generating city, and one another a Great Prophet generating city without one of them overrunning the other. This mod eliminates the strategical need of putting all your wonders to a single city.

(See the example below for more information.)

INSTALLATION
=-=-=-=-=-=-=

Just copy the Assets/CvGameCoreDLL.dll to your custom assets folder.
Please be aware that your previous sdk mods will be overridden.
To be able to use multiple sdk mods, you will have to wait someone to put those mods together in a mod pack.

SOURCE
=-=-=-=-=-=-=

Changed source codes (from the 1.61 SDK baseline) are also included in this package for the convenience of mod pack producers.

LICENSE
=-=-=-=-=-=-=

Please feel free to use this mod in your mods/mod packs as long as you mention the name of this mod and my name (as its written on the top of this readme) in your docs and credit screens.

EXAMPLE
=-=-=-=-=-=-=


City 1 generates 10 Great Artist Points per turn.
City 2 generates 3 Great Engineer Points per turn.

Original CIV behaviour:

Initial GP threshold is 100.
-------------------------------------------------
at turn 10: A Great Artist borns in City 1.
Threshold increases to 200
City 2 generated only 30 GP points.
-------------------------------------------------
at turn 30: A Great Artist borns in City 1.
Threshold increases to 400
City 2 generated only 90 GP points.
-------------------------------------------------
at turn 70: A Great Artist borns in City 1.
Threshold increases to 800
City 2 generated only 210 GP points.
-------------------------------------------------
at turn 999999: City 2 never gets a great engineer and the player suicides seeing his investment of great wonder didnt pay off


Modded CIV behaviour:

Initial GP threshold is 100.
-------------------------------------------------
at turn 10: A Great Artist borns in City 1.
Threshold for City1 increases to 200
City 2 generated only 30 GP points.
Threshold for City2 remains at 100
-------------------------------------------------
at turn 30: A Great Artist borns in City 1.
Threshold for City1 increases to 400
City 2 generated only 60 GP points.
Threshold for City2 remains at 100
-------------------------------------------------
at turn 34: A Great Engineer borns in City 2.
Threshold for City2 increases to 200
Threshold for City1 remains at 400
-------------------------------------------------
at turn 999999: Player smiles with enjoyment...


DISCLAIMER
=-=-=-=-=-=-=

This product is provided "as is", "free of charge" and "without guarantees". Usage of this mod should be considered completely "use at your own risk" type.I can not be held responsible for damages to your software or hardware and any loss of information.

DOWNLOAD LINK
=-=-=-=-=-=-=

http://www.civfanatics.net/uploads11...PerCityMod.zip
Shaded is offline   Reply With Quote
Old Apr 22, 2006, 11:41 AM   #2
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
reserved for future posts...
Shaded is offline   Reply With Quote
Old Apr 22, 2006, 01:20 PM   #3
Lord Olleus
Deity
 
Lord Olleus's Avatar
 
Join Date: Oct 2005
Location: England
Posts: 5,083
hmm.
Specialists are probably overpowered now. I recomend that you massively tone down representation and caste system. Also, doesn't this kill the need for a GP farm?

On another note, where did you find the great people code? I would like to do a similar mod where their is one GP counter for the entire civ, instead of per city.
__________________
Most zealously I seek for erudition. Much do I know, but to know all is my ambition.
-Faust
Lord Olleus is offline   Reply With Quote
Old Apr 22, 2006, 02:10 PM   #4
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by Lord Olleus
hmm.
Specialists are probably overpowered now. I recomend that you massively tone down representation and caste system. Also, doesn't this kill the need for a GP farm?

On another note, where did you find the great people code? I would like to do a similar mod where their is one GP counter for the entire civ, instead of per city.
Powering down the specialists are easy by just dropping down the gp generation rate by xml files. That way we can still have city specialization and fairly balanced specialists. I will try to do add this to next version of this mod if people agree with that too.

And for GP farm, yes you are right! it kills it and that was my intention. A single city of GP was killing the whole concept of GP by forcing us to one "right" way.

The great people code is scattered around CvCity and CvPlayer classes. Download the mod,it contains the changed source code.
Shaded is offline   Reply With Quote
Old Apr 22, 2006, 02:47 PM   #5
Tycoon101
Loves being STRONG
 
Tycoon101's Avatar
 
Join Date: Jan 2005
Location: Fiftychat
Posts: 4,454
Thank you!
I've had that exact same problem with great people, so now it's much better. I'll try it out and post my findings
__________________
"I feel like I've somehow managed to turn the domestic abuse of a burly mustachioed udder mutant into something adorable.

I'm pretty proud of this."
-AH
Tycoon101 is offline   Reply With Quote
Old Apr 22, 2006, 05:08 PM   #6
Impaler[WrG]
Civ4:Col UI programmer
 
Impaler[WrG]'s Avatar
 
Join Date: Dec 2005
Location: Vallejo, California
Posts: 1,750
This definatly is an improvment over the default game, but what I think the best solution would have been to pool all the GPP from across the Empire so every city would contribute and nothing would ever be wasted. The GP would spawn in a city randomly but it would be weighted towards which city is producing the most points of that type so your wonder bearing cities will get them most of the time and far off little colonies almost never spawn them.
__________________
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest. - Thus spoke Zarathustra, Fredrick Nietzsche

Civ 4 Community Core Project One DLL to Rule them ALL, Now a part of WoC, 3.02 version in the Progress
Modular XML Loading 3.0 True Drag and Drop modability, Included by Firaxis in Beyond the Sword
World Of Civilization A World of Mods under one roof
Impaler[WrG] is offline   Reply With Quote
Old Apr 22, 2006, 05:22 PM   #7
Houman
TR Team Leader
 
Houman's Avatar
 
Join Date: Jan 2002
Posts: 1,083
Quote:
Originally Posted by Impaler[WrG]
This definatly is an improvment over the default game, but what I think the best solution would have been to pool all the GPP from across the Empire so every city would contribute and nothing would ever be wasted. The GP would spawn in a city randomly but it would be weighted towards which city is producing the most points of that type so your wonder bearing cities will get them most of the time and far off little colonies almost never spawn them.

This would be actually the best solution and nothing is wasted. It is more realistic too, since it is an empire that becomes cultural and not only a single city.
__________________
Rewrite the History if you think you would have done better!
Warlords: Total Realism 2.3a ...Every Nation deserves Another Chance...
Website about this Mod Forum about this Mod
The 300 Movie: Separating Fact from Fiction Please Support this TV Documentary to be released
Houman is offline   Reply With Quote
Old Apr 22, 2006, 09:17 PM   #8
RogerBacon
King
 
Join Date: Nov 2003
Posts: 649
Nice mod but I noticed something wrong with your premise. You say that in the original civ the GP counter doubles everytime a GP is born. It doesn't double. It increases by the amount of GP points that your most productive GP producing city produces, rounded up to the nearest 100. For example: you have 3 cities making 112, 45, and 2 GP points per turn. After a GP is born the threshold increases by 200 (112 rounded up to the nearest 100).

Roger Bacon
RogerBacon is offline   Reply With Quote
Old Apr 23, 2006, 02:36 AM   #9
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by Impaler[WrG]
This definatly is an improvment over the default game, but what I think the best solution would have been to pool all the GPP from across the Empire so every city would contribute and nothing would ever be wasted. The GP would spawn in a city randomly but it would be weighted towards which city is producing the most points of that type so your wonder bearing cities will get them most of the time and far off little colonies almost never spawn them.
I thought about pooling all the GPP from across the Empire too, however this solution seems like killing the city specialization. If i pool all GPP than you may very well randomly distrubite wonders and specalists all over the empire and get the same effects. There should be some incentive to specialize cities.
Shaded is offline   Reply With Quote
Old Apr 23, 2006, 02:38 AM   #10
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by RogerBacon
Nice mod but I noticed something wrong with your premise. You say that in the original civ the GP counter doubles everytime a GP is born. It doesn't double. It increases by the amount of GP points that your most productive GP producing city produces, rounded up to the nearest 100. For example: you have 3 cities making 112, 45, and 2 GP points per turn. After a GP is born the threshold increases by 200 (112 rounded up to the nearest 100).

Roger Bacon
Yes you are right. I noticed it after releasing the mod too, but since it does not matter for the sake of this mod i didnt correct it yet. I will correct the readme in the next version. Thank you for your feedback.
Shaded is offline   Reply With Quote
Old Apr 23, 2006, 05:57 AM   #11
Impaler[WrG]
Civ4:Col UI programmer
 
Impaler[WrG]'s Avatar
 
Join Date: Dec 2005
Location: Vallejo, California
Posts: 1,750
I have an idea, to keep specialization alive and well wonders could give a % bonus to GPP creation much like the Parthanon but focused on only a particular type of GPP. So for example StoneHenge would give +50% Great Profit points rather then generate a measly 2. You would still need to alocate Priests and specialize the city for that purpose in order to get the benifits.
__________________
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest. - Thus spoke Zarathustra, Fredrick Nietzsche

Civ 4 Community Core Project One DLL to Rule them ALL, Now a part of WoC, 3.02 version in the Progress
Modular XML Loading 3.0 True Drag and Drop modability, Included by Firaxis in Beyond the Sword
World Of Civilization A World of Mods under one roof
Impaler[WrG] is offline   Reply With Quote
Old Apr 23, 2006, 07:37 AM   #12
Lord Olleus
Deity
 
Lord Olleus's Avatar
 
Join Date: Oct 2005
Location: England
Posts: 5,083
Quote:
Originally Posted by Shaded
I thought about pooling all the GPP from across the Empire too, however this solution seems like killing the city specialization. If i pool all GPP than you may very well randomly distrubite wonders and specalists all over the empire and get the same effects. There should be some incentive to specialize cities.
Well no actualy. Remember 'Natioanal Epic'? It only doubles the GPP for one particular city, so you can still have a GPF. The difference is that it won't be quite as powerfull as before, it will be a bit like science and oxford university.
__________________
Most zealously I seek for erudition. Much do I know, but to know all is my ambition.
-Faust
Lord Olleus is offline   Reply With Quote
Old Apr 23, 2006, 08:01 AM   #13
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by Lord Olleus
Well no actualy. Remember 'Natioanal Epic'? It only doubles the GPP for one particular city, so you can still have a GPF. The difference is that it won't be quite as powerfull as before, it will be a bit like science and oxford university.
Well who wants the GPF? I am trying to kill it
The problem of anti-specialization of GPP pool is not the ability of having GPF. Problem is we cant differentiate different types of GP.

To me city specialization should be like: (not a GPF, or randomly placed specialists/wonders all over the empire)

1 city as Engineering Base : High production, produces Great Engineers
1 city as Commercial Base : High commerce, produces Great Mercants
1 city as Scientific Base : High science output, produces Great Scientists
1 city as Religous Base : Triple holy city, produces Great Prophets
etc..

When we pool the GPP's, there will be no reason to specialize the cities like this. You may get the same effects by putting all of them to one city or distrubiting them all over your empire.
Shaded is offline   Reply With Quote
Old Apr 23, 2006, 08:07 AM   #14
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by Impaler[WrG]
I have an idea, to keep specialization alive and well wonders could give a % bonus to GPP creation much like the Parthanon but focused on only a particular type of GPP. So for example StoneHenge would give +50% Great Profit points rather then generate a measly 2. You would still need to alocate Priests and specialize the city for that purpose in order to get the benifits.
Great Idea!
This way we may still have GP pooling and city specialization. However the bonuses of wonders of the same type should be cumulative rather then additive so that people would want to put all same type projects and specialists to one city to get the cumulative bonus.

I should mediate on this idea...We are getting to somewhere at last...
Shaded is offline   Reply With Quote
Old Apr 23, 2006, 04:17 PM   #15
Impaler[WrG]
Civ4:Col UI programmer
 
Impaler[WrG]'s Avatar
 
Join Date: Dec 2005
Location: Vallejo, California
Posts: 1,750
In addition some of the buildings could provide some productivity bonuses to specialists of a particular type, say for example Factory gives all Enginers +1 Hammer. Wonders might also have such bonuses for local or global specialists, the GPP bonus should be local only. Currently buildings are very limited in what kind of bonuses they can give to specialists and I belive their restricted to global bonuses only. Changing this would require some SDK work along with new Building Schemas.

I think this would help make late game specialists more usefull as I often have realy productive terrain by that point and I dont find the measly 3 GPP and 3 hammers to be worth much when it takes 1200 to get my next GP and I have mines producing 5 hammers sitting idle.

This could be a very nice improvment, I would like to help work on it.
__________________
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest. - Thus spoke Zarathustra, Fredrick Nietzsche

Civ 4 Community Core Project One DLL to Rule them ALL, Now a part of WoC, 3.02 version in the Progress
Modular XML Loading 3.0 True Drag and Drop modability, Included by Firaxis in Beyond the Sword
World Of Civilization A World of Mods under one roof
Impaler[WrG] is offline   Reply With Quote
Old Apr 23, 2006, 08:03 PM   #16
clinton
Chieftain
 
Join Date: Apr 2004
Posts: 96
This mod discourages city specialisation. Its better for all your cities to just have one specialist to ensure the greatest number of great people for the least great people points. Specialising a city under the mod just makes the great people come slower.
clinton is offline   Reply With Quote
Old Apr 23, 2006, 08:05 PM   #17
RogerBacon
King
 
Join Date: Nov 2003
Posts: 649
Could you post comments around where you made changes in the files? I only saw comments on one of the files.

Roger Bacon
RogerBacon is offline   Reply With Quote
Old Apr 24, 2006, 10:20 AM   #18
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by Impaler[WrG]
In addition some of the buildings could provide some productivity bonuses to specialists of a particular type, say for example Factory gives all Enginers +1 Hammer. Wonders might also have such bonuses for local or global specialists, the GPP bonus should be local only. Currently buildings are very limited in what kind of bonuses they can give to specialists and I belive their restricted to global bonuses only. Changing this would require some SDK work along with new Building Schemas.

I think this would help make late game specialists more usefull as I often have realy productive terrain by that point and I dont find the measly 3 GPP and 3 hammers to be worth much when it takes 1200 to get my next GP and I have mines producing 5 hammers sitting idle.

This could be a very nice improvment, I would like to help work on it.
Sounds good. Let me make a roadmap and we may work together. Also help from other guys are welcome too!

Another idea in my mind is to relating the GP types directly to city base values like production/science/culture etc.
The city producing the much hammers may have the highest probability to get the Great Engineer instead of some artifical GP point system. So if you used a city as a production base for years then a Great Engineer will born there. More realistic isnt it? What do you think about this idea?
Shaded is offline   Reply With Quote
Old Apr 24, 2006, 10:24 AM   #19
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by clinton
This mod discourages city specialisation. Its better for all your cities to just have one specialist to ensure the greatest number of great people for the least great people points. Specialising a city under the mod just makes the great people come slower.
Yes you are right. You can exploit the mod easily. By the way this was just a concept trial mod to find the right way for GP's. I would greatly appreciate if you can contribute to the new version by providing your solutions too. Thank you for your feedback.
Shaded is offline   Reply With Quote
Old Apr 24, 2006, 10:39 AM   #20
Shaded
Chieftain
 
Join Date: Apr 2006
Posts: 48
Quote:
Originally Posted by RogerBacon
Could you post comments around where you made changes in the files? I only saw comments on one of the files.

Roger Bacon
Sure!
First of all, here is the fish :
I moved
changeGreatPeopleThresholdModifier
incrementGreatPeopleCreated
methods and their related attributes from CvPlayer to CvCity

I copied and adapted the greatPeopleThreshold method in CvPlayer to CvCity
I kept and rewrote the greatPeopleThreshold method in CvPlayer because it was DllExported and removing it could cause crashes on the other dlls.

I changed createGreatPeople method in CvCity to reflect above changes

Then i made the necessary changes to the callers of the moved methods by clearing the compile errors.

Secondly, how to fish
Download the winmerge from winmerge.sourceforge.net. You can compare the files and see the changes by this tool.

I will be more then happy if you can contribute to this mod too. Software is a team work and we can produce a better product (Great Wonder ) if we work together.
Shaded is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components > [SDK MOD] Great Person Thresholds Per City

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Great Person Mod xienwolf FfH2 Modmods, Scenarios, and Maps 32 Feb 26, 2009 12:17 AM
[SDK Component] Unique Great person Mexico Civ4 - Mod Components 31 Jun 30, 2008 07:17 PM
Great Person Mod ersner Civ4 - Rise of Mankind 1 Apr 24, 2008 10:27 AM
Great Person City help marconos Civ4 - General Discussions 9 Mar 05, 2008 04:45 PM
Is This A Useful Great Person City Tactic? ccubed Civ4 - Strategy & Tips 15 Jan 06, 2006 05:42 PM


Advertisement

All times are GMT -6. The time now is 11:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
This site is copyright Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR