/GameServer

Open-Source implementation of the GameServer of Panfu.

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

OpenPanfu GameServer

About

Panfu is made out of two components: an InformationServer (emulated with InformationServer) and a GameServer.

The InformationServer is more for Database tasks and tasks that the other users don't have to know about (Login, Register, inventory), while the GameServer is for multiplayer interactions in the game (moving, actions and multiplayer games like 4boom and hotboom).

Installation

You need to have the InformationServer up and running with the database configured and all. Then, change the details in GameServer.properties to match the database settings that the InformationServer is running on.

Running the GameServer

If you've got a release, you can simply extract it and run with the following command: java -jar (jar name).

Compiling the GameServer

To compile the jar, you need Maven. After you've installed it and confirmed you can run mvn -v, run mvn clean compile package

A jar file will appear in the target directory, now copy it and GameServer.properties to a directory and run java -jar (jar name).

Adding a new GS to the InformationServer

In your database, there's a table called gameservers. Add new entries for the gameservers you want to host.

All entries in that table will be hosted from this server.