AdiBorsos / AutoSteamworks

56 stars 36 forks source link

[Solved by https://github.com/Geobryn ]100% success #3

Closed Geobryn closed 4 years ago

Geobryn commented 4 years ago

for some reason the 2 0 1 sequence is switched with the 1 2 0 one so right after var orderBytes = BitConverter.GetBytes(actualSequence); in ExtractCorrectSequence method i put this abomination and i get 100% success

if (orderBytes[0] == 2 && orderBytes[1] == 0 && orderBytes[2] == 1)
{
    orderBytes[0] = 1;
    orderBytes[1] = 2;
    orderBytes[2] = 0;
}
else if (orderBytes[0] == 1 && orderBytes[1] == 2 && orderBytes[2] == 0)
{
    orderBytes[0] = 2;
    orderBytes[1] = 0;
    orderBytes[2] = 1;
}
AdiBorsos commented 4 years ago

Wow, really? So that is why it failed sometimes no matter how good my sync was. How did you figure this out?

Geobryn commented 4 years ago

well... was watching steamworks while having dinner and spotted the pattern :P then just tried crudely patch it in for lols and well...

AdiBorsos commented 4 years ago

Yea, i just tried it ... amazing man .. Great job. I just pushed the code ..