Jump to content

Please update radio.lua 'callsign' for eastern airfields


Recommended Posts

Posted (edited)

The radio file currently only holds the eastern names ("callsigns") for airfields, even though in the game they use their western name equivalents in airbase:getName(). This isn't a problem unless a script tries to tie an airfield to a tower frequency by parsing radio.lua to get to an airfield's frequencies.

The radio standard already has provisions to provide multiple names, so 'all' that would need to be do is to provide the western name for an airfield along with the eastern. Currently, the callsign erroneously is given as 'common', when it should be split into "nato" and "ussr". Strangely enough, the comments show the correct name, the data simply does not reflect that.

WRONG:

	{
		-- Allstedt
		radioId = 'airfield157_0';
		role = {"ground", "tower", "approach"};
		callsign = {{["common"] = {_("WADAJOM"), "WADAJOM"}}};
		frequency = {[HF] = {MODULATIONTYPE_AM, 4500000.000000}, [UHF] = {MODULATIONTYPE_AM, 251500000.000000}, [VHF_HI] = {MODULATIONTYPE_AM, 132500000.000000}, [VHF_LOW] = {MODULATIONTYPE_AM, 39900000.000000}};
		sceneObjects = {'t:35072399'};
	};

CORRECT would read

	{
		-- Allstedt
		radioId = 'airfield157_0';
		role = {"ground", "tower", "approach"};
		callsign = 
			{
				{["nato"] = {_("Allstedt"), "Allstedt"}},
				{["ussr"] = {_("WADAJOM"), "WADAJOM"}}
			};
		frequency = {[HF] = {MODULATIONTYPE_AM, 4500000.000000}, [UHF] = {MODULATIONTYPE_AM, 251500000.000000}, [VHF_HI] = {MODULATIONTYPE_AM, 132500000.000000}, [VHF_LOW] = {MODULATIONTYPE_AM, 39900000.000000}};
		sceneObjects = {'t:35072399'};
	};

Or simply use "Allstedt" for common.

Thank you so much

Edited by cfrag

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...