Coder Social home page Coder Social logo

sourcecmd's Introduction

SourceCmd - ngb's version

NOTE: I AM NOT THE ORIGINAL AUTHOR OF SOURCECMD, CREDITS TO @RANNMANN/CRYZBL/CASUAL FOR CREATING IT.

I will try to preserve most of the original words here.

This tool allows you to run console commands in your favourite source engine game (without having to enter it in the console).

For now every time you execute a command the game's console will yell something about not being in the main thread, ignore that.

This works with clients in text-mode, but only grabs the first instance of the process, not all.

Both issues are not a major problem for me, but it seems that one is able to fix the second one.

Consider that I am coming from ISO C++ background I am still pretty new to MSVC++. Forgive me if there are any slow updates.

Full source code included. Released under GPLv3 http://www.gnu.org/licenses/gpl.html (As original repository)

Usage

Interactive Mode (only supports 1 instance at a time):

  • Launch your favourite source engine game.
  • Open SourceCmd.exe
  • Type the name of the game's executable (in the working list below) and press enter.
  • Type any console command you want.

Command line usage (will run in every process it finds):

SourceCmd.exe <process> <command>

Example:

SourceCmd.exe "hl2.exe" "echo Hello World!"

Confirmed working list:

  • CSGO (csgo.exe)
  • CS:S (hl2.exe)

Confirmed NOT* working list (will try to fix):

  • Garry's Mod (hl2.exe) - crashes a few seconds later after sending first command via SourceCmd

Q&A

Q: Why isn't Garry's Mod, TF2, in the working list? A: Since I don't own some games/do not have them installed due to saving space + no more playing it, I can't test almost every Source Engine games available even when it's on my Steam game library.

I will appreciate it if someone can report whenever if a game is working or not via issues.

sourcecmd's People

Contributors

lennypenny avatar rannmann avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.