Mod help (building Icon, unit icon, building with multiple effects and leader abilitie)

Spades

Chieftain
Joined
Aug 11, 2017
Messages
5
So I currently have a mod created with the unit the way I want and the building doing mostly what I want. However, the unit icon is randomly selected by civ even though im fairly certain i specified it to be a pikeman while i develop the image. Additionally the building Icon is randomly selected by civ. I would like help to change this to be a built in civ image for the time being and later to be a custom image. If anyone could help me with both of these I would appreciate it.

Additionally, I have a building that currently is increasing damage to barbarians, i would like it to also spawn a settler and grant a free tech (civ is just for fun to have a casual victory). I copied the code from the oxford univeristy and pyramids but the database log is giving me this error string :

ERROR: near "(": syntax error
[3521430.042] [Configuration]: Validating Foreign Key Constraints...
[3521430.043] [Configuration]: Passed Validation.
[3521431.329] [Gameplay] ERROR: UNIQUE constraint failed: Modifiers.ModifierId
[3521431.331] [Gameplay]: While executing - 'insert into Modifiers('ModifierId', 'ModifierType', 'RunOnce', 'Permanent') values (?, ?, ?, ?);'
[3521431.332] [Gameplay]: In XMLSerializer while inserting row into table insert into Modifiers('ModifierId', 'ModifierType', 'RunOnce', 'Permanent') with values (DGS_HATECLUB_BARB_DAMAGE, MODIFIER_PLAYER_GRANT_RANDOM_TECHNOLOGY, 1, 1, ).
[3521431.333] [Gameplay]: In XMLSerializer while updating table Modifiers from file Joshs_Template_Buildings.xml.
[3521431.334] [Gameplay] ERROR: UNIQUE constraint failed: Modifiers.ModifierId
[3521431.377]

I would like to know how to change this to allow multiple effects

- I would like to change the leader ability to have a percentage chance to capture defeated units from barbarians with a smaller chance to capture AI/player units.

- I would like to set a start bias to hills and grassland which I have no current knowledge of

- Lastly, my civ ability currently gives gold and unit experience for units killed, I was wondering if it is also possible for it to allow me to trade my allies science per turn and how I would go about doing so.

Thank you to all who take the time to consider assisting me in this endeavor.
 
Last edited:
Back
Top Bottom