Radarspotting

Mode-S Receivers => Kinetic's SBS-3 => Topic started by: boro on February 13, 2024, 11:44:33 PM

Title: Countries DAT file
Post by: boro on February 13, 2024, 11:44:33 PM
My countries DAT file hasn't been updated for a number of years and I am wondering if there is an up to date countries DAT file available? I running basestation on windows 11 via modemixer2.

Peter
Title: Re: Countries DAT file
Post by: rikgale on February 14, 2024, 07:04:11 AM
Hello
This is one that I try and keep up to date. There may be others out there.
https://raw.githubusercontent.com/rikgale/VRSCountries.dat/main/Countries.dat
Rik
Title: Re: Countries DAT file
Post by: boro on February 14, 2024, 11:49:36 AM
Hi rikgale, thanks for the link but am i doing something wrong because when i copy the contents of the link into the countries dat file, having saved the old dat file as a copy just in case, and opened up basestation it will not open, i reverted back to the old dat file and basestation opened up ok.
Title: Re: Countries DAT file
Post by: Anmer on February 14, 2024, 12:04:28 PM
I copied and pasted the contents from Rik's link into a new Notepad file and saved it as Countries.dat in a temp location.

Renamed the existing Countries.dat file "Countries.dat.old".

Closed Basestation and copied the new file to the Basestation folder.

Relaunched Basesation and everything works as expected.

Attached is a copy of the new file if that helps?
Title: Re: Countries DAT file
Post by: rikgale on February 14, 2024, 01:53:44 PM
Thanks for sorting Anmer. Unfortunately I can only link to a link that opens in a webpage.

Or you can go this link (https://github.com/rikgale/VRSCountries.dat/blob/main/Countries.dat) and download as per the screenshot attached to this message
Title: Re: Countries DAT file
Post by: boro on February 14, 2024, 02:39:56 PM
hi Rik & Anmer thanks for your help, i have copied the new dat file across but i can't be doing something right as basestation will not open up with the new dat file, i keep getting the message

Application Error Exception EOutOfResources in module BaseStation.exe at 000570A7.
Error creating window device context.

Basestation
Access violation at address 77BB5385 in module 'ntdll.dll'. Write of address 00000014.

but when I change back to the old dat file everything works ok, i've updated the dat file in the past and never had any problems so there is something I am not doing right here.

peter
   
---------------------------
Title: Re: Countries DAT file
Post by: rikgale on February 14, 2024, 02:57:29 PM
Over to Anmer on this. BaseStation is definitely his area of expertise!
Title: Re: Countries DAT file
Post by: Anmer on February 14, 2024, 03:04:09 PM
Can I do a remote session with you to see what's going on?
Title: Re: Countries DAT file
Post by: boro on February 14, 2024, 03:26:59 PM
Hi Anmer thanks for your help, much appreciated, I am puzzled why the new dat file isn't working but i think i will leave it for now and have another go later when i get a bit more time to see if i can get it working.

cheers

peter
Title: Re: Countries DAT file
Post by: Anmer on February 14, 2024, 03:33:41 PM
Check you are working in the correct folder, the one from which you launch Basestation.  And you pasted the file I attached.

Basestation will definitely launch OK if there's no recognised .dat file.

I'm assuming there's a .dat file there but it's corrupted.
Title: Re: Countries DAT file
Post by: boro on February 14, 2024, 06:20:44 PM
Hi Anmer & Rik, I renamed the BMP flags folder and used the new dat file without the BMP flags folder and basestation opened up ok. My old dat file was 46kb whilst the new dat file is 126kb, I don't know why it wouldn't work with the old BMP folder but at the moment i am not using a BMP flags folder.

peter
Title: Re: Countries DAT file
Post by: Anmer on February 14, 2024, 06:35:55 PM
Thanks Peter.

This suggests there's a corrupt or unmanageable file in your BMPFlags folder.

Use Windows Explorer set to View Details and look for a file either with an extension other than .bmp or a file size in excess of 2 KB.

Or Zip the folder and upload here as an attachment. 
Title: Re: Countries DAT file
Post by: boro on February 14, 2024, 10:35:39 PM
I've had a look and they are all BMP flags, there are some which are 3kb but they are the same ones I've been using for some while without any problems. To be honest i am not really too bothered if the country flags are not showing as long as the operator flags are working I am quite happy to leave it as it is, but I've uploaded the BMP flags folder which I was using, I don't know if you can see if there is anything there that shouldn't be in there.

Peter
Title: Re: Countries DAT file
Post by: Anmer on February 15, 2024, 08:35:13 AM
The Zip contains a folder "BMPFlagsold".  The folder contains 499 files including one named "Thumbs.db".

I renamed my existing BMPFlags folder BMPFlagsOld and extracted all the files, including the db one, to a new folder named BMPFlags.

My Basestation runs OK using the extracted files with the new Countries.dat file (from Rik).

There doesn't appear to be any reason for the new Countries.dat file to cause Basestation to error.  Or when using your country flags.

My offer to take a look with you still stands.  Otherwise make sure you're naming files and folders correctly and in the right location.
Title: Re: Countries DAT file
Post by: boro on February 15, 2024, 09:42:07 AM
Hi Anmer thanks for having a look the flags, I will have another look and see why Basestation stops working when using that flags folder.
Title: Re: Countries DAT file
Post by: boro on February 16, 2024, 01:10:24 AM
An update on the flag problem, I had another look at the BMP flags folder and I eventually discovered that the Russia BMP flag was causing the problem, i deleted it and Basestation is now working ok with the BMP flags and DAT file.

Peter
Title: Re: Countries DAT file
Post by: Anmer on February 16, 2024, 08:31:54 AM
Great, thanks for the update.

Can you expand on the Russian flag issue?  I thought you'd sent me all the files in your BMPFlags folder?
Title: Re: Countries DAT file
Post by: boro on February 16, 2024, 10:54:46 AM
I Anmer, yes I sent the flag folder i was using but last night i went through the folder taking out the flags and putting them back in a few at a time and it was the Russia_mil flag causing the problem. I tried again this morning and put the Russia_mil flag back in the flag folder and Basestation wouldn't open up, I took it out Basestation opened up OK. I wondering whether there is a conflict with the countries dat file?
Title: Re: Countries DAT file
Post by: Anmer on February 16, 2024, 12:24:50 PM
Thanks.

Strange as that bmp is in the Zip you sent me and doesn't cause my Basestation to error when used alongside your Countries.dat file. 

What version of Basestation are you running?
Title: Re: Countries DAT file
Post by: boro on February 16, 2024, 03:18:37 PM
i'm running version 184
Title: Re: Countries DAT file
Post by: Anmer on February 16, 2024, 03:30:12 PM
Version 184 is same as mine.

Strange as I was using the same BMP files and dat file as you including the Russia_Mil.bmp.  And no Basestation issues!
Title: Re: Countries DAT file
Post by: boro on February 16, 2024, 04:50:20 PM
I downloaded Steve Hibberds country flags and when I ran basestation it wouldn't open up, I took out the Russia_mil flag and basestation worked with the remaining 446 flags  :-\ I am puzzled why that should be the case.
Title: Re: Countries DAT file
Post by: Anmer on February 16, 2024, 05:26:19 PM
Just tried again using the (attached) Countries.dat file and the BMPFlags you uploaded in the Zip.

Basestation ran just fine.

Can you try something for me?

Save this bmp file to the BMPFlags folder and try again?  It's a different file from your Zip which I've named Russia_Mil.bmp.

If Basestation errors, it can't be the bmp file that's causing it.
Title: Re: Countries DAT file
Post by: boro on February 16, 2024, 05:50:48 PM
I saved the BMP file to BMPFlags but basestation wouldn't open but it did so after I deleted the flag
Title: Re: Countries DAT file
Post by: Anmer on February 16, 2024, 06:08:30 PM
Thanks again for trying that.

When you saved it were you asked if you wanted to replace an existing file of the same name?

Can you try doing the same thing again, this time with the attached Dat file?

I've removed all 1,652 entries for Russia_Mil.bmp.

That's a lot of entries for one hex range!

And how much PC RAM do you have?
Title: Re: Countries DAT file
Post by: boro on February 17, 2024, 12:57:13 AM
Hi Anmer, i had previously deleted the russia_mil flag in the flag folder so it was new when I saved it in the folder.

I ran the new dat file you sent with the russia_mil flag in the BMP folder and basestation worked.

I then set up a new dat file with just the 1652 russia_mil's with the russia_mil flag in the flags folder but basestation wouldn't open. So I had ago ago at breaking the russia_mil into groups of about 200 to see if each group would work with basestation, which they did, yet when I grouped them all together again, basestation wouldn't open up. Perhaps my methodology was wrong.
 
As for my computer, its only about 6 months old with Windows 11 and 16RAM

Many thanks for your help Anmer, the main thing is basestation is running ok with new dat file and with the russia_mil flag in the flag folder, and unless we get invaded by the russians I don't think i will be picking up any russian military for while!
Title: Re: Countries DAT file
Post by: Anmer on February 17, 2024, 06:43:38 AM
Thanks for doing that test.

Your setup doesn't like a dat file with 1,652 lines for Russia_Mil.bmp and a corresponding bmp file in the BMPFlags folder.  But mine runs OK with them.

I assume others are using the dat file with all 1,652 lines and not seeing any issues either.

This one baffles me.

But at least you have a working system, albeit missing the Russian military.  Might be a useful export to Ukraine?
Title: Re: Countries DAT file
Post by: boro on February 17, 2024, 03:40:59 PM
Yes its a bit of a strange one, I might sometime or other have another go and see if I can get them working but as you say the system is working ok which is the main thing.

cheers