On Thu, 2011-11-17 at 18:05 -0800, J. Holden wrote:
> I haven't been able to test this, but if anyone wants to test newly generated 
> quality scenery, Durango and Telluride are available here:
> 
> http://www.stattosoftware.com/flightgear/Durango.zip
> 
> Three square degrees of scenery from 37-38N to 107-110W, about a 95Mb 
> download.
> 
> Cheers
> John

Hi John,

Had no trouble loading this Durango scenery with a 
quite recent git SG/FG, but it seems the 
rivers were given a 0 feet altitude, making 
for very SPECTACULAR scenery ;=)) see -

 http://geoffair.org/tmp/tests/ktex.htm 

But thanks for sharing...

And would confirm, like Jacob, that trying to 
load this scenery in fgfs prior the sg_binobj changes,
ie circa release 2.4 time, hangs fgfs in my case, 
with several outputs of -
"We detected an error while reading the file."

And I can see files like say 1204218.btg.gz are
the new version 10 BTG format, so I guess it just 
is/was not possible to maintain backwards compatibility 
with earlier versions of fgfs ;=(( as was hoped...

And it seems all the other BTG are either version 10, 
or version 7? That is none are the Scenery 1.0.1 
version 6???

Maybe some thought should be given to putting a patch in 
release 2.4 at least, to abort the BTG load if it detects 
a later version BTG, or something... just to avoid 
more user 'complaints' and 'concerns'...

Or at least a BIG notice somewhere about Scenery 
INCOMPATIBILITIES ;=()

Regards,
Geoff.

PS: Below is a quick perl script I used to check 
the BTG versions :-
-----------------------------------------------------
#!/usr/bin/perl -w
#< file: btgvers.pl
use strict;
use warnings;
my $pgmname = $0;
if ($pgmname =~ /(\\|\/)/) {
    my @tmpsp = split(/(\\|\/)/,$pgmname);
    $pgmname = $tmpsp[-1];
}
sub prt($) {
    print shift;
}
sub show_help() {
    prt("$pgmname: version 0.0.1 2011-11-19\n");
    prt("Usage:\n");
    prt(" $pgmname single_in_file, or\n");
    prt(" $pgmname \"*.btg.gz\", to do 'glob' list.\n");
}
sub show_header($) {
    my $file = shift;
    my ($data,$n,$i,$hex,$hexstg,$ascii,$c,$num,$vers);
    open IF, "gzip -d -c $file|" or 
    die "ERROR: CAN NOT OPEN $file...$!...\n";
    binmode IF;
    if ($n = read IF, $data, 4) {
        prt("File: $file. Read $n byte header: ");
        $hexstg = '';
        $ascii = '';
        for ($i = 0; $i < $n; $i++) {
            $c = substr($data,$i,1);
            $num = ord($c);
            $hex = sprintf("%02X ",$num);
            $hexstg .= $hex;
            if (($c lt ' ')||($c gt '~')) {
                $c = '.';
            }
            $ascii .= $c;
            $vers = $num if ($i == 0);
        }
        prt("Hex $hexstg $ascii Version $vers\n");
    } else {
        prt("Read failed on file $file\n");
    }
    close IF;
}
if (@ARGV) {
    my $file = $ARGV[0];
    if ($file =~ /^-/) {
        show_help();
        exit 0;
    } elsif ($file =~ /(\*|\?)/) {
        my @arr = glob $file; # assum wild card
        my $cnt = scalar @arr;
        prt("Got $cnt files from input [$file]...\n");
        foreach $file (@arr) {
            show_header($file);
        }
    } else {
        show_header($file); # assume file name
    }
} else {
    show_help();
    prt("Enter name of BTG file to check!\n");
    exit 1;
}
exit 0;
# eof - btgvers.pl
-----------------------------------------------------




------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to