Jump to content
McKay Development

kickPlayingSession


neverhood

Recommended Posts

Hello, I don't really know if I'm doing it right.

 

I have VPS (where I idle steam game hours) and I have 2 the same idle scripts on VPS (different IP) and on local PC.

Sometimes I need to run idle script on local PC without killing session on VPS, but I getting error: LoggedInElsewhere, and I can't login with local PC, so I decided to try kickPlayingSession.

 

using this script: click 

 

bot.setPersona(SteamUser.EPersonaState.Offline);
bot.kickPlayingSession((callback) => { console.log(callback) });
bot.gamesPlayed(this.games, true);
then I getting crash in my app with:

Error: Cannot kick other session
but orginal session getting error too: LoggedInElsewhere, but its not crashing

 

can you please help me what I'm doing wrong here.

Edited by neverhood
Link to comment
Share on other sites

I'm using this code on local script now (VPS session is running with diff IP):

 

bot.setPersona(SteamUser.EPersonaState.Offline);
bot.gamesPlayed(this.games, true);
but I'm still getting error on local PC with 'LoggedInElsewhere' and VPS session is untouched, what should I do if I want to kick VPS session during launching my idle scrip on local PC?

 

 

I edited something for test and force is undefined in console log

 

SteamUser.prototype.gamesPlayed = function(apps, force) {
	if (!(apps instanceof Array)) {
		apps = [apps];
	}

	var self = this;
	if (this._playingBlocked && force) {
		this.kickPlayingSession(doTheThing);
	} else {
		doTheThing();
	}
	
console.log(apps);
console.log(force);


	function doTheThing() {
		self._send(SteamUser.EMsg.ClientGamesPlayed, apps.map(function(app) {
			if (typeof app === 'string') {
				return {
					"game_id": "15190414816125648896",
					"game_extra_info": app
				};
			}

			if (typeof app === 'object') {
				return app;
			}

			return {"game_id": app};
		}));
	}
};
Edited by neverhood
Link to comment
Share on other sites

if u want ur scripts stop playing game, u can use this code 

client.gamesPlayed([])

and then u can let another scripts playing the game.

 

u can let two or more scripts login one account at the same time,buy only one scripts can playing game

Edited by venfiw
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...