Advertisement
Civilization Fanatics' Center  

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

Reply
 
Thread Tools
Old Apr 14, 2006, 08:14 AM   #1
MrPinchyPants
Chieftain
 
Join Date: Dec 2004
Posts: 61
Stop starvation? Help?

Is there a way to totally stop starvation/growth in your mod or at least limit starvation so it goes by very slowly? Or will I have to create a new resource that gives the exact amount of food for each city in the scenario to be self-sufficient?
MrPinchyPants is offline   Reply With Quote
Old Apr 14, 2006, 11:06 AM   #2
MrPinchyPants
Chieftain
 
Join Date: Dec 2004
Posts: 61
So is there any way of doing this?
MrPinchyPants is offline   Reply With Quote
Old Apr 14, 2006, 11:45 AM   #3
surt
Prince
 
Join Date: Jan 2006
Posts: 354
set food cost per population to 1?

It's not exactly clear to me how you want this to behave. If you wanted all cities to grow up to some fixed size and never starve, you could set the food cost per population to 1, turn off all food from tiles, and give the city default N food, where N is the max size you want to grow to. Then set the pace of growth by setting the growth food required.

In GlobalDefinesAlt.xml:
PHP Code:
  <Define>
    <
DefineName>BASE_CITY_GROWTH_THRESHOLD</DefineName>
    <
iDefineIntVal>80</iDefineIntVal>
  </
Define>
  <
Define>
    <
DefineName>FOOD_CONSUMPTION_PER_POPULATION</DefineName>
    <
iDefineIntVal>3</iDefineIntVal>
  </
Define
In civ4YieldInfos.xml, you want the iMinCity value (the minimum you are granted at the center of your city, regardless of where it is placed).
surt is offline   Reply With Quote
Old Apr 14, 2006, 12:59 PM   #4
Agent 009
Civ 4 Addict
 
Agent 009's Avatar
 
Join Date: Mar 2006
Location: In a virtual Civ 4 Environment.
Posts: 336
There is no way I know of to completely remove starvation. Setting food consuption to 1 certainly helps but it won't get rid of it. There are actually two other factors that can cause a city to starve.

- Sickness. I believe this factor is also dependant on how much food is consumed per pop. For arguments sake, if it is 1 per pop, then if the city sickness is 10, and the health is 2, then that city will use up 8 extra food. So, technically a city that is growing with 1 extra food can suddenly start to starve upon growth because it uses 1 extra food for the 1 extra pop and another extra food for the +1 sickness due to pop.

- Lastly, if a player gets invloved in a war, some turns after it starts, the player's city's laborers start refusing to work the tiles they were already working, thus causing cities to starve.

I have no idea if the SDK can remove starvation however, if you are wanting to do this for a scenario, I think the best thing to do is make it with no food yields and set each city to the desired size, and make them use 0 food per pop.

Don't know if that will actually work but it might be worth a shot.

Last edited by Agent 009; Apr 14, 2006 at 01:13 PM.
Agent 009 is offline   Reply With Quote
Old Jul 13, 2009, 01:02 AM   #5
DedlyCobraMonky
Chieftain
 
Join Date: Jul 2009
Posts: 8
how to you set the food cost per citizen to 1
DedlyCobraMonky is offline   Reply With Quote
Old Jul 13, 2009, 07:50 AM   #6
General Tso
Panzer General
 
General Tso's Avatar
 
Join Date: Oct 2007
Location: U. S. of A.
Posts: 1,377
You can set the food cost per citizen by changing the FOOD_CONSUMPTION_PER_POPULATION field in XML\GlobalDefines.xml.
__________________
Really Advanced Setup Mod
Gives many new options when starting games with the the Advanced Setup screen.
Includes: Disable nuclear weapons, change start bias, change starting units, place extra resources, and modify starting Gold, Culture, Faith, and Free Techs.
Current Status: Version 9 - Works with all versions of the game.
http://forums.civfanatics.com/showthread.php?t=486324
Also available in the Steam workshop.
General Tso is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Stop starvation? Help?

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
Starvation!! Old_Man_River__ Civ4 - General Discussions 13 Sep 30, 2008 06:33 PM
How to stop starvation. DWOLF Civ4 - General Discussions 3 Jul 24, 2007 06:27 PM
Starvation KITCHEN1 Civ4 - General Discussions 3 Jun 24, 2007 11:07 AM
Starvation TyranusBonehead Civ3 - General Discussions 5 Feb 11, 2005 07:02 PM
starvation stratego Civ3 - Strategy & Tips 15 Jul 25, 2003 07:19 AM


Advertisement

All times are GMT -6. The time now is 09:34 PM.


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