Giter VIP home page Giter VIP logo

saliensnake's Introduction

SalienSnake

A simple bot written on Python for the Steam 2018 summer sale.

Features:

  • priority search for bosses and battle with them
  • search for high-level zones on all planets;
  • maximize experience;
  • cross-platform;
  • work without a browser;
  • stable work (error handling and recovery);
  • multi-account support with threading;
  • getting a list of active planets;
  • specifying for output of Steam API response;

Requirements

Usage

python SalienSnake.py [--token <token>] [--file <filename with extension>] [--language <language>] [--list-planets] [--debug]
  • Modes:
  • -l, --list-planets - Print list with planet names and IDs
  • --language (default: english) - Language (english, russian, etc.)
  • -d, --debug (default: False) - Enable debug mode

Examples

Single account example:

python SalienSnake.py --token nizqvw1sd9d4gf2nwecrg5n26e1zl80l
python SalienSnake.py --token h0s07sgjfhzhe19fxri1cf9fofm8ubqv --list-planets

Multi-account example

Example of file with tokens:

nizqvw1sd9d4gf2nwecrg5n26e1zl80l
6ibdq3baf21w1xca1x5gtgx2iwez6mn1
h0s07sgjfhzhe19fxri1cf9fofm8ubqv

Example use:

python SalienSnake.py --file tokens.txt
python SalienSnake.py --file tokens.txt --language russian

Screenshot

SalienSnake screenshot

Useful links:

License

GNU General Public License v3.0

saliensnake's People

Contributors

darkkeks avatar marshalx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

saliensnake's Issues

error

INFO [09:59:26] Account #0: Used the restoration of health!
Exception in thread Account #29:
Traceback (most recent call last):
File "C:\Users\Takolp\AppData\Local\Programs\Python\Python36-32\lib\threading.py", line 916, in _bootstrap_i
nner
self.run()
File "SalienSnake.py", line 389, in run
Game(self).play()
File "SalienSnake.py", line 400, in play
self.start_boss_game()
File "SalienSnake.py", line 481, in start_boss_game
response = self.player.report_boss_damage(damage_done, damage_taken, used_healing)['response']
TypeError: 'NoneType' object is not subscriptable

When a zone is finished script becomes stuck in a loop

Looks like the script gets stuck in a loop when a zone completes:

WARNING [23:27:38] Account #0: I can't attack this zone. It's captured!
INFO [23:27:38] Commander: I check the accuracy of my information on zone 9
INFO [23:27:38] Information has become wrong! I give new data...
INFO [23:27:39] Commander: can't get planets with the complexity level of zones Difficulty.HIGH
WARNING [23:27:40] Account #0: I can't attack this zone. It's captured!
INFO [23:27:40] Commander: I check the accuracy of my information on zone 9
INFO [23:27:40] Information has become wrong! I give new data...
INFO [23:27:42] Commander: can't get planets with the complexity level of zones Difficulty.HIGH
WARNING [23:27:42] Account #0: I can't attack this zone. It's captured!
INFO [23:27:42] Commander: I check the accuracy of my information on zone 9

Error once level 25

After achieving level 25, it seems that it can not go any further. Output from console is this:

INFO  [19:50:52] Commander: I get the optimal planet and landing zone!
INFO  [19:50:54] Commander: can't get planets with the type of zones Type.boss
INFO  [19:50:54] Commander: All attack the planet 530, zone 27 (86%)!
INFO  [19:50:55] Thread 'Account #0' has started!
Exception in thread Account #0:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "SalienSnake.py", line 398, in run
    self.player['response']['next_level_score'],
KeyError: 'next_level_score'

Looks like the problem is that when you reach "max level" there is no next_level_score ... While I'm now maxed and don't care about leveling up anymore, it would be nice to get some exposure on planets to get entered into the drawings.

Also.. THANK YOU for making this. It was really helpful. Спасибо большое. 🙏 👍

Script's crash

Hi,just want to let you know about this issue.It's happens when script is working 5 minutes or more.
log.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.