Giter Club home page Giter Club logo

argonms-server's People

Contributors

geospiza-fortis avatar kevin-jin avatar raphaelwoude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

argonms-server's Issues

Allow for persistent database during server restarts in docker-compose

Stopping the server often calls docker-compose down, which will remove the database instance. Sometimes this is useful when the database schemas change. However, it'd be convenient to have a persistent volume, so characters can persist in the testing environment.

  • Update launch script to avoid database initialization if the tables already exist
  • Add a named volume to the docker-compose configuration
  • Update documentation to mention docker-compose down -v to drop the database state and reinitialize

Docker does not copy all required files on windows.

Starting the environment with docker on windows will not copy over all the required files, such as WZ, scripts and bin.
On linux on the otherhand, it does copy over all the required files. I have no idea why this is happening.

Setting `data.type` to `XML` causes NullPointerException

While running the game server and loading XML dumps of WZ files, the process exits unexpectedly.

game_1    | Oct 30, 2020 9:31:47 PM argonms.common.net.internal.RemoteCenterSession connect
game_1    | FINE: Connected to Center server at center/172.29.0.6:8383
game_1    | Oct 30, 2020 9:31:47 PM argonms.game.GameServer registerCenter
game_1    | INFO: Center server registered.
game_1    | Loading String data...[WARNING]
game_1    | java.lang.NullPointerException
game_1    |     at argonms.game.GameServer.initializeData (GameServer.java:259)
game_1    |     at argonms.game.GameServer.access$300 (GameServer.java:74)
game_1    |     at argonms.game.GameServer$1.run (GameServer.java:303)
game_1    |     at java.lang.Thread.run (Thread.java:748)

StringDataLoader.getInstance().loadAll();

This is because only MCDB and KVJ are supported data types for reading dumps.

public static void setInstance(DataFileType wzType, String wzPath) {
if (instance == null) {
switch (wzType) {
case KVJ:
instance = new KvjStringDataLoader(wzPath);
break;
case MCDB:
instance = new McdbStringDataLoader();
break;
}
}
}

This should be removed from the enum or documented clearly somewhere.

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.