modified script to process Extended Era units
This commit is contained in:
parent
84cf63d71c
commit
c1a9710878
4 changed files with 14 additions and 20 deletions
|
@ -17,13 +17,13 @@
|
|||
<li><a href='tree_dark_elves-extended.html'>Dark elves</a>
|
||||
<li><a href='tree_drakes-extended.html'>Drakes</a>
|
||||
<li><a href='tree_dwarves-extended.html'>Dwarves</a>
|
||||
<li><a href='tree_elves-extended.html'>Elves</a>
|
||||
<li><a href='tree_kalifa-extended.html'>Kalifa</a>
|
||||
<li><a href='tree_loyalists-extended.html'>Loyalists</a>
|
||||
<li><a href='tree_northerners-extended.html'>Northerners</a>
|
||||
<li><a href='tree_outlaws-extended.html'>Outlaws</a>
|
||||
<li><a href='tree_sidhe-extended.html'>Sidhe</a>
|
||||
<li><a href='tree_steppe_orcs-extended.html'>Steppe orcs</a>
|
||||
<li><a href='tree_sylvans-extended.html'>Sylvans</a>
|
||||
<li><a href='tree_undead-extended.html'>Undead</a></ul>
|
||||
</p>
|
||||
<p><a href="data/">Raw data</a></p>
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
<a href='#dark_elves'>Dark elves</a>
|
||||
<a href='#drakes'>Drakes</a>
|
||||
<a href='#dwarves'>Dwarves</a>
|
||||
<a href='#elves'>Elves</a>
|
||||
<a href='#kalifa'>Kalifa</a>
|
||||
<a href='#loyalists'>Loyalists</a>
|
||||
<a href='#northerners'>Northerners</a>
|
||||
<a href='#outlaws'>Outlaws</a>
|
||||
<a href='#sidhe'>Sidhe</a>
|
||||
<a href='#steppe_orcs'>Steppe orcs</a>
|
||||
<a href='#sylvans'>Sylvans</a>
|
||||
<a href='#undead'>Undead</a></p>
|
||||
<table width=100% border=1>
|
||||
<tr class="first">
|
||||
|
|
|
@ -65,14 +65,6 @@
|
|||
<td><b>energy</b></td>
|
||||
<td align=right>::energy::</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>shadow</b></td>
|
||||
<td align=right>::shadow::</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>holy</b></td>
|
||||
<td align=right>::holy::</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<h2>Terrain Modifiers</h2>
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
my $html_gen = 1;
|
||||
# This option will determine if the html files translations are generated, and it will create the folders
|
||||
# based on the contents of the po folder of Wesnoth
|
||||
my $translate = 0;
|
||||
my $translate = 1;
|
||||
# If translating, this option will try to use the source code instead of the compiled files
|
||||
my $source = 0;
|
||||
my $source = 1;
|
||||
# If translating, and not from the source, remove the comment on the following line
|
||||
#use Locale::Maketext::Gettext;
|
||||
# This option will determine if the attack images are copied, and the images units are copied and colorized
|
||||
|
@ -40,9 +40,9 @@ my $images = 1;
|
|||
# This option will determine if the html report on made animations is generated
|
||||
my $animations = 1;
|
||||
# This is the version number that will appear on the unit trees
|
||||
my $version = '1.3.13';
|
||||
my $version = '1.3.13+svn';
|
||||
# These option will try to process the user made Eras
|
||||
my $ime = 1; # Imperial Era
|
||||
my $ime = 0; # Imperial Era
|
||||
my $exe = 0; # Extended Era
|
||||
my $eom = 0; # Era of Myths
|
||||
# If the script is run on Windows, set this option to 1
|
||||
|
@ -121,7 +121,7 @@ if ($exe) {
|
|||
$link_back = '../';
|
||||
$wesnoth_dir = $base_dir . '/userdata/data/campaigns/Extended_Era';
|
||||
$data_dir = $wesnoth_dir;
|
||||
$units_dir = $data_dir . "/units/standard";
|
||||
$units_dir = $data_dir . "/units";
|
||||
$html_dir = "$html_dir/EXE";
|
||||
$report_dir = "$html_dir/data";
|
||||
unless (-e $html_dir) {mkdir $html_dir or die "$html_dir directory cannot be created: $!\n";};
|
||||
|
@ -247,7 +247,7 @@ sub ProduceDataFiles {
|
|||
# For units stored in folders
|
||||
my @camps = glob("$units_dir/*");
|
||||
foreach (@camps) {
|
||||
unless (/(fake|cfg)$/) {
|
||||
unless (/(fake|cfg|rpg)$/) {
|
||||
($camp = $_) =~ s/(.*)\///;
|
||||
@units = glob($_ . '/*.cfg');
|
||||
&ProcessUnit ($_) foreach @units;
|
||||
|
@ -614,10 +614,12 @@ sub CopyImages {
|
|||
}
|
||||
close UNITS;
|
||||
# zombie units
|
||||
my @zombies = qw/drake mounted saurian swimmer troll wose/;
|
||||
foreach $zombie (@zombies) {
|
||||
system ("$colorizer $data_dir/images/units/undead/zombie-$zombie.png $html_dir/units/undead/zombie-$zombie.png");
|
||||
system ("$colorizer $data_dir/images/units/undead/soulless-$zombie.png $html_dir/units/undead/soulless-$zombie.png");
|
||||
if ($data_dir =~ /core/) {
|
||||
my @zombies = qw/drake mounted saurian swimmer troll wose/;
|
||||
foreach $zombie (@zombies) {
|
||||
system ("$colorizer $data_dir/images/units/undead/zombie-$zombie.png $html_dir/units/undead/zombie-$zombie.png");
|
||||
system ("$colorizer $data_dir/images/units/undead/soulless-$zombie.png $html_dir/units/undead/soulless-$zombie.png");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue