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).
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.
If you've got a release, you can simply extract it and run with the following command: java -jar (jar name)
.
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)
.
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.