Git Product home page Git Product logo

steamgameautojoin's Introduction

SteamGameAutoJoin

Purpose

There are numerous problems with using JoinGame() and especially using setInterval scripts to call JoinGame(), mainly because JoinGame() will forcibly remove you from your current room every time it is called, whether you join a new room or not.

If you are using a setInterval script or simply spam the JoinGame command too quickly, such that you call JoinGame after you have successfully entered a room, you will leave the room and no longer be allowed to join the room you just left.

If you are in a room and trying to join another room using JoinGame, but the target room is full, too high a level, or one that you have previously quit and cannot enter, you will be forced out of your current room even though it's not even possible to enter the new one.

I have created a script that bypasses the JoinGame function and calls the ajax API directly, handling the error messages and only leaving your current room if you need to.

Features

Displays current room number on resume button.

Adds a text entry to the game lobby where you can type in the ID of the game you wish to join, then press the Auto Join Game button and let the script do its thing (stop at any time using the Stop button, of course)!

If there is an error that will not allow you into the game,it will be displayed as normal; otherwise, all errors are handled intelligently by the script and only show up in the console log.

Option to continue trying if the room is full. Will not leave your current room until there is room in your target.

If you are already in a room, you will not be forced to leave your current room if the target room is full, too high a level, or one you have previously quit (this is the only script that does this!).

New in version 3: Loop through multiple rooms at once (comma-separated list)!

Usage

Adds a text field and two buttons to the join game (lobby) page of the Steam minigame. Type the desired room number into the box and click "AutoJoin room."

NEW Type several room numbers, separated by commas (no spaces) and the script will loop through trying to join all of them at once! You can also type one room number, click the button, type another room number, click the button again, and so on, to run the script several times in parallel.

Script will continue to try joining the room and capture errors. Stops automatically when the room is full or if you cannot join for other reasons (too high level, or previously left the room). Click the stop button at any time to manually stop the script from running and enter a new room number.

TODO: Add autojoin buttons and room numbers on friends list TODO: Pull in known room numbers from various sources (steamga.me, MSG15, CMP2015, YOWH, etc)

steamgameautojoin's People

Contributors

geekahedron avatar handsomematt avatar rossmurray avatar

Watchers

James Cloos avatar Kurumi avatar

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.