azemetre / ShieldBattery

The modern way to play StarCraft 1.

Home Page:https://shieldbattery.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShieldBattery

The modern way to play StarCraft 1.

ShieldBattery is a custom server and launcher client for StarCraft: Remastered, adding many features and improvements while utilizing the real game client for gameplay. It is a community-run project under active development, with new features added all the time!

https://shieldbattery.net

Discord

The ShieldBattery developers frequent the Discord server at the link below, feel free to stop in with questions, comments, or just to hang out!

https://discord.gg/S8dfMx94a4

Developer setup

See our getting started guide for information on initial developer setup.

Developer workflow

Running the server

yarn run start-server

The server will automatically rebuild the necessary client JavaScript files as they change. If you make changes to the server files, you'll need to restart the server manually.

Running the standalone application

The standalone has two development components: a development server that rebuilds and hot-reloads client JavaScript files, and the Electron application itself (that loads and uses these files). Both must be running for things to work correctly.

To run the development server, use:

yarn run dev

To run the app, use:

yarn run app

This setup will automatically rebuild and reload for any client changes you make. If you make changes to things in the app folder, you'll need to close and restart the app (using the above command) for them to take effect.

Running multiple instances of the standalone application

To test the multiplayer aspect of the project, whether that's in the application or in an actual game, you can start multiple instances of the application with the different sessions by using the SB_SESSION environment variable. By default, the name of the session is simply session. So if you want to start an additional instance of the standalone application, you can set the environment variable SB_SESSION to anything other than the default name in a new console window. Eg., on Windows:

set SB_SESSION=session1

Note that ShieldBattery supports multiple instance of StarCraft running at the same time, so you can even start a game with two different accounts if you need to test something in the game.

Running the game

In order to actually run the game through the standalone application, you need to ensure that you successfully built the Rust code as explained in the getting started guide.

Project structure

The ShieldBattery project is broken down into four big pieces, located in these folders:

  • app: the standalone application.
  • client: all of the client-side code which is used by the standalone application and the website client
  • game: Rust code related to the game.
  • server: the server-side code including all the HTTP API handlers and WebSocket API handlers.

There are also some other important folders:

  • assets: contains source assets for our graphics
  • test: contains tests for various things (runnable with yarn test). Note that the server has its own tests, which are located inside of the server/test directory.
  • tools: contains third-party tools we use for building and maintaining various parts of the project, such as generating diffs to patch between game versions

License

MIT

About

The modern way to play StarCraft 1.

https://shieldbattery.net

License:MIT License


Languages

Language:TypeScript 64.0%Language:Rust 15.4%Language:JavaScript 15.2%Language:HTML 3.0%Language:C++ 1.7%Language:Shell 0.3%Language:Dockerfile 0.1%Language:Batchfile 0.1%Language:HLSL 0.1%Language:Pug 0.1%Language:Python 0.0%