• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Wave

Rocker moth
61 Badges
Sep 12, 2009
946
34
  • Europa Universalis IV: Wealth of Nations
  • Semper Fi
  • Crusader Kings II
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Victoria 2: A House Divided
  • Magicka
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Imperator: Rome Sign Up
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Steel Division: Normand 44 Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
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
 
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.
 
Outch! This sounds a lot more painful than I thought :eek:hmy:

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?
 
Outch! This sounds a lot more painful than I thought :eek:hmy:

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
 
Thanks a lot for help Camara! I got it working and now I guess I can start adding more on my own :p
 
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



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.
yeah... I don't Have the "assets.gfx" file in interface, where is though?