meepen / salien-bot Goto Github PK
View Code? Open in Web Editor NEWSteam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
License: MIT License
Steam Summer Sale 2018 "Salien" minigame bot - runs in console or browser
License: MIT License
CEnemy.prototype.Walk = function(){ this.Damage(1000);}
CEnemyManager.prototype.BuildEnemy = function(){};
Uncaught TypeError: enemy.m_Sprite.click is not a function
at ClickAttack.attack (userscript.html?id=:285)
Running version: v24 (normal mode -> i.e., non-headless), ViolentMonkey
Script stopped working.
See in the FireFox developer console (error):
Error running script: Saliens bot
TypeError: SERVER is null
SERVER is null
I'm getting "Game Error: There was an error loading required game content. Your game will be restarted." at the end of every 2min game because its selecting a tile to quickly after clicking play and not showing the error until the end of the game, if I wait 1 or 2 seconds before selecting a tile after clicking play I dont get the error at the the begining of the game or the end.
Hello, I have a slow internet connexion, it's need time to send my score to the server, so please put a delay before to close the score windows, thank you
gets stuck at the main menu and sometimes in title select
needs to be named *.user.js
for Tampermonkey etc. to recognize it as a script for it.
Also setting up updating tags for it would be ๐ฏ
// @downloadURL https://raw.githubusercontent.com/meepen/salien-bot/master/salien-bot.user.js
// @updateURL https://raw.githubusercontent.com/meepen/salien-bot/master/salien-bot.user.js
I've been running the script for a while with tampermonkey but it seems like each time the level is completed the script refreshes before submitting the score, so it never counts the game. I've left it for a couple hours and it didn't go through a single game since my level is the same. Any solutions to this?
I'm running it on chrome
it just finishes the game I'm on and I have to manually go to the next game
Note sure if it's intended, but it seems to be selecting next available square instead of the one you previously played on. Makes it difficult to organize with a group if everyone just defaults back to a non desirable square.
C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan>node headless.js
Running for: 10144 seconds
Current level: 8 (370290 / 450000)
Exp since start: 115200
Estimated exp/hr: 75130
Current planet: Behind the Screen Planet [41.03%] (id 6)
Current zone: (2, 6) (id: 74) difficulty: medium
Round time left: -153 seconds
Next level up: 2018-6-23 16:47:26
failed url https://community.steam-api.com/IMiniGameService/LeaveGame/v0001/, retrying 2
C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan\headless\jquery_node.js:70
ajax_object.nosucc();
^
TypeError: ajax_object.nosucc is not a function
at Request.response [as _callback] (C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan\headless\jquery_node.js:70:29)
at self.callback (C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan\node_modules\request\request.js:185:22)
at Request.emit (events.js:180:13)
at ClientRequest. (C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan\node_modules\request\request.js:815:16)
at Object.onceWrapper (events.js:272:13)
at ClientRequest.emit (events.js:180:13)
at TLSSocket.emitTimeout (_http_client.js:703:34)
at Object.onceWrapper (events.js:272:13)
at TLSSocket.emit (events.js:180:13)
at TLSSocket.Socket._onTimeout (net.js:396:8)
C:\Users\Administrator\Desktop\salien-bot-master - vijay deena nath chauhan>
Hello Sir! Sometimes game loop interrupts after the finish of a round with this error:
Uncaught TypeError: Cannot read property 'click' of undefined at setTimeout (<anonymous>:362:55)
Game indicates an error, game reloads and I have to insert the script into the console again.
Don't know the cause, but it wasn't changing anything until I fully uninstalled it and reinstalled it. Just posting this so people will see before leaving an issue report.
Also thanks Meepen, for keep this up to date so fast and making it so well :)
When you are starting anew, the bot performs very badly as the default skill 1
does overshoot enemies almost all the time.
This is especially noticeable when you are on hard and enemies are walking very fast it barely hits them.
CCooldownHandler.prototype.BAttack = function() { return true; }
This works fine and would make the Bot even better!
Firefox 60.0.2
Tampermonkey 4.7.5788
Absolutely no in-game actions before script installing (dont know if it matters).
Install script.
Go to https://steamcommunity.com/saliengame/play/
The game starts loading like it was "Play" button clicked, and simultaneously the whole page in browser is reloading.
You should change the selection to not be one with highest progress but start with high difficulty maximum progress and work your way down. That way, people can maximize the experience gain.
If the player presses "leave planet" and the uses the headless NodeJS bot, the bot seems to hang and never start.
Is it meant to select the planet with the highest count of "High" thread tiles?
In my F12 -> Network tab, I can't find gettoken anywhere. I've attempted this with Chrome and Microsoft Edge. Anyone have any tips? I'd love to use the headless version.
I don't know what information you need, logs etc. Just let me know and I can get you it :)
Also tampermonkey on google chrome
Is there a way i can find the ID of a specific tile and then be able to repeatedly farm that tile?
helo good sir im valve emplooye can you delet this pls thank you sir
Any reason why some users are not getting XP at all after running the script for some time?
Are automatic docker images already available?
If not, I would ask for setting this.
Bot clicks play, but is then refreshed back to the start screen
Hello!
Thank you for awesome script - I was actually just thinking about coding something similar but discovered your work and so I will look for the ways to contribute.
But there are some things that I think should be considered first - I remember when we did something similar few years back with Golden Helm minigame - no one cared, Valve even somewhat supported botting (I know some of Valve employees actually participated in scripting). Did anyone collected Valve's take on this now? Are they still OK with it? Or are users using the script potentially put in danger?
Thank you, if you find the time to reply, I am looking forward to it.
Im trying to coordinate with a group and I cant see what tile im currently fighting on. Maybe an option to turn off auto select tile? Thanks
I'm in levelling mode, console says difficulty is 3 but I am in a medium zone.
04:10:03.438 Lv: 7 165535 / 180000
04:10:03.439 join to zone 91
04:10:56.837 gGame.m_State.m_Grid.m_Tiles
04:10:56.841 VM18071:1 Uncaught TypeError: Cannot read property 'm_Tiles' of undefined
at :1:22
(anonymous) @ VM18071:1
04:12:12.885 continued!
04:12:13.179 Pirates Planet zone 34 (10, 2) progress: 0.18986579775810242 difficulty: 2
04:12:13.180 Lv: 7 165535 / 180000
04:12:13.181 join to zone 34
04:14:22.726 continued!
04:14:23.085 Pirates Planet zone 58 (10, 4) progress: 0.19264115393161774 difficulty: 2
04:14:23.087 Lv: 7 167875 / 180000
maybe it's server-side bug
maybe we doing something wrong
After game it says "failed to load your score" or something like that, so i got no xp and didnt get progress for that "tile" and it restarts after that
let me out....
use this CEnemy.prototype.Walk = function(){this.Die(true);};
So I've been testing this in my main account and it's working flawless but when I tried to use it in my friends account I'm seeing that he didn't gain a single XP for 15 mins already.
What I can conclude is that the bot is trying to play hard missions from the start which is not right for a low lvl account or let's say a 1 lvl account. Also if this bot works just like the script where it only uses powers and not the gun then it won't work at all. Cause powers are locked and it's a 1 lvl account.
Please have a look at this. I guess we need to do a headstart before putting our accounts into this bot.
Bot refreshed page then got this error and did nothing
TypeError: this.SetBodyType is not a function
at eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:22)
at Window.eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:27)
at <anonymous>:2:491
at eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:2)
at eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:3)
at Object.eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:353)
at eval (userscript.html?id=f427dd6f-22cb-4b65-99ad-3202f248fdbb:355)
at eval (<anonymous>)
at <anonymous>:2:491
at Object.b [as F_c] (<anonymous>:1:409)
When the game gets an error and has to restart, or if you manually refresh the page, or otherwise return to the title screen, the script chooses a planet on its own (in this case, the Pirate Planet).
However, if I disable Tampermonkey, then refresh and click Play manually, the game automatically loads my chosen planet properly (eg. Dark Humor Planet). Enabling the script at this point starts a battle on the proper planet and all is well.
I'm not even sure how this happens, since there isn't even an opportunity for me to choose the planet manually unless I specifically quit out of the planet I'm already on first. The script shouldn't be adding extraneous steps.
I'm level 6 and the script automatically sends me into an Easy map.
I even entered window.localStorage.forceLevellingMode = true
into my console and it still is selecting Easy tiles.
I don't know what to do, I installed the script, I open the mini game but nothing happens, also when I'm joining a game, the script is not working
Don't know why, but it's not clicking on enemys,just shooting with "1" button. what could be wrong?
Please make a choice of planets manually. A choice of level hard as "if there is hard->do hard,else if there is medium do medium,else low"
And organize the attack, as in this script, and then the drawing of each model loads my old PC.
https://pastebin.com/1LkRyKVc
Since the script prioritizes a square with high progress, it can happen that sometimes you are playing it, and said square gets captured mid-game, if that happens the game cant "report the score" and a "restart the game" pops up.
Running tampermonkey, installed script and went to https://steamcommunity.com/saliengame/play/
. Every time the page loads it throws the error There was an error loading required game content. Your game will be restarted.
and if I click on OK
page reloads and then throws the error once. This seems to be on a continuous loop as it always seems to throw the error everytime the page loads.
There's a tiny problem with the current build that's only an issue when you're focusing on leveling up.
Since the code focuses on selecting planets with the highest progress, you end up on worlds where all the high threat (and eventually the middle threat) tiles have been used up, while planets that still have those tiles available are still available.
I messed around with the GetBestPlanet function, so that it selected the planet with the lowest progress. Here's what I did:
`
const GetBestPlanet = function GetBestPlanet() {
let bestPlanet;
let worstPlanet;
let maxProgress = 0;
let worstProgress = Number.MAX_VALUE;
if (!GAME.m_State.m_mapPlanets)
return;
for (let planetKV of GAME.m_State.m_mapPlanets) {
let planet = planetKV[1];
if(planet.state.active && !planet.state.captured && planet.state.capture_progress > maxProgress) {
maxProgress = planet.state.capture_progress;
bestPlanet = planet;
}
if(planet.state.capture_progress < worstProgress) {
worstProgress = planet.state.capture_progress;
worstPlanet = planet;
}
}
if (worstPlanet) {
console.log(`selecting planet ${worstPlanet.state.name} with progress: ${worstPlanet.state.capture_progress}`);
return worstPlanet.id;
}
/*if(bestPlanet) {
console.log(`selecting planet ${bestPlanet.state.name} with progress: ${bestPlanet.state.capture_progress}`);
return bestPlanet.id;
}*/
}
`
This works for me as the bot is now selecting the least progressed planet.
I'm wondering now if this should be added, where the bot priorities low progress planets, while player is still leveling up.
CEnemyManager.prototype.BuildEnemy = function(){};
Confirmed that the game goes past level 9. Should update to not look at level <9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.