Food Economy - Tradable Bonus Resources

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
I am working on a large Mod and this is the first component I finished, long time is still needed for my final mod to be finished (I work on it in my spare time after work, so the progress is slow), however I decided to release the first component of my mod which is Food Economy.


Food Economy (V2)


This mod is a total rework for Bonus Resources in the game which are currently useless and give nothing but small yield on the tile of the resource. This mod aims to enhance bonus resources to be more useful and to have impact on the game.

Basically this mod applies enhancements to current Bonus resources, and make Bonus resources tradable.

1. Enhanced Bonus Resources:

Food Resources give +1 :c5food: Food in each city that has a granary, this bonus is not on the food resource tile but is empire wide bonus.
If you have 10 cities with Granary then obtaining 1 Wheat will result in +1 :c5food: food in 10 cities, this is a total +10 :c5food: food to your empire which is as powerful as being an ally with a maritime city state.

Changes:
  • Granary Building:
    • Stores 25% :c5food: Food in city after growth instead of +2 :c5food:.
    • Receives:
      +1 :c5food: Food from at least 1 , , , , or connected anywhere in your empire.
    .
  • On first bonus resource connected a penalty is applied: Double cost on next policy.
    Penalty is only on first Bonus Resource connection and for one time only, after that you can connect as many resources with no penalty. This is to encourage player to connect a bonus resource as soon as possible because the penalty will be low at early stages (where policy costs are still below 100 culture).

Screen Shots:

Spoiler :
Here is an example of a small empire:



Granary bonuses in the Capital:




Here a distant city receives same bonuses:



2. Bonus resources are now Tradable:

In this mod food resources are made tradable, this will add a strategic importance to food resources, and applies the idea of importing/exporting food between civilizations.

Highlights:
  • Added Bonus Resources to trade table.
  • Gold value of Bonus Resources are set to about 50% of luxury resources value.
  • AIs will trade Bonus Resources actively between each other.
  • When you buy a Food Resource from the AI you will immediately receive +:c5food: in your cities.

Screen Shots:
Spoiler :



---------------------------

Compatibility:
Spoiler :

Game Version: 1.0.1.141

This mod is not compatible with any mod that modifies:
  • TopPanel.lua
  • CityView.lua
  • TradeLogic.lua
  • Diplotrade.xml
  • DiploCurrentDeals.xml

Notes


Download Link
.
 

Attachments

  • GranaryBonus1.jpg
    GranaryBonus1.jpg
    236.4 KB · Views: 20,937
  • GranaryBonus2.jpg
    GranaryBonus2.jpg
    179 KB · Views: 20,363
  • GranaryBonus3.jpg
    GranaryBonus3.jpg
    182.9 KB · Views: 20,710
  • BonusTrade.jpg
    BonusTrade.jpg
    169.2 KB · Views: 21,137
  • BonusTrade2.jpg
    BonusTrade2.jpg
    167.1 KB · Views: 20,558

Civanator

Deity
Joined
Dec 18, 2001
Messages
2,865
Location
Gone
Wow just today I started working on something like this. I thought to myself that food resources are useless, and how I would like to be able to have a city with 3 fish feed a city with no food bonuses around, because I play with no city-states

Now if you trade a food resource away, does that mean you can no longer receive bonuses from it? I assume not, but just wondering anyway.

So +1 internets for you on doing this.
Oh and the screenshots aren't showing up, unless they just haven't been uploaded yet.
 

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
Wow just today I started working on something like this. I thought to myself that food resources are useless, and how I would like to be able to have a city with 3 fish feed a city with no food bonuses around, because I play with no city-states
So this mod is a good news for you :D

Now if you trade a food resource away, does that mean you can no longer receive bonuses from it? I assume not, but just wondering anyway.

Food resources are treated in same way as luxuries, if you have 1 Fish or 5 fish you will receive only +1 Food, now if you trade 4 fish and still has 1 left you still receive +1 food, if you trade away all your fish you get +0 food.

If you have all 6 types of food resources then you will get +6 food in all cities with granary.
 

killmeplease

Mk Z on Steam
Joined
Nov 22, 2007
Messages
2,794
Location
Samara
Hello!
Great mod :goodjob:
I have pretty the same mod, but it's unfinished yet.
The idea is to make resource-consuming buildings that give food.

In my mod, granary consumes 2 wheat and gives +10 food.
Same buildings can be created for some other resourses.
 

Attachments

  • Food Trade (v 1).zip
    3.1 KB · Views: 245

Decimatus

King
Joined
Oct 22, 2005
Messages
853
Great looking mod. :)

If you don't mind, I may at some point try and integrate it in with my own project. :)

Hello!
Great mod :goodjob:
I have pretty the same mod, but it's unfinished yet.
The idea is to make resource-consuming buildings that give food.

In my mod, granary consumes 2 wheat and gives +10 food.
Same buildings can be created for some other resourses.

I am also going to add some bonus/luxury resource consuming buildings sometime in the future. I wonder if consuming a bonus or luxury resource would remove the food or happiness bonus?
 

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
Great looking mod. :)

If you don't mind, I may at some point try and integrate it in with my own project. :)

the idea of mods is to contribute to modding community so I dont mind that (as long as you mention that you are using it), but It will not be easy to integrate with other mods because in my mod I used unusual methods (may conflict with other mods) which added a level of complexity that is unnecessary but I am forced to it because no other way with the current SDK.
 

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
The idea is to make resource-consuming buildings that give food.

In my mod, granary consumes 2 wheat and gives +10 food.
Same buildings can be created for some other resourses.

Good luck in your mod, but try to balance the food bonus, +10 food from 2 Wheat is too much IMO. Test it in the game to see the effect.
 

Sneaks

Brooklyn Bum
Joined
Oct 15, 2010
Messages
1,877
Location
NYC
Questions:

Do allied city states grant you the food resources, and are they doubled by the Patronage policy that does as such?

Given the vast quantity of these resources in a given game, do you have plans to integrate other uses for the bonus resources? (Consumption buildings, unit requirement, etc)

Do you foresee any balance issues given the capacity for cities to start at +6 food after one building? I can already see this effectively nerfing maritimes, but helping ICS to a degree.
 

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
Do allied city states grant you the food resources, and are they doubled by the Patronage policy that does as such?

Yes you get food resources from allied city states (see screenshot below) . For policy that gives you double gifted resources it should do same for food resources but I am not sure about it.

screenshot
Spoiler :


Given the vast quantity of these resources in a given game, do you have plans to integrate other uses for the bonus resources? (Consumption buildings, unit requirement, etc)

I dont like the idea of buildings consume resources, because this will end to be either overpowered (much better than the resource) or very weak (less beneficial that the resource).

Do you foresee any balance issues given the capacity for cities to start at +6 food after one building? I can already see this effectively nerfing maritimes, but helping ICS to a degree.

This mod was not intended to increase the growth of cities but was intended to enhance food resources and make them have impact on the game. ICS should be fixed in isolation from resources/improvement where there are many ways to fix ICS like using maintenance costs that increase with number of cities (like in PlayWithMe Mod by Alpaca).

About the balance issue, I feel the food bonuses are ok especially after the last game patch which nerfed maritime city states to +1 food per city. However if we feel that this needs more balancing then I am open to your suggestions.

I had some ideas for balancing:
1- Removing 25% food storage from Granary.
2- Slowing cities growth by increasing the Required Food amount for a city to grow by +4 food. (but this will widen the gap between civs with access to food resources and civs that have no food resources at all)

What do you think?
 

Attachments

  • Image3.jpg
    Image3.jpg
    97.3 KB · Views: 13,416
Joined
Jul 21, 2003
Messages
7,806
Location
Adelaide, South Australia
Hey there. I've been running into a bit of a problem re: trading of bonus resources. When I'm in the diplomacy screen, the Bonus Resource Option is definitely there, but I can never click on it (its always greyed out), & its telling me I have no bonus resources to trade-even though I *know* that I do. Can you think of a reason why this might be?

If it helps, I'm using Thal's Balance-Combined Mod & the City-State Diplomacy Mod. If that's the cause of the problem, then would I be able to ask if you'd consider merging them so that they'll be compatible in the future? Thanks in advance :).

Aussie.
 

Sneaks

Brooklyn Bum
Joined
Oct 15, 2010
Messages
1,877
Location
NYC
Considering Thal's mod also edits the Granary, I would certainly worry about his mod possibly overriding some of this mod's files.
 

Deep_Blue

Knight
Joined
Aug 2, 2005
Messages
750
If it helps, I'm using Thal's Balance-Combined Mod & the City-State Diplomacy Mod. If that's the cause of the problem, then would I be able to ask if you'd consider merging them so that they'll be compatible in the future? Thanks in advance :).

Aussie.

I think the mods conflict between each other, try activating Food Economy alone and see if the problem still exists.

I am working on a large mod and food economy is the first component, in the final mod I will be adding some component from other mods like resources info panel. I will only merge small components that adds some utilities, but I don't plan to merge mods that adds or changes gameplay.

Anyway you can merge them by yourself, Edit the following files:
* TopPanel.lua
* CityView.lua
* TradeLogic.lua

Any changes I made in these files are labeled by "Modded by Deepblue". So it is easy to find the code to copy and paste.
 

cf_nz

Prince
Joined
Mar 17, 2006
Messages
414
Location
New Zealand
FWIW it looks like there are compatibility issues with Info Adict as well. As far as I can tell there are two files in common, SaveUtils.lua (which is identical in each) and Diplotrade.xml.
 

Attachments

  • Civ5Screen.jpg
    Civ5Screen.jpg
    61.4 KB · Views: 523
Top Bottom