Jump to content
Heads Up! This website is no longer maintained, if your a member from our era, consider joining the discord to say hello.
Sign in to follow this  

Selection Hack

Recommended Posts

Well, earlier today I was reading the hack poll on BWHacks. Which hack is better? A Selection hack or a multicommand? And I got intrigued at a selection hack. Zynastor and Titan said that it really wasn't THAT hard to make one. So I began tinkering with Starcraft seeing what I could find out with a little bit of olly debug. And so far, this little screeny is as far as I've come.

 

Progress!.png

 

Hopefully I'll soon be able to make the units actually do something XD

 

So far it will keep everything selected as selected, but it won't actually be able to issue orders. It only appears to be selected. There is another offset that lets you change the first unit in the units selected queue, but that's all I've found so far. The other offsets I've found only make Starcraft think it's selected only 1 unit.

 

And something else that is really kewl that I found! ^^

HealthBars.png

Share this post


Link to post

Issuecommand? Secletunit.? i think that might can help or either your not done with the offsets. phish idk ill check

Share this post


Link to post

very nice viper. A maphack is rather simple too. I was talking to [email protected] (who I later found out was Doobers, he is a cool guy) and he told me a maphack was 10 lines of code, If that. Once you find the right offsets, its a peice of cake.

Share this post


Link to post

He isnt even done and did you read what he said..?

Share this post


Link to post

A maphack is fairly simple. Here's some sample code I had saved from someone a while ago.

/*!----------------------------------------------
Function: IsObjectVisible
Description: Checks if an object on the map
is visible to us.
----------------------------------------------!*/
void __declspec( naked ) IsObjectVisible( ) {
SAVEREGS;

__asm {
	 /* Check if object is hidden */
	 test dword ptr ds:[0x57F094], eax
	 /* If not hidden, then we're already going to draw it, so
		 we're done here */
	 jnz Done
	 /* If hidden, then we don't want to let SC know
		 that we're drawing more units than required,
		 so decrease the number of units drawn since this number
		 gets increased in the draw function */
	 dec dword ptr ds:[0x59C2A0]
  }	  
Done:
LOADREGS;
RETURN;
}

/* Patch for enemy units/buildings on minimap */
JmpCallPatch( 0x4A4533, (DWORD)&IsObjectVisible, 0xE8, 3 /* NOP BYTES */ );

/* Patch for resources (ie. mineral patches, vespene) */
JmpCallPatch( 0x4A43DB, (DWORD)&IsObjectVisible, 0xE8, 3 );

 

Watch FaH go nuts over that one.

Share this post


Link to post

If you can make a selection hack, I will worship you.

 

I love selection hacks so much more than multicommands...I don't know why, just do.

Share this post


Link to post

Why do people compare selection hacks to multi-commands, they're completely different... One allows you to mass, the other shows you what other people have selected.

Share this post


Link to post

selection hacks - lets you select more than 12 units

multi command - sends identical orders to all units of the same type

show selects - shows you what other people have selected

Share this post


Link to post

I Have a selectionhack but there is noway im updateing it

Share this post


Link to post

Why? Because you're not good enough to update it? xD

Share this post


Link to post

meh, give ProMasser a break. Not very many 10 year olds can do what he does.

 

Viper: nice code, Ive got the maphack/minmap patch working, it just gives you a lose :) I have no idea how the warden crap works.

Share this post


Link to post

n0.obatron heres the offset for maphack to dont cause loses

 

- 0x497FC0 (maphack )

- 0x49C34D (maphack )

- 0x4A3007 (Null lag box timer)

Those offsets are by zyanstor no maphack should cause a lose now..

Share this post


Link to post

ProMasser how come you wont update it?

Share this post


Link to post

No, I don't make hacks, I don't know shit about reading or making them. Just you saying that is enough though, I guess.

Share this post


Link to post

ill update it:)

 

D:

 

if i knew how:)

Share this post


Link to post

FaH you forgot to parrot my other offset: 004972E3

Share this post


Link to post

Ahh, cool. You gotta show me how you got it to select more then 12 at a time.

Or is it fake? =P

 

And did you get the box drawing to work?

Share this post


Link to post
Ahh, cool. You gotta show me how you got it to select more then 12 at a time.

Or is it fake? =P

 

And did you get the box drawing to work?

 

It is very real. Rather simple, but ALOT of code if your doing it in Masm. Not as much if done in C++ (about 2/3)

 

I am still having problems with anything related to the GUI; writing to the screen, drawing boxes, etc.

Share this post


Link to post

You gotta show me how you got it to show the circle's/health bars for more then 12 at a time. V.V

I can deal with the massive amount of coding, just need to get it to show the circles/health bars when you drag click the units. -.-'

 

You scratch my back, I scratch yours? =O

Share this post


Link to post

If all you need is the health bar drawing, take a look at the offsets thread. Viper posted some good information w/ health bar related offsets

Share this post


Link to post

:( I wish I knew some asm so I could help everyone out around here. Reading tuts/papers on it is too hard for me considering I don't have the attention span it gets too boring. Any alternate method?

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×