• Welcome to Valhalla Legends Archive.
 

Obtaining VerByte from Battle.snp

Started by Don Cullen, October 15, 2007, 04:03 PM

Previous topic - Next topic

Joe[x86]

Quote from: UserLoser on October 16, 2007, 02:12 PM
verbyte is held in executable, passed through one of battle.snp's exports

Quote from: devcode on October 15, 2007, 08:06 PM
It's too bad that most (*not all) people don't [show anything supporting] the validity of someone's findings
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

UserLoser

Quote from: Joex86] link=topic=17109.msg174883#msg174883 date=1195300292]
Quote from: UserLoser on October 16, 2007, 02:12 PM
verbyte is held in executable, passed through one of battle.snp's exports

Quote from: devcode on October 15, 2007, 08:06 PM
It's too bad that most (*not all) people don't [show anything supporting] the validity of someone's findings

?

Check SnpBind, I think that was it.  Whatever one passes over the big struct with addresses of most of the networking things

warz

No, I've seen it. I concur. It exists.

brew

Eh. Now that I think about it, I feel kind of stupid. Devcode, Kyro and I were all wrong. It IS stored in the executable (battle.snp didn't always change with a new patch, yet there was a verbyte change, and the verbyte is directly dependant on the executable's version). That'd make the most sense, anyways. Why do we care to have an actual algorithm for getting the verbyte, ffs, it seems like the pattern isn't going to change. I predict that starcraft's new verbyte after the patch is going to be 0xD3, then 0xD5, 0xD7, etc etc. Warcraft 3's is going to be 0x16, 0x17. DOES ANYONE SEE A PATTERN
Go ahead, waste your time finding a way to calculate the verbyte. I honestly don't care.
<3 Zorm
Quote[01:08:05 AM] <@Zorm> haha, me get pussy? don't kid yourself quik
Scio te esse, sed quid sumne? :P

Don Cullen

#19
Quote from: brew on November 18, 2007, 09:06 AM
Eh. Now that I think about it, I feel kind of stupid. Devcode, Kyro and I were all wrong. It IS stored in the executable.

http://forum.valhallalegends.com/index.php?topic=17116.0 shows the thread
http://www.bnetdocs.org/verbyte.html shows DevCode's code for getting the VerByte

Notice this specific part of the code:

int main( ) {
GetVersionByte( "C:\\Program Files\\starcraft\\Starcraft.exe" );
}


Brew, if you must troll, please do not drag me nor DevCode into it.

Enough said. Thread locked, as solution has already been found, and this thread is now degenerating into pointlessness. If anyone has come up with a better and more efficent solution, or would like to discuss more on this, they're welcome to post in DevCode's VerByte thead here:

http://forum.valhallalegends.com/index.php?topic=17116.0
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.