Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.27 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.27 KB

Alloverse Placeserv

Server component of Alloverse. Basically a multiplayer game server, but for window manager-y things.

Setup

  • git submodule update --init --recursive
  • cd marketplace && ./bootstrap.sh

then...

macOS

  • brew install asdf version manager for a bunch or languages. See https://asdf-vm.com/#/core-manage-asdf for more setup instructions
  • asdf plugin add erlang && asdf plugin add elixir
  • asdf install erlang 22.3 && asdf install elixir 1.9
  • export CPATH=~/.asdf/installs/erlang/22.3//usr/include for erlang headers
  • mix deps.get

Ubuntu (including Ubuntu-on-Windows)

  • wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
  • sudo dpkg -i erlang-solutions_1.0_all.deb; rm erlang-solutions_1.0_all.deb
  • sudo apt-get update
  • sudo apt-get install esl-erlang
  • sudo apt-get install elixir cmake clang openssl
  • mix deps.get

Run

  • mix run --no-halt

Docker

  • docker build -t alloplace .
  • ALLOPLACE_NAME="lol" docker run -p 21337:21337/udp -it alloplace

Adding a bundled app

  1. Add submodule: git submodule add <repo url> alloapp/<name>
  2. Add to whitelist in placeentity.ex:206 - or appname = "<name>"
  3. Add assist fetch to Dockerfile: RUN cd alloapps/<name>; ./allo/assist fetch