So? Nobody took a look at this? As far as I know the author of this thread tried to find the values for 1 hour, but didn't and then never looked at it again. Not sure whether it's possible or not.
Yeah a couple of people have directed me here recently.
The first thing I noticed is that this:
What Warlat does is write the following memory:
0x47862E - 0x90, 0x49, 0x90, 0x90
0x478632 - 0x89, 0x90, 0x90, 0x90
Each set of 4 bytes is listed in reverse order, I assume because the OP did not understand the byte arrangement of dwords.
The bytes are consecutive so it actually writes:
0x47862E: 0x90, 0x90, 0x49, 0x90, 0x90, 0x90, 0x90, 0x89
the 0x89 at the end is actually just the existing valu that is already there, so its just:
0x47862E: 0x90, 0x90, 0x49, 0x90, 0x90, 0x90, 0x90
and the 0x49 is a DEC ECX
the rest are just NOP (no operation) instructions which just remove these 2 instructions:
0047862E jbe short loc_47863B
00478630 mov ecx, 2
the DEC ECX is just a single byte opcode and there are no branch targets in the overwritten section so it can actually be at any point in the string of 0x90s, but if you included the 0x89 where it was originally listed you would definitely get a crash.
0042111C MOV AL, BYTE PTR [EAX+4AE7EC]
0042111C MOV AL, 1
And you have no delay at all on bnet
Nice one, I never actually got around to looking for this bit.
The byte array at 0x4AE7EC has the granularity for the different game modes/speeds (3,4,4,5,6,7,9,12,19)
replacing at 0x42111C with:
Will force the 1 value. This is actually a MOV EAX,1
Not that it really matters, but this is slightly faster than explicitly setting the AL register and means there is only one NOP instruction. The rest of eax is already zeroed by the proc at 0x4204D0 anyway.
If you didn't want to mess with the instructions ou could set values in the granularity array, but that works just as well.
That's if we want to use 1 ... might cause lag, but whatever value is desired it can be set in the second byte of the patch (currently 0x01).
Its weird I sent this to lambchops a few weeks back and all of the sudden there is activity in this thread......
Yeah ikr? Someone else just tagged me here and sent it to me on discord... cosmic.
Anyway if anyone wants to try it, just put the attached file in the plugin folder. It even makes the log on menus faster. Seems to work great, but we might have to dial it back a bit if there's lag in big games.