To create a Flame Cannon we only need to deal with 3 text files, plus the battle_model.db depending on which faction you want to make it available to. I gave ownership of the Flame Cannon to byzantium so I provided details on all four files. If you do not have Greek Firethrowers in your mod you will need to add aspects of this first, see this tutorial. I would recommend completing the tutorial by J@mes first and testing.
1.descr_projectile
Copy the entry for projectile greek_fire
Spoiler Alert, click show to read:
And paste it into the bottom of the file, then make the following changes;
Spoiler Alert, click show to read:
Changes in red are necessary, blue shows changes that are optional but give a better end product. Other changes are possible, but an increases to the max_angle may cause a CTD.
2.descr_engine
Copy the entry for type great_bombard
Spoiler Alert, click show to read:
Now paste it into the bottom of the file and make the following changes;
Spoiler Alert, click show to read:
3.export_descr_unit
Copy the entry for type GR Bombard
Spoiler Alert, click show to read:
Now paste it into the bottom of the file and make the following changes;
Spoiler Alert, click show to read:
4.battle_models.db
Now all that remains is to add the crew. Copy the entry for 18 greek_bombard_crew
Spoiler Alert, click show to read:
Next paste the entry into the bottom of the file and make the following changes. Make sure to observe the correct number of spaces.
Spoiler Alert, click show to read:
Finally you must add 1 to the serialization archive at the top of the battle_models.db file.
Now the unit is ready for testing.Code:22 serialization::archive 3 0 0 0 0 897 0 0
Spoiler Alert, click show to read:
5.Finishing off
You will want a unit card, a unit info pic and a text entry for your new unit. Take some screenshots, cut out a nice close up of your new cannon and using gimp (its free!) scale the size down to match the standard size. 191 x 280 for the unit info.
Save your 191 x 280 as GR_Fire_Cannon_info.tga
For a unit card simply flip the existing grand bombard card horizontally.
These will need to be placed into the byzantium folder in ui/units and ui/unit_info folders respectivly.
Text description is added in the text/export_units file and keys off the EDU dictionary name. (GR_Fire_Cannon) Keep the syntax correct, ie.
{GR_Fire_Cannon}Greek Flame Cannon
{GR_Fire_Cannon_descr}You must add something here!!! Or CTD!!
{GR_Fire_Cannon_descr_short}You must add something here!!! Or CTD!!
GreekFire Cannon complete.
Spoiler Alert, click show to read:
Some changes explained.
Spoiler Alert, click show to read: