Giter Club home page Giter Club logo

ellin's Introduction

Ellin

This is a fork of Ellin.

quickstart (localhost)

Find the external ip address of your docker host. If you are running on Windows, use ipconfig to find the WSL interface.

Obtain a localhost v62 client and modify 127.0.0.1 to redirect to the external ip address with a hex editor. Set the IP address of the server by editing conf/World.ini and setting GameServerIP.

Run the servers with the default testing settings.

docker-compose up

To create accounts and manage the database, use the adminer instance on localhost:8080. To add GM privileges, set gm to 5 in the character table.

After exiting docker-compose, remove any dangling services:

docker-compose down

The data for the server is persisted inside of a volume. To inspect the contents:

# this may change depending on the name of the parent directory
docker volume inspect ellin_ellin-volume

To delete all persisted data:

docker-compose down -v

formatting

The container will fail to build if the code is ill formatted. Use prettier to format all java and javscript code. Run the following command to check for errors:

mvn spotless:check

Run this command to apply formatting automatically:

mvn spotless:apply

If you do not have maven installed on your machine, you may start up a new container to mount your source.

docker-compose run --rm world bash
mvn spotless:apply

debugging

/usr/bin/env: ‘bash\r’: No such file or directory

To fix this, we need to remove Windows line endings.

docker-compose run --rm world bash
apt install dos2unix
dos2unix bin/*

Then rebuild using docker-compose build.

building code

To ensure that code is built every time you re-run the server:

# ensure the interface is down
docker-compose down
docker-compose build
docker-compose up

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.