1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[MOD] Plantation Economy

Discussion in 'Civ4Col - Mods and Files' started by Aymerick, May 13, 2009.

  1. Ekmek

    Ekmek on steam: ekmek_e

    Joined:
    Aug 7, 2002
    Messages:
    6,047
    Location:
    San Diego, California
    Spoiler :


    Thanks Aymerick, did you put this code in your dll?
     
  2. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    No but I've tested it and it works fine but you need to adjust all the yields (-1) from the terraininfos...
     
  3. Androrc the Orc

    Androrc the Orc Emperor

    Joined:
    Apr 19, 2004
    Messages:
    1,621
    Location:
    Vienna, Austria
    Aymerick, if I may make a suggestion, what about adding the new terrains featured in the Origins mod? Those are the Col 1 terrains missing from Col 2, Savannah, Prairie and Swamp; that would allow you to make yield distribution between terrains more diversified.
     
  4. Dale

    Dale Deity

    Joined:
    Mar 14, 2002
    Messages:
    7,017
    There is actually an easier way where you don't need to alter any xml. Simple comment out one line of the code highlighted by Aymerick.

    Code:
    //		if (calculateNatureYield(eYield, eTeam, false) > 0)
    No need to change xml files, and all works beautifully. For the olive grove TI example you mentioned Ekmek, you make the TI (olive grove) and set buildable terrain to grass, and the increase in yield olives to 1.

    Easy. I've added this to AoD2 now. :)
     
  5. Ekmek

    Ekmek on steam: ekmek_e

    Joined:
    Aug 7, 2002
    Messages:
    6,047
    Location:
    San Diego, California
    Thanks Dale saves me from gettoing the sdk to compile! and congrats on finishing 1.11. Sounds like aoD2 is complete so i need to start integrating Mare Nostrum. Did you add plantation economy to AoD2 or are these mods still separate?
     
  6. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    I'm still on vacation so there wont be a update in the next 2 weeks, but I have some new stuff ready, just to let you know. My new "tar" yield is almost ready, made from lumber and used in ship building. Also new "ranch" improvement for Deer and Buffalo as well as "fine cloth" from cloth/indigo.

    Look at the first post, there's a ModMod for AoDII v1.10 or try Age of Further Discovery...

    I've been working on that for some time now, I have some issue to solve with the WB but mapscript (and fairyweather) works fine. I'll have new terrains and features ready for next update!
     
  7. Ekmek

    Ekmek on steam: ekmek_e

    Joined:
    Aug 7, 2002
    Messages:
    6,047
    Location:
    San Diego, California
    when I click on the link in the spoiler that says:
    "Mixed for AoDII and Colonies of the New World"

    it just takes me to the AoD2 forum and i don't see a modmod there. :confused:

    really what i want to do is just add more yields and have hem show on the city screen. was it just a matter of making yields modular? or did it require fixing the screen and sdk work too?
     
  8. Nixeh

    Nixeh Chieftain

    Joined:
    May 19, 2009
    Messages:
    25
    Is there the ability to be able to add in extra diplomacy options at all?

    Trade Routes: Would opene up your trade routes with the other civ
    Live Map: Shows what you see in real time

    I just think Permanent alliance lumps in too many things into one option and it would be better if it was split.

    Plan to have a gander through the XML's to see if this is possible. Dont suppose you know at all?
     
  9. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    Sorry the file was uploaded on filefront but the link was missing... Check the first post it's there now...

    I was supposed to make a full tutorial and I will... But here are some comments so you can see how I've done it...:


    1. XML:
      Depending on the order you want the Yields to appear in the City and Europe screen, split your CIV4YieldInfos.xml between the Assets/XML/Terrain folder and your Module Folder.
    2. Gamefonts:
      You need to add your new Gamefonts in the same order as your Yields in XML & Module...
    3. SDK:
      Look for my "MORE_YIELD_TYPES" comment in those files, you need to add the YieldTypes enum and AI to the list:
      - CvEnums.h
      - CyEnumsInterface.cpp
      - CvCityAI.cpp
      - CvPlayerAI.cpp
    4. Python:
      You need to adjust the Interface so that the new number of yield shows up correctly in the City and Europe screen as well as in the Domestic Advisor menu.
      - CvEuropeScreen.py - Divide the "self.XResolution" in "YieldAreaWidth" by the total number of yields
      - CvMainInterface.py - Adjust the "RESOURCE_TABLE_COLUMN_WIDTH"
      - CvDomesticAdvisor.py - Look in my file, lot's of changes...
     
  10. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    Hey Nixeh,

    Check out the [Mod Development] Diplomacy Insults thread, Kailric is working on Diplomacy enhancement. You should make those suggestion there...
     
  11. Chibiabos

    Chibiabos Prince

    Joined:
    May 24, 2005
    Messages:
    424
    I'm actually having a little trouble finding the value in Indigo or Coffee, it seems about the same as any other raw material -- that is, very cheap. There's really not much value in collecting and selling it, or am I missing something? I get that Indigo will refine into something, but it seems to me that coffee, while interesting, isn't really useful. Natives won't buy it, Europe doesn't pay much for it to make it worthwhile.

    Also I think I mentioned this in another thread, the native sell price of Gold is rather high ... in fact, it is unprofitable to buy from them. I "wish list propose" the notion of a new building that can translate gold and silver into actual gold: a coin mint!
     
  12. kaibayashi

    kaibayashi Warlord

    Joined:
    Aug 8, 2008
    Messages:
    264
    The only use ive found for coffee is that in the early game it is easy to build settlements that will quite quickly stock up a fair amount without you actually doing anything, and u can just sell it for a little earl cash boost. Just helps moving things a long while i get your real economy started.
     
  13. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    Historically, plantation economies relied on the masse production and export of raw resources (cash crops) as a source of income. Those resources may be cheap by themself but the value comes from selling large amounts. Anyway that was the idea behind this mod, and also to diversify the resources so you don't have the same production in many colonies...

    I will adjust the native Gold prices! I'm glad to have some feedback on gameplay as I haven't focus on that, so thanks! :D

    As for the "coin mint", I was thinking more in line of a Jeweller profession and buildings. But I need to find a way for him to use both Gold and Silver! Unless I make a Goldsmith AND a Silversmith... I'm not sure what would be best... What do you think?
     
  14. TC01

    TC01 Deity

    Joined:
    Jun 28, 2009
    Messages:
    2,216
    Location:
    Irregularly Online
    I think that you should make the YieldConsumed tag:

    Code:
    		<YieldConsumed>YIELD_COTTON</YieldConsumed>
    a list instead of a string.

    Then in the SDK you can instead of drawing, say, 4 Cotton, 2 of each. (You might want to limit it to even numbers you can safely divide by the amount being consumed...)

    All of this is theoretical- I don't know how or where this code works. Based on what little I know of the SDK I'd guess you'd have to edit the CvCity.cpp file (after changing CvInfos, anyway), though.
     
  15. Chibiabos

    Chibiabos Prince

    Joined:
    May 24, 2005
    Messages:
    424
    Well, if you need more jewelry, how about pearls from tropical-lattitude coasts (especially islands) as a bonus yield on clam resources? Actually if you restricted them to tropical island coastlines, that could make those little islands worth trying to colonize.
     
  16. Nixeh

    Nixeh Chieftain

    Joined:
    May 19, 2009
    Messages:
    25
    Is this mod compatible with age of discovery 2 v1.11?
     
  17. Aymerick

    Aymerick Warlord

    Joined:
    Dec 26, 2008
    Messages:
    233
    Location:
    Ville de Québec
    Not yet... I'm working on a update for Plantation Economy and Age of Further Discovery as we speak...
     
  18. Ekmek

    Ekmek on steam: ekmek_e

    Joined:
    Aug 7, 2002
    Messages:
    6,047
    Location:
    San Diego, California
  19. comtedemeighan

    comtedemeighan Chieftain

    Joined:
    Sep 14, 2008
    Messages:
    53
    Location:
    Massachusetts
    Anybody have a copy of this mod? It says the file has been removed from the download site.
     
  20. KJ Jansson

    KJ Jansson Prince

    Joined:
    Oct 7, 2008
    Messages:
    509
    Here download link for PlantationEconomy_v0.09b_PortugalCiv. AFAIK this is the last version of the PlantationEconomy mod.
     

Share This Page