Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Winamp3 Discussion (http://forums.winamp.com/forumdisplay.php?f=57)
-   -   New Winamp3 mIRC plugin finished (http://forums.winamp.com/showthread.php?t=89501)

Russ 31st May 2002 10:22

New Winamp3 mIRC plugin finished
 
I've just finished my new Winamp3/mIRC plugin for Winamp3 beta 3. Here's the readme:

This is a completely rewritten version of my original Winamp3/mIRC plugin, updated to use the mIRC SendMessage communication instead of DDE.

To use, put mIRC.wac into your winamp3\wacs directory, and restart Winamp. Hit <control>+p and go to the "mIRC plugin" section of the configuration. Check the "Enable mIRC Control" box, and enter the irc command into the text box. This will be processed by mIRC as if it were typed into the active window. Codes you can use in this box are listed below:

%a - Artist
%t - Title
%l - Album
%y - Year
%c - Comment

Colour codes (use as you would in mIRC):

*b - Bold
*u - Underline
*k <number> - Colour <number>

Grab it here: http://russ.garrett.co.uk/wa3/mIRC.zip

nonexistentnothing 31st May 2002 10:35

Sounds great, i will take a look at this when i get back to my main computer.

Arvenius 31st May 2002 14:49

great thing.. waiting for good mirc plug for ages... but please add more variables, like the full-filename with path for dcc sends, bitrate, length, size, etc.. its not just for displaying it on screen but for working with it in mirc, you know? =)

Russ 31st May 2002 15:58

Yeh I know what you mean, I'm working on it now :).

YtseJam 31st May 2002 17:16

Just make it optional... Not all like to show the bitrate and other [useless] info. in a /me line.

Russ 31st May 2002 17:22

It's already optional - personally I only use artist and title, I really don't see why people use the other parameters, but it's not much of a bother putting them in, so I will.

Kakos Daimos 31st May 2002 17:47

It is made for build 466 right? Because nothing shows up on my build 475. Would it be hard to make it work with build 475? =)

Russ 31st May 2002 17:50

I don't support the development builds at the moment (my god I'm beginning to sound like a software company already) because they're pretty unstable. I'll look into doing a #475 build though.

Russ 5th June 2002 13:40

Version 2
 
In response to comments, here's version 2 which includes the following new formatting codes:

%l - Length in seconds
%m - Length in mm:ss
%p - Winamp3 playstring - if this is a file, you can strip the file: off the beginning to get the path.

(A full guide to the codes is in the readme file in the zip).

Grab it at http://russ.garrett.co.uk/wa3/mIRCv2.zip.

thepyr0x 5th June 2002 16:00

hrm, I do a lot of mIRC scripting myself, and from that point of view there's something that would be even better than the way you are going about your mIRC plugin now. The way I would prefer it is if you could get something like
code:
$dll(wa3.dll,filename)
and have it return the filename, that way you wouldn't have to leave your mIRC window to display the song you are playing. Maybe as a future implementation you could allow mIRC to make calls to the dll and have it tell WA3 to stop, play, pause, etc etc etc. If ya ever need any help with the mIRC scripting side......

Bizzeh 5th June 2002 21:09

could you add a command like
code:
%ver
which pulls out the current version of winamp 3 being used???

Russ 5th June 2002 21:13

Yup sure, that's in my todo list for the next version :)... could be quite a while coming though, other things to do.

Bizzeh 5th June 2002 21:49

thanks dade... could u send me code for that PHP script aswell plz:D:D:D in a quick instruction on how to set it up..

thanks

Russ 6th June 2002 08:49

I'll ramble quickly on the PHP script. I use my info file plugin to output a file onto another computer I have here (a linux machine, but that's irrelevant), using a mapped network drive. That file is shared using a web server on that machine (which is on my cable modem - you can view it here: http://europa.tcslon.com/playing.txt), and then the PHP script on my main web server picks that up and does some image stuff with it.

The source to the PHP script is here http://russ.garrett.co.uk/playing.txt but your ISP needs to have PHP compiled with GD and FreeType support for the image stuff to work, which is a pain to do to say the least. Here it helps to be your own ISP :).

Rocker 6th June 2002 10:10

winamp3 downloads fixed

Russ 6th June 2002 15:21

With regards to build #475, the SDK doesn't compile for that build because some pretty essential files are missing. I'm awaiting #476 :).

Bizzeh 6th June 2002 18:34

ok... i got http://dexterholland.drakesland.com that is perm up and suports everything (well as much as he can do, which is quite alot)

could u give me a lil help on how to set it up to my machine

Bizzeh 7th June 2002 00:55

compile to 476 aswell plz

mc^^^^ 7th June 2002 08:44

a feature i would ABSOLUTLY LOVE: the ability to only send the string to mirc after the song has been playing for 10 seconds or so, this way people dont see some of the pathetic songs i dont want yet cant be bothered deleting.

to do you could just use a timer or something

thepyr0x 7th June 2002 16:48

/me taps his foot and waits for $dll and /dll ability rather than just having it sent from the plugin

Russ 16th June 2002 16:11

OK build 477 versions of all my plugins are arriving shortly. It's the first build I can actually *use*.

With regards to the timer thing, I'm looking into it at the moment.

With the $dll thing, the reason I didn't do one is because winamp3 has no externally-accessible API of it's own - I'd end up reimplementing the Winamp 2 plugin manager component to provide an api, then reimplementing one of the mIRC DLLs already available.

So, if you really really want to tell everyone in your channel how far through the song you are (I never found out why people do that - I DON'T CARE WHERE YOU ARE IN THE BLOODY SONG), use the wa2 plugin manager and one of the existing mIRC DLLs.

If you want functionality like the mIRC dlls, but don't need people to know the gory details of how far through the song you are, then you can use my info file plugin, which provides similar functionality, without the live "how far through you are" data, and is simpler and more flexible into the bargain.

thepyr0x 16th June 2002 18:30

no no no I don't care about "how far in the song I am"

however, i like the idea of being able to make an alias so I can just type like /mp3.play and have it randomly play a song (or maybe I could do /mp3.play songtitle and have it use a j like function to find that title and play it). then I could have it display an ad saying here's the song, here's the details, here's how to get it sorta thing. if it's using Winamp based searching, and Winamp based random select, then I'd have to get the songtitle and whatnot from Winamp

do ya see what I'm sayin?

Russ 16th June 2002 18:43

Ah I see what you're getting at... This is where I personally thing Winamp3 should be provided with an externally-accessible API.

Again I think that the best bet at the moment is to use the winamp 2 plugin support component, with an existing plugin. Someone needs to write a generic IPC component for wa3, although that could be somewhat confusing for end-users.

I'll try and put something together possibly, but I've got other things to do, so I make no promises. :)

Bizzeh 22nd June 2002 20:25

are you goin to compile for RC1 #478?

i hope so cos i love this plug

Russ 22nd June 2002 20:32

The problem with RC1 is there's no configurification, so there's nowhere for the settings to live. Although the plugin can be used by editing the studio.xnf manually (I'm using it at the moment), that's not particularly user-friendly.

Expect a new version in the next few days, I'll write some instructions on using studio.xnf, but also expect to be shouted at or ignored if you ask any questions - I'm quite busy over the next 2 or 3 weeks :).

Electronic Punk 30th June 2002 17:24

Now that configurification is kinda in and working again, you reckon you could update this fine looking mod ?

Cheers.

Russ 30th June 2002 17:33

1 Attachment(s)
This is provided with absolutely no support whatsoever. Compiled for RC1.5 but works with RC2. A better version with a preferences pane will arrive within 3 weeks. I hope.

Electronic Punk 30th June 2002 17:54

Thanks I will give it a go now :D

Electronic Punk 30th June 2002 18:40

Did mean the mIRC addon, but this seems pretty cool.

The above file seems to be working pretty cool with the latest build, should be nice when you have configured what the output txt file will show.

Currently on dialup so can't really realistically link to my ip as the txt file source, tried putting some ftp details as the target location but it wasn't having any of it :D
Interesting to read thru the code that converts that all into an image tho..

Russ 30th June 2002 18:54

Ooops lol I forgot which thread this was :). I really haven't got much time at the moment - the PHP script is at http://russ.garrett.co.uk/playing.txt - I don't think it's too hard to follow.

You can use the info file in mIRC using an alias like this:
playing say [ $+ $read(H:\playing.txt,1) $+ ] playing $+ $read(H:\playing.txt,2) $+ - $+ $read(H:\playing.txt,4)

Replacing H:\playing.txt with the path to your info file



Electronic Punk 30th June 2002 19:37

Thats working a treat. Thanks alot, nice of you to drag yourself away from business :D

Used the following alias as the other one gave me some unknown error type thing:

playing say $chr(91) $+ $read(c:\program files\winamp\playing.txt,1) $+ $chr(93) playing $read(c:\program files\winamp\playing.txt,2) - $read(c:\program files\winamp\playing.txt,4)

And have customised it a little:

playing describe $active is raving to [ $read(c:\program files\winamp\playing.txt,2) - $read(c:\program files\winamp\playing.txt,4) ]

Greatly appreciated! :D

Q3aiml 30th June 2002 20:42

Quote:

Originally posted by mc^^^^
a feature i would ABSOLUTLY LOVE: the ability to only send the string to mirc after the song has been playing for 10 seconds or so, this way people dont see some of the pathetic songs i dont want yet cant be bothered deleting.

to do you could just use a timer or something

This works if you change the song before ten seconds is up. If you pause/stop it will not work.

Send the command as

//timermp3info 1 10 amsg what you want to say

Rememeber that if you are on more than one server and the active window changes to a different connection it won't work. If you want it to work on all connections you could use

//scon -a timermp3info 1 10 amsg what you want to say

Electronic Punk 9th July 2002 20:06

Any word on any updates, or are you still well busy?
A new line of total time would be nice etc..

Russ 9th July 2002 20:11

School ends tomorrow, but I want a new wa3 build/RC to play with :).

Still now the RC2 SDK is out I shall have a few new builds out soon. I hope to include a preferences page in the next release :). Thing is, I don't have much incentive to build any more of my components, because the one I use works fine at the moment :).

Electronic Punk 9th July 2002 20:35

Yeah a new build would be well nice - but then you can't really expect too many changes with it ;)

Not sure how these mods are coded, but it seems weird how every new release breaks compatibility.

Anyway, it works fine for now (your doohicky), wowing all my friends with my awesome taste in music...

* [e]-Punk is raving to [ Yves Deruyter - Back To Earth (DJ Scot Project Remix) ]

;)

Russ 9th July 2002 20:38

lol, not every build actually breaks compatibility. The Info File plugin I posted above was compiled against the RC1.5 SDK, but works fine with RC2. They've still been screwing quite a lot with the APIs though, although this is slowing down.

anenburg 5th May 2003 13:42

Sorry for bumping up the thread, but is there a new version of this or something, for the current build - 488?

Russ 5th May 2003 16:08

No. Use AMIP.


All times are GMT. The time now is 20:46.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.