Even though this is almost common sense, I didn't know to do it this way until it occurred to me tonight and I had to go back and redo all my leader mods because of it.
There is an easy way to change or add leaderheads without interfering with the original game or any other mod.
1) When you change a leaderhead of an existing civ or add a new civ, give it a UNIQUE civolopedia entry. For example, if you change Joan to Napolean in your mod. Change the french civ's civilopedia entry from RACE_FRENCH to RACE_YOURMODNAME_FRENCH.
2) When you add your flic file for the leaderhead animation, give it a path name like this: Scenarios\YourModName\Leader.flc rather than one like this: Art\Flics\Leader.flc
3) Open up civilopedia.txt and add a new entry for #RACE_YOURMODNAME_FRENCH or whatever race you modified or added.
4) Open up pediaicons.txt and add the entries needed for your civ. For example the first entries would be:
#RACE_YOURMODNAME_FRENCH
Scenarios\YourModName\Napolean.pcx
Scenarios\YourModName\Napolean_all.pcx
5) Create a folder in scenarios named "Yourmodname" matching the path you had been using and put all your new pcx/flic files in that.
Now when people play your scenario they use the leaders you added, when they play other scenarios or the normal game they use whats in art\whatever.
The only difficult part is that the two txt files have to be modified, but hopefully we can come up with some utility (or gramphos can add it to his) that can easily patch those without the end user needing to hand add the entries for your leaders.
There is an easy way to change or add leaderheads without interfering with the original game or any other mod.
1) When you change a leaderhead of an existing civ or add a new civ, give it a UNIQUE civolopedia entry. For example, if you change Joan to Napolean in your mod. Change the french civ's civilopedia entry from RACE_FRENCH to RACE_YOURMODNAME_FRENCH.
2) When you add your flic file for the leaderhead animation, give it a path name like this: Scenarios\YourModName\Leader.flc rather than one like this: Art\Flics\Leader.flc
3) Open up civilopedia.txt and add a new entry for #RACE_YOURMODNAME_FRENCH or whatever race you modified or added.
4) Open up pediaicons.txt and add the entries needed for your civ. For example the first entries would be:
#RACE_YOURMODNAME_FRENCH
Scenarios\YourModName\Napolean.pcx
Scenarios\YourModName\Napolean_all.pcx
5) Create a folder in scenarios named "Yourmodname" matching the path you had been using and put all your new pcx/flic files in that.
Now when people play your scenario they use the leaders you added, when they play other scenarios or the normal game they use whats in art\whatever.
The only difficult part is that the two txt files have to be modified, but hopefully we can come up with some utility (or gramphos can add it to his) that can easily patch those without the end user needing to hand add the entries for your leaders.
Comment