Skip to content

airectx/cso2-master-server

 
 

Repository files navigation

cso2-master-server

Build Status

A master server for Nexon's Counter-Strike: Online 2 written in Typescript on top of NodeJS.

Used by this client launcher.

You can no longer use this by itself, see cso2-master-services for more information.

Starting the master server

Note: go to cso2-master-services for download and build scripts.

Note: You must have an user service and an inventory service running somewhere.

You can start the master server with:

# environment variables
export USERSERVICE_HOST=127.0.0.1 # the user service's host
export USERSERVICE_PORT=30100 # the user service's port
export INVSERVICE_HOST=127.0.0.1 # the inventory service's host
export INVSERVICE_PORT=30101 # the inventory service's port

# starts the master server
node dist/server.js

You must set those environment variables, or the service will not start.

By the default, the server will ask you which network interface to listen on.

See the command line arguments for more options.

Starting with docker-compose

Go to cso2-master-services to learn how to start the master server with docker-compose.

Command line arguments

Options:

  • -i, --ip-address [ip] (optional) The IP address to listen on (default: auto-detect)
  • -p, --port-master [port] (optional) The server's (TCP) port (default: 30001)
  • -P, --port-holepunch [port] (optional) The server's holepunch (UDP) port (default: 30002)
  • -l, --log-packets (optional) Log the incoming and outgoing packets

Contributing

Bug reports and pull requests are very much welcome.

See the current project's progress for more information.

Contributors

License

Read LICENSE for the project's license information.

I'm not affiliated with either Valve or Nexon, just like I don't own Counter-Strike Online 2.

About

A master server for CSO2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.7%
  • JavaScript 2.2%
  • Dockerfile 0.1%