![]() |
![]() |
lame-name |
![]()
Post
#1
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-July 08 Member No.: 557 ![]() |
Hi, i am using the file integration to display my "now playing" info in some games (via the games 'exec file' function). Works like charm, BUT i'd like to filter certain words from the output.
For example some webradios put "WWW.SOME-NAME.STUFF" into the song information. Since that can be a very long text (if in title AND album, for example), i'd like to automatically remove that (or if possible: replace with custom text). I've been playing around with the reg. expressions of the "Ignore song titles matching pattern" feature, but it looks like it COMPLETELY ignores the songinfo if it matches to the regex. (either that, or i somehow missed something) Thanks for any help or hint. |
![]() ![]() |
xaxaman |
![]()
Post
#2
|
Newbie ![]() Group: Members Posts: 2 Joined: 18-June 08 Member No.: 540 ![]() |
Hi, i am using the file integration to display my "now playing" info in some games (via the games 'exec file' function). Works like charm, BUT i'd like to filter certain words from the output. For example some webradios put "WWW.SOME-NAME.STUFF" into the song information. Since that can be a very long text (if in title AND album, for example), i'd like to automatically remove that (or if possible: replace with custom text). I've been playing around with the reg. expressions of the "Ignore song titles matching pattern" feature, but it looks like it COMPLETELY ignores the songinfo if it matches to the regex. (either that, or i somehow missed something) Thanks for any help or hint. Yo dude, can i ask in which games it works? Because in my games it does not, i haf found a topic and also gave several hints how to solve this problem, maybe i need send Serge a PM or something. Whatever, your feature would work if you hear a specific Internet radio all the time, but if u change stations the webadresses and the radio text also changes. Maybe its hard to solve.. Let's see what the master says.. ;] |
lame-name |
![]()
Post
#3
|
Newbie ![]() Group: Members Posts: 4 Joined: 13-July 08 Member No.: 557 ![]() |
Yo dude, can i ask in which games it works? Because in my games it does not, i haf found a topic and also gave several hints how to solve this problem, maybe i need send Serge a PM or something. I use it in Counterstrike and other HL-based games. It should work in any game that has a console or at least lets you execute custom config files. I've set the file location in AMIP Configurator to: CODE X:\Steam\steamapps\MYACCOUNT\counter-strike\cstrike\nowplaying.rc (This writes the songinfo to a standard textfile with a .rc-ending to the game directory. I guess you could use .cfg or whatever you prefer instead of .rc). The songinfo alone wouldn't do anything ingame though, therefore the text it writes to the textfiles has to include the command that your game uses to display info. An example for CS: CODE say_team "np: %name" The above would write something like this to the nowplaying.rc: CODE say_team "np: Artist - Title" Now if you bind a key to "exec nowplaying.rc" it executes the content of the file. In this case it would send your songinfo as a message in teamchat after pressing whatever key you used to bind. Of course you can use more complex stuff with all the other variables or counterstrike specific color codes etc This is how it looks ingame |
![]() ![]() |