KaL
12-14-2003, 05:06 PM
Many of the newer maps that you can get from EQ-Toolbox, etc. have "grey0" as a line color, and you know what? ShowEQ JUST CAN'T HANDLE IT!
Well, technically, ShowEQ's background is by default, black.
And ShowEQ, by default, interprets grey0 as black.
Run this very simple Perl script in the directory where your .map's are, and all shall be well.
#!/usr/bin/perl
foreach $file (<*.map>) {
open MAPFILE, $file;
open TMPFILE, ">$file.tmp";
while (<MAPFILE>) {
$_ =~ s/grey0/gray/;
print TMPFILE $_;
}
close (MAPFILE);
close (TMPFILE);
unlink ($file);
rename ("$file.tmp", $file);
print "Fixed $file.\n";
}
Well, technically, ShowEQ's background is by default, black.
And ShowEQ, by default, interprets grey0 as black.
Run this very simple Perl script in the directory where your .map's are, and all shall be well.
#!/usr/bin/perl
foreach $file (<*.map>) {
open MAPFILE, $file;
open TMPFILE, ">$file.tmp";
while (<MAPFILE>) {
$_ =~ s/grey0/gray/;
print TMPFILE $_;
}
close (MAPFILE);
close (TMPFILE);
unlink ($file);
rename ("$file.tmp", $file);
print "Fixed $file.\n";
}