• Welcome to Valhalla Legends Archive.
 

project fesibility

Started by thetempest, December 03, 2003, 10:37 PM

Previous topic - Next topic

thetempest

Hey,

This if for all you diehard SC fans.  I'm instrested in creating a hack to mimick the Warc3 Map ping.  Now, only the people that use this hack/plugin whatever, will be able to see the ping.

I would have to create a protocol:
byte: color
bye: playerIDNumber
DWORD: XCORD
DWORD: YCORD

as well as a function to draw a circle on the minimap, which would require low level bitblits and the address of the SC back/primary buffer.

Is there anything else that i missed? and is anyone else intrested in this?

Thanks

Skywing

I think it would be a better idea to use the built-in minimap ping function.

thetempest

good idea, i forgot about the square box ping :)

i'll look into that

Banana fanna fo fanna

You'd need to figure out how to CALL the minimap ping. Then you'd have to figure out how to hook the mouse to access. Finally, you'd need a reliable but UDP-based protocol which can grab the addresses of the players out of StarCraft's memory.

Skywing

Quote from: St0rm.iD on December 04, 2003, 02:24 PM
You'd need to figure out how to CALL the minimap ping. Then you'd have to figure out how to hook the mouse to access. Finally, you'd need a reliable but UDP-based protocol which can grab the addresses of the players out of StarCraft's memory.
I think the idea is to extend the in-game protocol itself.

Banana fanna fo fanna

Quote from: Skywing on December 04, 2003, 03:07 PM
Quote from: St0rm.iD on December 04, 2003, 02:24 PM
You'd need to figure out how to CALL the minimap ping. Then you'd have to figure out how to hook the mouse to access. Finally, you'd need a reliable but UDP-based protocol which can grab the addresses of the players out of StarCraft's memory.
I think the idea is to extend the in-game protocol itself.

Extremely difficult.

Kp

Quote from: St0rm.iD on December 04, 2003, 03:18 PM
Quote from: Skywing on December 04, 2003, 03:07 PMI think the idea is to extend the in-game protocol itself.
Extremely difficult.

Not at all.  Extensions to the in-game protocol came up as a possible development in vL more than a year ago, but I don't believe we ever had time to do much with it.  It's very possible, and pretty easy if you know how to add data to the outbound stream.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Banana fanna fo fanna

What if the other end doesn't run it?

Does SC just ignore packets with an ID it can't handle?

Kp

Quote from: St0rm.iD on December 04, 2003, 05:04 PM
What if the other end doesn't run it?

Then why would you send it if they don't recognize it?
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

thetempest

no,

the idea is that only people who had the hack running would recognize it.

yes storm.ID, starcraft just ignores packets it doesn't understand...

most recv() blocks for games look like this:


GENERAL_PACKET  *gen_packet;
while(recv)
{
     recv = recv(socket,address,len);
     gen_packet = (GENERAL_PACKET*) address

     switch(gen_packet->packetID)
     {
           default:
           break;
     }

}