Error during connection try
githubshiel opened this issue · 3 comments
githubshiel commented
quer commented
Hey! it a thing whit node steam. but i think you can find what you need here:
seishun/node-steam#344
quer commented
where you need to
steamUser.on('updateMachineAuth', function(sentry, callback) {
console.log('writing to file sentry');
fs.writeFileSync('sentry', sentry.bytes);
callback({ sha_file: getSHA1(sentry.bytes) });
});
function getSHA1(bytes) {
var shasum = crypto.createHash('sha1');
shasum.end(bytes);
return shasum.read();
}
and edit part of the code to this:
steamClient.on('connected', function() {
steamUser.logOn({
account_name: '[redacted]',
password: '[redacted]',
// un-comment this when providing secondary auth-code from email
// auth_code: '[redacted]',
sha_sentryfile: getSHA1(fs.readFileSync('sentry'))
});
});
it a bit hard to eksplain, but hope the like on to eksplains it.
githubshiel commented
Sorry Sir, I'm not dealing so good with coding :/
I have tried to change some code, like you wrote above, but without success.
Is there any other way to fix it?