seishun / node-steam

Interface directly with Steam servers from Node.js
MIT License
1k stars 181 forks source link

issue with logging in #173

Closed bogdanakh closed 9 years ago

bogdanakh commented 9 years ago

so i got an jackpot site and i got some issue i need to fix i got the bot but i don't know to how edit the config for it to connect to mysql

var admin = 'id for bot';

var logOnOptions = { accountName: 'id', password: 'pw' }; var GameTime = 120;

////

var authCode = 'КОД СТИМГУАРДА';

var globalSessionID;

if (require('fs').existsSync('sentry'+logOnOptions['accountName']+'.hash')) { logOnOptions['shaSentryfile'] = require('fs').readFileSync('sentry'+logOnOptions['accountName']+'.hash'); } else if (authCode != '') { logOnOptions['authCode'] = authCode; }

var sitename;

sitename = "site link"; var Steam = require('steam'); var SteamTradeOffers = require('steam-tradeoffers'); var mysql = require('mysql'); var request = require("request"); var steamuserinfo = require('steam-userinfo');

steamuserinfo.setup("AF7F2B96A5F996273A91F93BE8D3DDD5");

var mysqlInfo; mysqlInfo = { host : 'Хост базы дынных ', user : 'Пользователь БД', password : 'Пароль БД', database : 'Имя базы', charset : 'utf8_general_ci' };

And also i need to edit

ssfntosentry file and i have no idea what to do

jabbink commented 9 years ago

Read here about how to login

Then Google how to use MySQL with Node.js

bogdanakh commented 9 years ago

I read that and still didn't understand.

jabbink commented 9 years ago

In short: these GitHub Issues pages are no place to ask for programming help.

How to login is explained very well here (I got it working the first try with the help of the README).

The MySQL thing even has nothing to do with this so it's completely in the wrong place.

bogdanakh commented 9 years ago

i keep getting this error each time i want to login C:\Users\Bogdan\Desktop\gege>node tradebot.js connected encrypt request handshake complete logon fail: 65, sessionID: 1782791 events.js:85 throw er; // Unhandled 'error' event ^ Error: Logon fail: 65 at SteamClient.handlers.(anonymous function) (C:\Users\Bogdan\Desktop\gege\n ode_modules\steam\lib\handlers\user.js:178:11) at SteamClient._netMsgReceived (C:\Users\Bogdan\Desktop\gege\node_modules\st eam\lib\steam_client.js:106:26) at SteamClient.handlers.(anonymous function) (C:\Users\Bogdan\Desktop\gege\n ode_modules\steam\lib\steam_client.js:192:10) at SteamClient._netMsgReceived (C:\Users\Bogdan\Desktop\gege\node_modules\st eam\lib\steam_client.js:106:26) at Connection.emit (events.js:107:17) at Connection._readPacket (C:\Users\Bogdan\Desktop\gege\nodemodules\steam\l ib\connection.js:50:8) at Connection.emit (events.js:104:17) at emitReadable (_stream_readable.js:424:10) at emitReadable (_stream_readable.js:418:7) at readableAddChunk (_stream_readable.js:174:11)

C:\Users\Bogdan\Desktop\gege>pause Press any key to continue . . .

jabbink commented 9 years ago

Login error 65 afaik means your Steam Guard code is incorrect.

(63 means no code is provided)

bogdanakh commented 9 years ago

I need to login trough .hash if i don't want steamguard but what do i rename my hash to? username to my steamid? sentry_steamid.hash

bogdanakh commented 9 years ago

I didn't get any guard code on my email.

jabbink commented 9 years ago

Is Steam Guard enabled on that account?

bogdanakh commented 9 years ago

yes

bogdanakh commented 9 years ago

i need to have it disabled?

jabbink commented 9 years ago

If you disable it, you won't be able to trade. If it is activated you should get the code in your email. If you don't: again, this is the wrong place and you should contact Steam Support.

bogdanakh commented 9 years ago

node import-ssfn.js bogdanholben C:\Users\Bogdan\Desktop\gege\ssfn\ssfn2445454598091469817

pause

bogdanakh commented 9 years ago

sentry_bogdanholben.hash is the folders name is it wrong or? i need help jabbink to login its so close.

jabbink commented 9 years ago

I am not familiar with the import-ssfn.js (no idea if it is even from this repo).

The last time I set up accounts with node-steam I just logged in with a new/no sentry file and authorized it as a new device (con: you can't trade for 7 days).

seishun commented 9 years ago

What @jabbink said

In short: these GitHub Issues pages are no place to ask for programming help.