Clan x86

General Forums => General Discussion => Topic started by: abc on July 13, 2008, 06:57:37 PM

Title: Starcraft & Winamp
Post by: abc on July 13, 2008, 06:57:37 PM
I saw a screen shot a while ago on vL about a kid who made a Winamp controller to work with in-game starcraft (a hack essentially), I was curious if anyone knows any standalone "hacks" or programs that allow you to use winamp in-game starcraft. I just find it annoying to go back and forth and I hate setting up playlists :P
Title: Re: Starcraft & Winamp
Post by: Joe on July 13, 2008, 07:09:20 PM
www.stealthbot.net
Title: Re: Starcraft & Winamp
Post by: rabbit on July 13, 2008, 07:11:01 PM
You could do something like what RESP did.  Have StarCraft connect to your little program, which forwards all traffic back and forth.  Have it check out the chat packets for commands and parse whatever (and forward, if you want).
Title: Re: Starcraft & Winamp
Post by: topaz~ on July 13, 2008, 07:23:25 PM
http://advancedcontent.net/topaz/code/pwcb/

I wrote that about a year ago, it will parse output from any Battle.net game and allow you to manipulate Winamp.
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 07:39:07 PM
Great, thanks!
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Title: Re: Starcraft & Winamp
Post by: rabbit on July 13, 2008, 08:22:38 PM
Why bother?  You can just forge a whisper packet and send it to your client...
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 08:28:41 PM
Quote from: rabbit on July 13, 2008, 08:22:38 PM
Why bother?  You can just forge a whisper packet and send it to your client...

It doesn't really pertain that much to a winamp controller as it does to curiosity and interest.
Title: Re: Starcraft & Winamp
Post by: iago on July 13, 2008, 08:34:47 PM
Quote from: Dale on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Nobody here, as far as I know.

Of course, I very easily could, but I never tried.
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 08:54:06 PM
Quote from: iago on July 13, 2008, 08:34:47 PM
Quote from: Dale on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Nobody here, as far as I know.

Of course, I very easily could, but I never tried.


Hmm. Might be a good project for you to open source then?  ;)
Title: Re: Starcraft & Winamp
Post by: iago on July 13, 2008, 09:24:02 PM
Quote from: Dale on July 13, 2008, 08:54:06 PM
Quote from: iago on July 13, 2008, 08:34:47 PM
Quote from: Dale on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Nobody here, as far as I know.

Of course, I very easily could, but I never tried.


Hmm. Might be a good project for you to open source then?  ;)

I didn't write any code for it.

All you have to do is fine a DirectX function that swaps in the backbuffer, then use that pointer to the backbuffer to write to it. Nothing tricky about that.

(You obviously have to be in Starcraft's memory space and all that firrst)
Title: Re: Starcraft & Winamp
Post by: rabbit on July 13, 2008, 09:27:17 PM
Which means risking Warden crap.
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 09:27:43 PM
Quote from: iago on July 13, 2008, 09:24:02 PM
Quote from: Dale on July 13, 2008, 08:54:06 PM
Quote from: iago on July 13, 2008, 08:34:47 PM
Quote from: Dale on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Nobody here, as far as I know.

Of course, I very easily could, but I never tried.


Hmm. Might be a good project for you to open source then?  ;)

I didn't write any code for it.

All you have to do is fine a DirectX function that swaps in the backbuffer, then use that pointer to the backbuffer to write to it. Nothing tricky about that.

(You obviously have to be in Starcraft's memory space and all that firrst)


I was suggesting it might be a nice project for you to do then open source it.

ya, I've read a little bit about it but I don't really get it :P
Title: Re: Starcraft & Winamp
Post by: iago on July 13, 2008, 09:56:22 PM
Quote from: rabbit on July 13, 2008, 09:27:17 PM
Which means risking Warden crap.
You're risking it, definitely, but if you aren't writing to Starcraft's processes/DLLs you're probably ok. Probably. :)

Quote from: Dale on July 13, 2008, 09:27:43 PM
ya, I've read a little bit about it but I don't really get it :P
Like that tutorial I wrote for you? :P
Title: Re: Starcraft & Winamp
Post by: rabbit on July 13, 2008, 09:57:57 PM
Why risk it if there's no need?  If he does the gateway scheme, like I suggested, he can forge whisper packets as responses to his commands.
Title: Re: Starcraft & Winamp
Post by: abc on July 13, 2008, 10:07:10 PM
Quote from: iago on July 13, 2008, 09:56:22 PM
Quote from: rabbit on July 13, 2008, 09:27:17 PM
Which means risking Warden crap.
You're risking it, definitely, but if you aren't writing to Starcraft's processes/DLLs you're probably ok. Probably. :)

Quote from: Dale on July 13, 2008, 09:27:43 PM
ya, I've read a little bit about it but I don't really get it :P
Like that tutorial I wrote for you? :P


Oh don't get me wrong, I understood and did intake many parts of what you wrote of that tutorial :) I'm appreciated it a lot :)
Title: Re: Starcraft & Winamp
Post by: iago on July 13, 2008, 10:11:23 PM
Quote from: rabbit on July 13, 2008, 09:57:57 PM
Why risk it if there's no need?  If he does the gateway scheme, like I suggested, he can forge whisper packets as responses to his commands.
Depends what he wants to do. He said in a previous post that this isn't about winamp, it's something else he's curious about.
Title: Re: Starcraft & Winamp
Post by: rabbit on July 13, 2008, 10:49:44 PM
I still say false whispering is easiest.  You'll be able to print to the screen and not risk Warden.
Title: Re: Starcraft & Winamp
Post by: Camel on July 14, 2008, 12:34:32 AM
Warden is binary code that the client runs. It can detect absolutely anything. The assumption is that it won't consider printing to the screen a hack.

I just have a winamp-enabled battle.net bot running and on my friends list, then I can just /f m play songname
Title: Re: Starcraft & Winamp
Post by: Hitmen on July 14, 2008, 01:26:06 AM
Quote from: Camel on July 14, 2008, 12:34:32 AM
Warden is binary code that the client runs. It can detect absolutely anything. The assumption is that it won't consider printing to the screen a hack.

I just have a winamp-enabled battle.net bot running and on my friends list, then I can just /f m play songname
I hope you have no one else on your friends list. that would be a good way to get yourself ignored easy from me :)
Title: Re: Starcraft & Winamp
Post by: Blaze on July 14, 2008, 01:30:47 AM
Quote from: Hitmen on July 14, 2008, 01:26:06 AM
Quote from: Camel on July 14, 2008, 12:34:32 AM
Warden is binary code that the client runs. It can detect absolutely anything. The assumption is that it won't consider printing to the screen a hack.

I just have a winamp-enabled battle.net bot running and on my friends list, then I can just /f m play songname
I hope you have no one else on your friends list. that would be a good way to get yourself ignored easy from me :)

<BNU-Camel> play YMCA
^ What I get alllll night.  :(
Title: Re: Starcraft & Winamp
Post by: warz on July 14, 2008, 02:16:59 AM
Quote from: iago on July 13, 2008, 08:34:47 PM
Quote from: Dale on July 13, 2008, 08:13:00 PM
Kind of offtopic from this, but not too far but. It's been awhile since I've read about the Starcraft InGame drawing on screen, anyone here successfully accomplish it?
Nobody here, as far as I know.

Of course, I very easily could, but I never tried.


this is really easy. in fact, writing to the screen was always the first function i'd mess with, when writing hacks. i used to do this all the time for various hacks. it's very easy once you find the function, which is easy enough to find also.

as per to the winamp thing - i made on awhile ago, but i'm sure it doesn't work anymore. it was part of my starcraft chat modification hack thing, might be on http://rafm.org/. just injected code to handle specified /commands, and then execute my own linked libraries. very simple hack to make.
Title: Re: Starcraft & Winamp
Post by: Camel on July 14, 2008, 02:58:44 AM
Quote from: Hitmen on July 14, 2008, 01:26:06 AM
I hope you have no one else on your friends list. that would be a good way to get yourself ignored easy from me :)
Actually, I haven't used that method in years. I do occasionally use /f m to send commands to my ops bot, but when you consider that it's running on a computer that has no sound card, and is physically in another state, using it to control winamp seems pretty silly.

I use global hotkeys to control winamp; alt+ctrl+arrow keys.