Jump to content

Adding Radio Stations Post Patch 1.01c


Recommended Posts

Posted

After installing the latest patch I noticed that it had overwritten my custom radio stations. When I tried recreating them by just copying the Radio Maykop station and editing its position ive found that it is not working. I have also noticed that there is no more sampledurations.lua anymore (or my version is corrupted). I have been using notepad ++ to edit the files and it is not just the case of the music not playing but the radio tower doesnt show either.

 

Attached is a pic of how ive tried to add the radio station.

untitled.thumb.JPG.380496fe0853814c7b5121abb257e9d6.JPG

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

I asked the same thing several time ago and nobody could enlight me about how to resolve this issue. I left the problem unsolved.

 

Maybe you will have more luck.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

Posted

Anyone ?

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

Thanks

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

  • ED Team
Posted

Thanks for report, guys, I will investigate this issue this week.

Men may keep a sort of level of good, but no man has ever been able to keep on one level of evil. That road goes down and down.  
Можно держаться на одном уровне добра, но никому и никогда не удавалось удержаться на одном уровне зла. Эта дорога ведёт вниз и вниз.

G.K. Chesterton

DCS World 2.5: Часто задаваемые вопросы

Posted

Thanks again

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

vanilla 1.0

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

The same version here.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

  • ED Team
Posted

You forgot comma after default radio "Mayak" block, see attached picture. It works.

comma.thumb.jpg.92bbf86429a6d7cd2cd62701f54d4c47.jpg

Men may keep a sort of level of good, but no man has ever been able to keep on one level of evil. That road goes down and down.  
Можно держаться на одном уровне добра, но никому и никогда не удавалось удержаться на одном уровне зла. Эта дорога ведёт вниз и вниз.

G.K. Chesterton

DCS World 2.5: Часто задаваемые вопросы

Posted

Ok let me try that and ill get back to you

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

Its worked thanks alot.

To INVENT an Airplane is Nothing.

To BUILD One is Something.

But to FLYis EVERYTHING.

- Otto Lilienthal

 

[sIGPIC][/sIGPIC]

Posted

Суперь Рук ¡¡¡¡

 

Now it works perfect, like before de patch. Filling the caucasus with music ¡¡¡¡

 

Thanks for your kind help, i appreciate it a lot.

 

The only thing that i can´t now make it work is the random order of the music. All songs always are played in the same order, when i have "rand" in true.

 

A screen about my beacons.lua file attached.

Dibujo.thumb.JPG.bfd4e4513d22d3ef2335ca10a0726d8a.JPG

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

  • 5 weeks later...
Posted

I cannot figure this one out at all. I read numerous forum posts, most of which dont apply now 1.01c is out. here is my Beacons.lua segment for new station.

	["Mayak"] = {
	name="Mayak",
	type = BEACON_BROADCAST_STATION,
	position = {
		latitude = 44.744348,
		longitude = 40.093099,
		height = 220.0,
		course = 0
	},
	frequency = 125675000.0,
	power = 1500.0,
	modulation = "AM",
	content = {
		[1] = {
			startTime = 0 * 3600 + 0 * 60 + 0,
			period = 30.0 * 60.0,
			priority = 1,
			sources = {"RadioMayak\\!RadioMayak.wav"}
		},
		[2] =  {
			rand = true,
			cycled = true,
			interruptable = true,
			priority = 1,
			sources = { "RadioMayak\\Music/" }
		}
	}
},
["Senaki"] = {
	name="Senaki",
	type = BEACON_BROADCAST_STATION,
	position = {
		latitude = 42.235277,
		longitude = 42.045555,
		height = 21.0,
		course = 0
	},
	frequency = 125675000.0,
	power = 1500.0,
	modulation = "AM",
	content = {
		[1] =  {
			rand = true,
			cycled = true,
			interruptable = true,
			priority = 1,
			sources = { "RadioSenaki\\Music/" }
		}
	}
}
}

I put a comma after Mayak section and added Senaki. The music inside Music folder is atm only 3 files in .wav stereo @ 705Kbps

 

is there any other files that need to be moded or is this the only one. on an earlier attempt in the temp folder error.log i saw this line

Dispatcher::Can't execute Lua file Scripts/Aircrafts/ka-50/Cockpit/ARK\ARK_MAIN_page.lua - Scripts/World/Radio/Beacons.lua:1: unexpected symbol near 'ï'

now I could not find that symbol or anything but is that the problem?

Ghost

  • 4 weeks later...
Posted (edited)
Суперь Рук ¡¡¡¡

 

Now it works perfect, like before de patch. Filling the caucasus with music ¡¡¡¡

 

Thanks for your kind help, i appreciate it a lot.

 

The only thing that i can´t now make it work is the random order of the music. All songs always are played in the same order, when i have "rand" in true.

 

A screen about my beacons.lua file attached.

 

Hi Esac,

 

I saw you have resolved the problem and you are filling the whole map with radio stations !

 

Im using normal notepad ++, windows 7 64 bit and BS 1.0.1c

When I change the script in the beacons.lua file the Mayak radio station is not audiable anymore ! I tried to do exactly like your script but no hope!

 

Im creating a folder inside "Samples" folder (as the readme file says) and I named it "RadioMayar" and I repicated the same contents as "RadioMayak" folder inside the one I just created ... nothing works neither the Mayak radio works now ! Im using the same scirpt you are using!

 

Please tell me step by step what should I do !

 

Thanksmate

Edited by maiochine

[sIGPIC][/sIGPIC]

Posted (edited)

PROBLEM SOLVED

 

HERE'S HOW:

 

Okay I'm gonna teach everybody who had my same problem and didn't understand a s... of the forum's chaos.

 

First of all I'm using windows 7 64 bit and DCS Balck Shark patched to 1.0.1c.

 

1- download Notpad ++ from HERE : http://www.mediafire.com/file/hdumiyawt3m/npp.5.6.4.Installer.exe

 

2- after you install Notepad ++ on your PC, go to your Black Shark root folder and open "Radio" folder and that usually is in : c:\Program Files\Eagle Dunamics\Ka-50\Scripts\World\Radio

 

3- Inside "Radio" folder you'll find a file called "Beacons.lua"

 

4- Open "Beacons.lua" using Notepad ++ DONT USE NOTEPAD classic it WONT WORK

 

5- Lets say I would like to create a radio station in Batumi city, so you fly to the place where you want to place your antenna (radio station) you land there and you read on you barometric altimeter the value (the QNE in the mission I created was 760 default). Okay in this example my altimeter reads

zero meters. Take a paper and write down that value and next to it write down 26 m, that's because everytime you have to place a radio station for its height you have to add 26 m on the barometric value you read on the altimeter when you are on the disiered spot. For example if you land on a spot you chose and your barometric altimeter (analoghe one) reads 200 meters, all you have to do is add 26, so the result would be 226 meters.

 

6- Now go to the outside view and write down the coordinates (you can see them on the bottom of the screen when you are in the F2 view), in my case

the coordinates are : 41° 39' 28'' N and 41° 40' 09'' E write it down on that paper again.

 

7- Go to http://andrew.hedges.name/experiments/convert_lat_long/

insert your latitude and longitutes that you just signed on that piece of paper and the converter will convert them to you in decimals, so the results in this example would be : Lat: 41.65778 and Long: 41.6525 , write them down on the paper.

 

8- Okay now go back the Notepad ++ and the file "Beacons.lua", scroll down to

 

},

["Mayak"] = {

 

9- Copy

},

["Mayak"] = {

name="Mayak",

type = BEACON_BROADCAST_STATION,

position = {

latitude = 44.744348,

longitude = 40.093099,

height = 220.0,

course = 0

},

frequency = 125675000.0,

power = 1500.0,

modulation = "AM",

content = {

[1] = {

startTime = 0 * 3600 + 0 * 60 + 0,

period = 30.0 * 60.0,

priority = 1,

sources = {"RadioMayak\\!RadioMayak.wav"}

},

[2] = {

rand = true,

cycled = true,

interruptable = true,

priority = 0,

sources = { "RadioMayak\\Music/" }

 

10- after

sources = { "RadioMayak\\Music/" }

 

write down

}

}

},

 

11- Now paste the paragraph you just copied after

}

}

},

 

12- Replace the name Mayak by Batumi, the longitude and latitude by the one you have converted and wrote down on that piece of paper, the height

should be 026.0 and the frequency I chose 122.675, so in the Notepad ++

it should be like this : frequency = 122675000.0

 

13- Okay hold on now ! Its time to create your own playlist... go to

 

c:\Program Files\Eagle Dunamics\Ka-50\Sounds\Samples\

 

Create a folder called RadioSky (it corrisponds to Sky Blue Radio)

 

14- Open the folder "RadioSky" you just created and Create inside another folder named "Music".

 

15- Inside the main folder "RadioSky" place a .wav or .ogg file named

!sky.ogg , in my case this file was the jingle of the original Sky Blue Radio online streaming radio you can chose wahtever you want....

 

16- Now open the folder "Music" and place inside all the songs you want to listen too while flying around Batumi. I chose .ogg format because it is smaler than the .wav files and makes the mission loading faster but CAUTION when you tune to the radio station you'll have to wait about 10 seconds so that the playlist begins.

 

17- Go back to the Notepad ++ and replace in the "Batumi" section

NOT "Mayak" section

sources = {"RadioMayak\\!RadioMayak.wav"}

 

by

sources = {"RadioSky\\!Sky.ogg"}

 

and also replace

sources = { "RadioMayak\\Music/" }

 

by

sources = { "RadioSky\\Music/" }

 

18- Okay now save the file "Beacons.lua" in Notepad ++ and close the program, it should look like this

 

http://i178.photobucket.com/albums/w278/maiochine/AVIATION/script.jpg

 

http://www.mediafire.com/file/j2xxyzyrjwm/script.jpg

 

19- Open DCS BS, go to Batumi airport, takeoff, and select the channel 122.675 and the music should begin ! If you go next to the Radio Station Tower it should look like this

 

http://i178.photobucket.com/albums/w278/maiochine/AVIATION/ScreenShot_001.jpg

http://www.mediafire.com/file/kriqznmig4m/ScreenShot_001.jpg

 

 

 

That's all folks ! Hope you understood everything and in case of doubt just ask me !

 

Enjoy.

Edited by maiochine

[sIGPIC][/sIGPIC]

Posted

Thanks Maiochine. Great description.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

Posted (edited)

It's nothing more easier then to open mission editor, point mouse cursor to position where you want to place radio station and write down coordinates (lat, long) and altitude (+26m) from status bar. What guys are you really solving here? :)

 

The most important thing is, that the music from your selected folder won't play in randomize order, even if you set so in config file. This is bug. Reported here http://forums.eagle.ru/showthread.php?t=44221. The way it works now it's unusable, unless you want to hear same songs in same order every time you turn the radio on :/

Edited by airtom
Posted
It's nothing more easier then to open mission editor, point mouse cursor to position where you want to place radio station and write down coordinates (lat, long) and altitude (+26m) from status bar. What guys are you really solving here? :)

 

The most important thing is, that the music from your selected folder won't play in randomize order, even if you set so in config file. This is bug. Reported here http://forums.eagle.ru/showthread.php?t=44221. The way it works now it's unusable, unless you want to hear same songs in same order every time you turn the radio on :/

 

If it was that easy Airtom I'd have made my way easier and didn't spend 1 hour for the detailed discription ! What I'm trying to do is helping new people getting in this forum topic understand better how to make theri station to work, instead of cheering and saying NOW IT WORKS PERFECTLY and so on.... Maybe for you it is so simple but consider that there are people who've never heard about scripting or are new DCS users.... So permit me to say they your comment is misplaced.

 

Maio out

[sIGPIC][/sIGPIC]

Posted
If it was that easy Airtom I'd have made my way easier and didn't spend 1 hour for the detailed discription ! What I'm trying to do is helping new people getting in this forum topic understand better how to make theri station to work, instead of cheering and saying NOW IT WORKS PERFECTLY and so on.... Maybe for you it is so simple but consider that there are people who've never heard about scripting or are new DCS users.... So permit me to say they your comment is misplaced.

 

Maio out

 

Don't feel offended. I didn't want to put your work here down. You did a great job. And I showed everyone also another way for accomplishing their effort (there are always several ways to do so).

But that wasn't my point. What I wanted to point at is the bug which makes placing radio stations in game nonsense. At least for now, untill that bug is fixed.

Or what are you using radio stations in game for? Maybe you can tell me another useful purpose I don't know yet.

Posted
Don't feel offended. I didn't want to put your work here down. You did a great job. And I showed everyone also another way for accomplishing their effort (there are always several ways to do so).

But that wasn't my point. What I wanted to point at is the bug which makes placing radio stations in game nonsense. At least for now, untill that bug is fixed.

Or what are you using radio stations in game for? Maybe you can tell me another useful purpose I don't know yet.

 

Np dont worry...

 

I'm using the radio stations to have Radio Music Staions arround the scenario... I didn't understand what you mean in "...placing radio stations in game nonsense."

 

What bug are we talking about ?

[sIGPIC][/sIGPIC]

Posted (edited)

Well, the radio station in game is used to simulate real radio stations. That is to transmit music, right? (or anything else that could be useful in game?) The bug which was reported is about the way how the game engine is playing music from certain folder you set in config. For me, it doesn't make sense to play e.g. 500 songs in the same order they are in that music folder. That's why you can set attribute "rand" for randomizing playing order. But it doesn't work. That's what that bug report is about. Understand now?

It's really annoying to hear same songs every time you start your mission and turn the radio on. So untill the bug is fixed, placing radio stations into game doesn't make sense to me (unless it's mission goal to destroy it or something like that..)

Edited by airtom
Posted

For me it is not a no sense. I like music, i put my favourite music in my folder and then listen to it, no matter the order.

 

Obviously a random order is better but between no music at all and music in the same order i choose the second option.

" You must think in russian.."

[sIGPIC][/sIGPIC]

 

Windows 7 Home Premium-Intel 2500K OC 4.6-SSD Samsung EVO 860- MSI GTX 1080 - 16G RAM - 1920x1080 27´

 

Hotas Rhino X-55-MFG Crosswind Rudder Pedals -Track IR 4

  • Recently Browsing   0 members

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