Giter VIP home page Giter VIP logo

wihd's Introduction

WIHD v 0.1.2 Build Status

War in Hex daemon is a Online multipler server written in Erlang.

Great performance and uptime even on a Raspberry Pi 2.

Under GPLv3

There are other versions which are will not be as supported. Rust version.

Running

I recommend running it in screen with the shell open but most people will probably just want to run it with noshell.

$ erl -pa ebin/ -noshell -s wihd start

Compiling

Either compile from command line

$ erlc src/wihd.erl

Or run in shell

$ erl
$ c(wihd).
$ wihd:start().

Usage

To connect to the server make sure the server port is accessible (1664 by default) and connect with the War in Hex client like so

$ python main.py -n SERVER_IP:SERVER_PORT -g GAME_NAME

To start a lobby or connect to one called GAME_NAME.

You can ommit the -g flag and GAME_NAME to connect to the "Any" lobby.

Specification

A TCP connection is made to the server and then the client sends the GAME_NAME (which is sent as a quoted string) this is stored by the server. If there is no already existing client connected with that GAME_NAME a lobby is created.

If there is an already existing lobby then a relay connection is made between the sockets.

Changelog

  • 2018-02-21 - v0.1.1
  • Fix: Linker does not close lobbies
  • 2018-02-02 - v0.1.0
  • First working version

wihd's People

Contributors

ali-raheem avatar

Watchers

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