Jump to content

Adding Radio Stations Post Patch 1.01c


Recommended Posts

Posted

Yeah, you can always manually change the file order or have the script to do so before Black Shark start.... But this would be again another workaround for the functionality BS should have.

Posted (edited)

If you want listening your favorite music in a combat helicopter IMO then you fail. Probably the next thing is "How to manage to view my favorite movies on the Shkval-Screen"...

Edited by zdXu
  • 2 weeks later...
Posted

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

}

}

},

 

 

Enjoy.

 

Good stuff thanks!

JTLYK, if you follow the above exactly, you'll end up with

}

}

}

},

 

which is one too many.

[sIGPIC][/sIGPIC]

Posted

Has anyone figured out how to push streaming radio? I'd like to stream through some real ATC chatter.

It's a good thing that this is Early Access and we've all volunteered to help test and enhance this work in progress... despite the frustrations inherent in the task with even the simplest of software... otherwise people might not understand that this incredibly complex unfinished module is unfinished. /light-hearted sarcasm

Posted
Good stuff thanks!

JTLYK, if you follow the above exactly, you'll end up with

}

}

}

},

 

which is one too many.

 

Always best practise in programming is to use tabulators (or spaces) at the beginning of lines (indent) when you open logical block. Here in this case, "{" and "}" are used for defining arrays. When you open array by "{" automatically increase indent on everything what follows and when you close this block by "}", decrease indent again.

This will help you avoid missing braces and errors during game startup. I guess, notepad++ does automatic indenting once you indent one line with tabulator.

 

Example:

 

My_array =

{

["first_array_index"] =

{
variable1 = "some_value",

variable2 = "some_other_value"

},

["second_array_index"] =

{

width = 100,

height = 50

}

}

 

I hope this little lesson of programming will help you in future ;)

Posted

@woots:

 

I suggest you follow the screenshots indications ! Because when I copied and pasted the scripts in the forum topic , the { thing has changed...anyway if you need anything else just ask me.

Cheers

[sIGPIC][/sIGPIC]

Posted (edited)

I hope this little lesson of programming will help you in future ;)

 

What lesson? Indenting code while programming? Uhhh, that's nothing new.

 

I'm just making an observation it case Maiochine wanted to fix his post. It was obvious to me, maybe not to others.

Edited by Woots

[sIGPIC][/sIGPIC]

Posted
What lesson? Indenting code while programming? Uhhh, that's nothing new.

 

I'm just making an observation it case Maiochine wanted to fix his post. It was obvious to me, maybe not to others.

 

Well, indenting code, defining arrays, making logical blocks in lua... It is a "little lesson", but to those guys who are not coders. They probably don't know, what are braces used for. My post wasn't dedicated to you, I used only the piece of your post as example how to not do the coding (I know the forum engine itself formatted text in this bad way, but do non-programmers know that?).

 

Let's make it clear, I hope my post will be usefull for non-programmers.

Posted

GUYS WOULD YOU PLEASE STOP STOP STOP going OFF TOPIC ? 've never seen a topic on ED easily understandable...you read the topic titlte and than you have a heart attack when you see how many pages of reply that's because KIDS like you enjoy fighting for unsignificant things... C'mooooooooon !

 

MAIOCHINE OVER AND OUT

[sIGPIC][/sIGPIC]

Posted (edited)
because KIDS like you enjoy fighting for unsignificant things... C'mooooooooon !

 

MAIOCHINE OVER AND OUT

 

Take a chill pill Maio. No one's fighting.

Edited by Woots

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

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