Future plans: A Linux-compatible version is planned to be released, but is unknown when, as it'd require a full X4 setup in a Linux VM. Maybe will try later...
1. Place the Mod + the required MODS into your extensions folder.
2. Open the File "settings.ini" in the following directory: "X4 Foundations\extensions\X4_ORS\radiostations"
3. On top, below [Gobal] add the number of online radio stations you want to have ingame, example: NumberOfStations = 2 (for two radio stations) 1 for one, 5 for 5... etc.
4. Below this you find: [Radio_1] FileName = Owner = LoudnessFactor = DampeningFactor = RadioText =
Edit this, and take a look at the Description upon it, also take a look at the PDF file in the mod archive.
For adding a second station copy all those and rename Radio_1 to Radio_2, example:
[Radio_2] FileName = http://live.radioton.de/rt-live-bw Owner = LoudnessFactor = 0.60 DampeningFactor = 0.4 RadioText = Radio Ton Live
If you press STRG (CTRL) + ALT + Arrow UP/Down igame it switches the radio stations and shows you a Huge Radio Station Name on your Screen like: "Radio Ton live" the text you typed after "RadioText ="
This is absolutely amazing, one word: podcasts! ok i lied, thats two words, i gueess, but anyway, does this have the ability to change music depeendant on faction ownership? like a sector or a stations faction = different muzak?
If I get it correctly, podcasts are simply online streams. In case of online streams, you need the M3U or PLS (or similar) streamed music file.
About ownership music: this mod cannot change sector background music (that is static - even the game lacks script commands to change sector background music). The ability to play certain radio stations only from stations owned by a particular faction is a very basic ability, available since the first version of this mod.
But if you're asking if two simultaneous tracks can be played on the exact same radio station slot (dependent on owner) - no, it's not. It would be possible to implement it, but most users may not proficient enough to even configure this mod by editing that INI file.
EDIT: As of version 0.18, the multi-slot radio stations are implemented: there can be different music on the same radio station, for different factions. Old-style (single-slot) radio stations are still supported, requiring no change for old INI files, in case one does not want to use the new feature.
I don't think it's possible to query the 'in-battle' state. Even, if it's possible to do it from LUA script, it'd require me to rewrite both the EXE and the LUA script (which I'm able to do - of course); but it'd make no sense in the context of 'radio stations'. To change the battle music, you need to use XML patch to patch the "<fightmusic ref="music_bigbattle" />" statement in the "libraries/defaults.xml" with a mod. It needs to be changed to either an existing music, or the "libraries/sound_library.xml" must also be patched; you need to register your own OGG music there, then copy the OGG to the specified folder. It'll be a separate mod. Check out other Audio mods' structure, to know more...
In fact, I was trying to figure out how to use the BASS.DLL bu Un4seen to play online streams. With little success.. The EXE program (which actually plays the music) uses the Windows MCI currently. If you could find me some examples of playing online streams with Windows MCI or BASS.DLL, that would make your request possible.
Another thing, the ingame UI button: I was not yet able to figure out, how to hook a menu into the game, only to show the radio station names for 5 sec after change. If you could help me with that, I could implement the Radio Station Name show feature.
Btw, Ingame button... If this would succeed, online radio could be handled exactly like local radio - the whole thing is Object Pascal, with all playback implementation hidden in the TPlayableAudioTrack class - but this may not be interesting...
I wish you a good day!
EDIT: I seem to have figured out the Net radio playback. Testing beta v12 to play both Net radio and local music! The LUA help is still needed.
EDIT 2: Uploaded new version. Now supports online streamed radio stations. Thanks for your request! The LUA help is still needed.
I am so sorry, i just downloaded your mod again and tried recod some audio files with audacity from my radio station. Then i diddn't know why the songs diddnt play ingame, it seems i must find some UI or so, i thouhgt...
And then i took a look at the comments to maybe find out how to enable this mod, but i guess it should be enabled by itself so?
And theeeeeen i did see you answered and i diddnt reply argh, i diddnt know!
So here is a link for a radio station im listening to, it is a german one, called Radio TONE 80's.
http://live.radioton.de/rt-80
if you use this in your browser ir should directly play the radio if it is available in your country for sure.
So you say you got it working? really? if so, let me check and i will try to implement this link for testing..
But still need figure out how to enable your radio, hm let me check your files.. hmm..
"For detailed installation and usage information, read the included PDF!"
Any mod that's missing the SIG files, makes the game modified. Probably all non-Egosoft mods. But with THIS particular mod, the usage of SIG files is not feasible!
18 comments
A Linux-compatible version is planned to be released, but is unknown when, as it'd require a full X4 setup in a Linux VM. Maybe will try later...
1. Place the Mod + the required MODS into your extensions folder.
2. Open the File "settings.ini" in the following directory:
"X4 Foundations\extensions\X4_ORS\radiostations"
3. On top, below [Gobal] add the number of online radio stations you want to have ingame, example:
NumberOfStations = 2 (for two radio stations) 1 for one, 5 for 5... etc.
4. Below this you find:
[Radio_1]
FileName =
Owner =
LoudnessFactor =
DampeningFactor =
RadioText =
Edit this, and take a look at the Description upon it, also take a look at the PDF file in the mod archive.
For adding a second station copy all those and rename Radio_1 to Radio_2, example:
[Radio_2]
FileName = http://live.radioton.de/rt-live-bw
Owner =
LoudnessFactor = 0.60
DampeningFactor = 0.4
RadioText = Radio Ton Live
If you press STRG (CTRL) + ALT + Arrow UP/Down igame it switches the radio stations and shows you a Huge Radio Station Name on your Screen like: "Radio Ton live" the text you typed after "RadioText ="
For more informations read the included readme!
Or, otherwise, something, like too many stations may lag your game that hard.
On the other hand, a 'generalized' lag, ie. 1-2 FPS drop is normal.
About ownership music: this mod cannot change sector background music (that is static - even the game lacks script commands to change sector background music). The ability to play certain radio stations only from stations owned by a particular faction is a very basic ability, available since the first version of this mod.
But if you're asking if two simultaneous tracks can be played on the exact same radio station slot (dependent on owner) - no, it's not. It would be possible to implement it, but most users may not proficient enough to even configure this mod by editing that INI file.
EDIT:
As of version 0.18, the multi-slot radio stations are implemented: there can be different music on the same radio station, for different factions. Old-style (single-slot) radio stations are still supported, requiring no change for old INI files, in case one does not want to use the new feature.
It's a quite unusual question...
I don't think it's possible to query the 'in-battle' state. Even, if it's possible to do it from LUA script, it'd require me to rewrite both the EXE and the LUA script (which I'm able to do - of course); but it'd make no sense in the context of 'radio stations'.
To change the battle music, you need to use XML patch to patch the "<fightmusic ref="music_bigbattle" />" statement in the "libraries/defaults.xml" with a mod. It needs to be changed to either an existing music, or the "libraries/sound_library.xml" must also be patched; you need to register your own OGG music there, then copy the OGG to the specified folder. It'll be a separate mod. Check out other Audio mods' structure, to know more...
Greetings!
I would even pay for it.
Greetings, Khajiirah.
In fact, I was trying to figure out how to use the BASS.DLL bu Un4seen to play online streams. With little success..
The EXE program (which actually plays the music) uses the Windows MCI currently. If you could find me some examples of playing online streams with Windows MCI or BASS.DLL, that would make your request possible.
Another thing, the ingame UI button: I was not yet able to figure out, how to hook a menu into the game, only to show the radio station names for 5 sec after change. If you could help me with that, I could implement the Radio Station Name show feature.
Btw, Ingame button... If this would succeed, online radio could be handled exactly like local radio - the whole thing is Object Pascal, with all playback implementation hidden in the TPlayableAudioTrack class - but this may not be interesting...
I wish you a good day!
EDIT:
I seem to have figured out the Net radio playback. Testing beta v12 to play both Net radio and local music!
The LUA help is still needed.
EDIT 2:
Uploaded new version. Now supports online streamed radio stations. Thanks for your request!
The LUA help is still needed.
EDIT 3:
Success!
Thanks for your request!
And then i took a look at the comments to maybe find out how to enable this mod, but i guess it should be enabled by itself so?
And theeeeeen i did see you answered and i diddnt reply argh, i diddnt know!
So here is a link for a radio station im listening to, it is a german one, called Radio TONE 80's.
http://live.radioton.de/rt-80
if you use this in your browser ir should directly play the radio if it is available in your country for sure.
So you say you got it working? really? if so, let me check and i will try to implement this link for testing..
But still need figure out how to enable your radio, hm let me check your files.. hmm..
"For detailed installation and usage information, read the included PDF!"
Khajii? Read it!.. lol damn sorry...
But with THIS particular mod, the usage of SIG files is not feasible!