+ Reply to Thread
Results 1 to 5 of 5

Thread: Adding trade goods

  1. #1
    Rocker moth Wave's Avatar
    Crusader Kings IIEU3 CompleteFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    MagickaVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedVictoria II: Heart of Darkness500k clubEuropa Universalis IVEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Sep 2009
    Location
    Perniö, Finland
    Posts
    837

    Adding trade goods

    What kind of sorcery adding new trade goods to the game requires?

    Currently I have:

    icon_tradegood_dyes.tga in gfx/mapitems folder where all other tradegood pictures are

    Code:
    dyes = {
    	trade_transit_capacity = 1
    	local_tax_modifier = 0.1
    	color = { 0.1 0.6 0.6 }
    }
    in common/tradegoods.txt file (effects are just for testing)

    and

    Code:
    trade_goods = dyes
    line in Phoenicia's province history file.

    The game crashes when loading "map properly initialized"

    Thanks for the help in advance
    - Wave
    My modding stuff:
    Wave's modding guide:
    a tutorial for adding countries to EU: Rome, works with EU3 too!
    Wave's modding guide #2: Understanding and creating events

    Ongoing AARs:
    Letters from wAAR - An experimental Rome AAR with Epigoni Mod
    Winner of the Best character writer of the week award 1/6/12
    This is SPARTA! Can the world be dominated by squads of 300 men swinging spears and crying the name of their home country?

    Legions of Rome! RISE and show them all our might!

  2. #2
    General Camara's Avatar
    200k clubCities in MotionCrusader Kings IIDeus VultEast India Company
    EU3 CompleteDivine WindFor The GloryFor the MotherlandHearts of Iron III
    HOI3: Their Finest HourHeir to the ThroneLead and GoldLost Empire - ImmortalsPenumbra - Black Plague
    Victoria: RevolutionsRome GoldSemper FiSword of the StarsSupreme Ruler 2020 Gold
    Victoria 2Victoria II: A House DividedVictoria II: Heart of DarknessMount & Blade: WarbandV2 Beta
    CK2: Holy Knight500k clubEuropa Universalis IV: Pre-order

    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    2,283
    you also need to have it in the gfx/interface in icon_tradegoods.tga file.

    Then in interface in the file mapitems.gfx (open it with notepad) you indicate the mapitems file, but you also need in assets.gfx to sort out which tradegoods are which (icon_tradegoods.tga), in the part

    spriteType = {
    name = "GFX_tradegoods"
    texturefile = "mod\\Magna Terra\\gfx\\interface\\icon_tradegoods.tga"
    noOfFrames = 22
    norefcount = yes
    }
    The number of frames indicate how you divide the picture (how many parts), so that if you divide it in 2, then the first part will be considered tradegood 1 and the second will be the icon for tradegood 2 (I think the order you specify in common/tradegoods is here important to sort it this way), so see how you can add the tradegood you want. Try it by trial and error (I don't remember if the original file has "slots", e.g. free space in the picture, so that we can simply change it without messing with its dimension). Do not forget to edit also the alpha channel.
    Terra Universalis II
    For EU IV
    Another kind of whole world mod
    Magna Terra
    For EU Rome VV
    The way to be Imperator of all the Old World
    Umbra Spherae
    For Crusader Kings II
    Expand your faith and realm into all the Old World

  3. #3
    Rocker moth Wave's Avatar
    Crusader Kings IIEU3 CompleteFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    MagickaVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedVictoria II: Heart of Darkness500k clubEuropa Universalis IVEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Sep 2009
    Location
    Perniö, Finland
    Posts
    837
    Outch! This sounds a lot more painful than I thought

    Anyway thanks a lot, I'll add the missing stuff and see what happens.

    What kind of a program I need to modify .gfx files? Do they work like .dds files?
    My modding stuff:
    Wave's modding guide:
    a tutorial for adding countries to EU: Rome, works with EU3 too!
    Wave's modding guide #2: Understanding and creating events

    Ongoing AARs:
    Letters from wAAR - An experimental Rome AAR with Epigoni Mod
    Winner of the Best character writer of the week award 1/6/12
    This is SPARTA! Can the world be dominated by squads of 300 men swinging spears and crying the name of their home country?

    Legions of Rome! RISE and show them all our might!

  4. #4
    General Camara's Avatar
    200k clubCities in MotionCrusader Kings IIDeus VultEast India Company
    EU3 CompleteDivine WindFor The GloryFor the MotherlandHearts of Iron III
    HOI3: Their Finest HourHeir to the ThroneLead and GoldLost Empire - ImmortalsPenumbra - Black Plague
    Victoria: RevolutionsRome GoldSemper FiSword of the StarsSupreme Ruler 2020 Gold
    Victoria 2Victoria II: A House DividedVictoria II: Heart of DarknessMount & Blade: WarbandV2 Beta
    CK2: Holy Knight500k clubEuropa Universalis IV: Pre-order

    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    2,283
    Quote Originally Posted by Wave View Post
    Outch! This sounds a lot more painful than I thought

    Anyway thanks a lot, I'll add the missing stuff and see what happens.

    What kind of a program I need to modify .gfx files? Do they work like .dds files?
    No, gfx files are text files, open them with notepad or something like that
    Terra Universalis II
    For EU IV
    Another kind of whole world mod
    Magna Terra
    For EU Rome VV
    The way to be Imperator of all the Old World
    Umbra Spherae
    For Crusader Kings II
    Expand your faith and realm into all the Old World

  5. #5
    Rocker moth Wave's Avatar
    Crusader Kings IIEU3 CompleteFor the MotherlandHearts of Iron IIIHOI3: Their Finest Hour
    MagickaVictoria: RevolutionsEuropa Universalis: RomeSemper FiVictoria 2
    Victoria II: A House DividedVictoria II: Heart of Darkness500k clubEuropa Universalis IVEUIV: Wealth of Nations
    EUIV: Conquest of ParadiseEUIV: Res Publica

    Join Date
    Sep 2009
    Location
    Perniö, Finland
    Posts
    837
    Thanks a lot for help Camara! I got it working and now I guess I can start adding more on my own
    My modding stuff:
    Wave's modding guide:
    a tutorial for adding countries to EU: Rome, works with EU3 too!
    Wave's modding guide #2: Understanding and creating events

    Ongoing AARs:
    Letters from wAAR - An experimental Rome AAR with Epigoni Mod
    Winner of the Best character writer of the week award 1/6/12
    This is SPARTA! Can the world be dominated by squads of 300 men swinging spears and crying the name of their home country?

    Legions of Rome! RISE and show them all our might!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts