Welcome to Radarspotting. Please login or sign up.

May 16, 2026, 12:00:45 AM

Login with username, password and session length

New Members

New Members

You should get an activation email when you join.  If not, please use the Contact option.

Countries.dat file for Basestation

Started by Roadrunner, May 16, 2017, 07:35:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

David Finch

Hi
The Taiwan Mil line equates to 899160 which Planebase has as China Airlines A350 B-18912.

The only Mil lines I have for Taiwan are:-
P3   Taiwan Mil_3308=100010011001000000000111,24,Taiwan_Mil.bmp       899007
F50   Taiwan Mil_5001-03=1000100110010001100000xx,22,Taiwan_Mil.bmp  899180-899183

DF

David Moore

Quote from: Faramir on March 21, 2023, 07:43:35 PM
The lines below are fro my countries.dat file for Taiwan.
Taiwan=10001001100100xxxxxxxxxx,14,Taiwan.bmp
Taiwan Mil=100010011001000101100000,24,Taiwan_Mil.bmp

I added these lines to my Countries.dat file but have noticed that Taiwanese airliners do not display a flag on my Base Station grid (e.g. B-16730 [899035], B-16735 [899039] & B-18910 [89912E]). Cam anyone suggest a fix for me, please?


Thank you! David

mhm

The US military have now started to use AF351F used by F35 Lightning
and AF4A7B  on a Hawker beechcraft with the US Navy
Mike Colon Cancer Survivor for the Time Being.
Fides In Tenebris.

Anmer

Quote from: David Moore on April 01, 2023, 11:18:29 PM
I added these lines to my Countries.dat file but have noticed that Taiwanese airliners do not display a flag on my Base Station grid (e.g. B-16730 [899035], B-16735 [899039] & B-18910 [89912E]). Cam anyone suggest a fix for me, please?

Using the Countries.dat lookup, all those codes should work with the mentioned Countries.dat lines:

https://radarspotting.com/forum/index.php?topic=9361.0

I assume you have the necessary bmp files in the BMFlags folder?

How did you add the lines, what app did you use?  And did you save the file afterwards?  See attached to show how the lines should appear in the Countries.dat file.



Here to Help.

David Moore

Thank you for replying, Anmer.

Yes, I do have a Taiwan flag in the BMPFlags folder.

I edited the Countries.dat in WordPad. I couldn't save it within the Base Station folder but I can save it elsewhere and then copy and paste it into the folder. That works, I know, because it worked when I updated the Malta line to take acount of the recent Wizz Malta and Vistajet allocations.

I used the tool you linked to, and that showed me that I have some ICAO lines in the Countries.dat file. Hex code 899035 also matches with an ICAO (2) line in the Countries.dat file and I guess that is why the Taiwan flag is not displaying on my BaseStation grid for these Taiwan registrations.


So, to change the subject a bit, my Countries.dat file contains these 3 lines for the country 'ICAO': may I edit or remove any of these safely, please?

ICAO (1)=111100000xxxxxxx,9,
ICAO (2)=11110000100100xx,14,
ICAO (2)=10001001100100xx,14,


Thank you very much!

Regards

David

Anmer

Take a copy of the Countries.dat file and save it somewhere in case you need a backup.  Then delete those three lines in the original file and save it.

That should work.

If not, please let me know.
Here to Help.

David Moore

Thanks again, Anmer.

The next flight from Taipei will come near me about 18:00 tomorrow so I will let you know what the display looks like!

Thank you,

David

David Moore

This evening's EVA B777 B-16731 just flew over the house and the Taiwanese flag displayed on my Base Station's grid: thanks very much, Anmer!

Regards

David

Anmer

Great and thanks for posting an update.
Here to Help.

David Moore

Montenegro.

4O-MNE flew past me just now and no flag was displayed on the grid of my Base Station.

Does anyone have a small version of the Montenegro flag that I might have please, and also tell me what line to insert into my countries.dat file to accommodate Montenegrin hex codes, please?

Thank you very much

Regards

David

Anmer

This is the line I have in my Countries.dat file:

Montenegro=01010001011000xxxxxxxxxx,14,Montenegro.bmp

This should work for 4O-MNE hex 516001

BMP attached.
Here to Help.

David Moore

Bless you Anmer - thank you very much!

Regards

David

rikgale

#87
If it is of any help I am trying to keep a countries.dat file up-to-date and avaiable on github for anyone to download and use.

https://github.com/rikgale/VRSCountries.dat

I am using it to set the countries correctly in my VRS Basestation.sqb DB (using a piece of python that Farmir kindly wrote for me), hence the name of the repo.

EDIT: When downloaded from github - the hidden line retrun characters are set for Linux OS's only. If this file is used on Windows PCs then open the downloaded file in Notepad++, highlight the text (Ctrl+A), from the menu bar   EDIT -> EOL Conversion -> Windows (CR LF). Then save the file. Job done.

The uploaded file contains the correct line retrun characters, but the downloaded files does not. Apologies, but at least there is a work around.

Auto updated daily ZIP files on GitHub

Andrewmer

Guernsey seem to be re-coding aircraft in a new HEX range, with 43F6C6, 43F700 AND 43F702 noted so far. Can some clever soul provide a Countries.dat line for these? These may be covered by an existing United Kingdom Mil entry, so would that line need adjusting?
Thanks, Andy

rikgale

Guernsey=0100001111110110xxxxxxxx,16,Guernsey.bmp   for 43F6xx range

Guernsey=0100001111110111xxxxxxxx,16,Guernsey.bmp   for 43F7xx range

If I am wrong apologies in advance... I still can't wrap my head around bit masks. But I have tested with the ModeS_Country Spreadsheet and it seems to do the trick.


                              

Auto updated daily ZIP files on GitHub