SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-13-07, 08:37 PM   #1
L3TUC3
Mate
 
Join Date: Apr 2007
Posts: 54
Downloads: 3
Uploads: 1
Default [TEC] Radio stations file format/structure

I'm trying to include Radio Oranje for my mod and I have few awesome sound clips, the only problem is that they don't seem to be played whenever I'm tuned into the station.

This is my radio.ini

Code:
[GENERAL]
RadioRealism=Yes
StartCh=1

[CHANNEL]
Name=Washington
Folder=Washington
Freq=22
Antenna=01.01.1930-01.01.2000:44.16,-35.10:100000

[CHANNEL]
Name=Radio Oranje
Folder=Oranje
Freq=49
Antenna=01.01.1930-01.01.2000:44.16,-35.10:100000
I tried a couple of times but the only thing I get is the noise.ogg's static. The station is listed on the radio set properly, just no sound coming from it. Washington works just fine.

I have only one file in the Oranje folder called openingmelody.ogg in Mono, 44.1 khz. Does this need to be .mp3 or .wav or a different bitrate?

Any help is appreciated.

Last edited by L3TUC3; 04-13-07 at 09:05 PM.
L3TUC3 is offline   Reply With Quote
Old 04-13-07, 10:25 PM   #2
peewee
Electrician's Mate
 
Join Date: Sep 2006
Location: Iowa
Posts: 135
Downloads: 32
Uploads: 0
Default

definately needs to be mp3 or wav as far as I can tell. but I'm no expert....if you have windows media player 10 you can play it on that and save as an mp3 I think. Also, make sure the spelling of the file with the mp3 in it is exactly the same as you list it in the code. I missed an 'n' off Glenn Miller and it took me ages to figure out why it wouldn't play anything......... can you say DUH?????
peewee is offline   Reply With Quote
Old 04-13-07, 10:39 PM   #3
L3TUC3
Mate
 
Join Date: Apr 2007
Posts: 54
Downloads: 3
Uploads: 1
Default

Quote:
Originally Posted by peewee
definately needs to be mp3 or wav as far as I can tell. but I'm no expert....if you have windows media player 10 you can play it on that and save as an mp3 I think. Also, make sure the spelling of the file with the mp3 in it is exactly the same as you list it in the code. I missed an 'n' off Glenn Miller and it took me ages to figure out why it wouldn't play anything......... can you say DUH?????
Where did you set the file to be played in the code? I haven't altered any code, I was under the impression all you did was add the station in the .cfg and then put the files in their apporpiate folder.
L3TUC3 is offline   Reply With Quote
Old 04-14-07, 01:01 AM   #4
tedhealy
Grey Wolf
 
Join Date: Mar 2005
Location: St. Louis, MO, USA
Posts: 772
Downloads: 13
Uploads: 0
Default

Quote:
Originally Posted by L3TUC3
I'm trying to include Radio Oranje for my mod and I have few awesome sound clips, the only problem is that they don't seem to be played whenever I'm tuned into the station.

This is my radio.ini

Code:
[GENERAL]
RadioRealism=Yes
StartCh=1

[CHANNEL]
Name=Washington
Folder=Washington
Freq=22
Antenna=01.01.1930-01.01.2000:44.16,-35.10:100000

[CHANNEL]
Name=Radio Oranje
Folder=Oranje
Freq=49
Antenna=01.01.1930-01.01.2000:44.16,-35.10:100000
I tried a couple of times but the only thing I get is the noise.ogg's static. The station is listed on the radio set properly, just no sound coming from it. Washington works just fine.

I have only one file in the Oranje folder called openingmelody.ogg in Mono, 44.1 khz. Does this need to be .mp3 or .wav or a different bitrate?

Any help is appreciated.
Is your Oranje folder at \data\sound\radio\oranje ?

Within oranje folder, you need an events folder. If you just want your sound file to play randomly, then put it in \data\sound\radio\oranje and it should play repeatedly.

If you want to have your sound file played at a certain time and date, you need to put your sound file in \data\sound\radio\oranje\events. Plus you need an events.ini in there too. Just look at the washington folders' events.ini to get an idea of the format
tedhealy is offline   Reply With Quote
Old 04-14-07, 01:02 AM   #5
bunkerratt
Chief
 
Join Date: May 2006
Location: madison wisconsin
Posts: 310
Downloads: 13
Uploads: 0
Default

i may be wrong but your tryint to transmit the 2 stations off the same antena during the same time frame ...if my history is correct oranje would be dutch east indies? so my thinking is you should try this and see if it works for you change the station location to this
Antenna=01.01.1930-01.01.2000:44.16,-120.00:100000

the 120 puts the ant in the celebes /hope this helps let me know if it works and mp3's wave or oggs should work
__________________
bunkerratt is offline   Reply With Quote
Old 04-14-07, 01:03 AM   #6
tedhealy
Grey Wolf
 
Join Date: Mar 2005
Location: St. Louis, MO, USA
Posts: 772
Downloads: 13
Uploads: 0
Default

True, but the location really doesn't matter when you have a power of 100000. It will be heard everywhere on the map so it's originating spot doesn't matter.
tedhealy is offline   Reply With Quote
Old 04-14-07, 01:32 AM   #7
L3TUC3
Mate
 
Join Date: Apr 2007
Posts: 54
Downloads: 3
Uploads: 1
Default

Quote:
Originally Posted by tedhealy
True, but the location really doesn't matter when you have a power of 100000. It will be heard everywhere on the map so it's originating spot doesn't matter.
I only have a 14 minute track of Radio, it's ok if it loops for now. Finding radio broadcasts from that time is hard enough as it is.

Radio Oranje is London actually. It used to be Radio Nederland (Netherlands) but after the invasion in may 1940 they were shut down by the Germans. Radio Oranje is basicly BBC. It's shortwave and they broadcasted all over the world. I don't know how they did it but it was a big to do over at Philips at the time.

That's mostly details though, I just wanted it to work.

The antenna doesn't matter. I managed to get it to work, but I needed to remove/rename the radio_track.wav in the washington folder. It interupts the other files obnoxiously.

For the rest I changed the folder name to Radio Oranje and so far so good.
L3TUC3 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.