Jetserver

Jetserver 是使用 Netty 和 Mike Rettig 的 Jetlang 编写的基于高速 nio 套接字的多人 Java 游戏服务器,专门针对基于网络的多人游戏进行了调整,并支持 TCP 和 UDP 网络协议。「Jetserver is a high speed nio socket based multiplayer java game server written using Netty and Mike Rettig's Jetlang.It is specifically tuned for network based multiplayer games and supports TCP and UDP network protocols.」

  • 所有者: menacher/java-game-server
  • 平台: BSD, Cross-platform, Linux, Mac, Solaris, Unix-like, Windows
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

请注意:Jetserver 的新版本称为 Nadron,并且在同一仓库的新 netty 4 分支 中。

JetServer 是一个基于 Java Nio 的服务器,专门为 mutliplayer 游戏设计。 它支持 UDP 和 TCP 传输。 它使用 Netty 进行高速网络传输,并使用 Jetlang 进行玩家会话和游戏室之间的超快速虚拟机内消息传递。 该项目还使用 spring 进行依赖注入。 这样,它是高度可配置的,您可以用自己的实现换出服务器的任何部分。

Wiki

wiki 提供了实现级别的详细信息,并回答了开始使用 jetserver 的开发人员可能对此的一般性问题。 以下博客发布了有关游戏创作的文章。

支援团队

进行一般性讨论时,请使用 jetserver Google 组。 问题和错误可以直接在 github 中提出。

安装

Maven

<dependency>
    <groupId>com.github.menacher</groupId>
    <artifactId>nadron</artifactId>
    <version>0.5</version>
</dependency>

从源代码

使用预建的jar文件

该项目的预构建 jar 文件位于 jetserver/binaries 目录中。所有相关的 jar 都位于 jetserver/lib 目录中。您可以将它们添加到您最喜欢的 IDE 的类路径中进行编码。

如果要从源代码进行编译,请执行以下步骤。

使用Maven并使用Eclipse

先决条件:请安装 maven 3+ 和 Spring 源工具套件或 Eclipse。如果您使用普通的 eclipse,那么 M2Eclipse 和 EGit 插件(虽然不是必需的)将很有帮助。使用另一个 IDE 时,应该修改 pom.xml 的 maven-eclipse 插件部分。

步骤

  1. git clone git@github.com:menacher/java-game-server.git
  2. cd java-game-server
  3. cd jetserver
  4. mvn eclipse:eclipse -- 第一次需要花些需要时间! 如果要减少此时间,请从 maven pom.xml eclipse 插件部分中注释掉 include sources/jars 选项。
  5. eclipse -> file -> import -> git -> select repository and import jetserver project.
  6. jetserver project in eclipse -> right click on pom.xml -> run as -> maven test -- 第一次需要花些时间!

如果一切正常,您应该会看到一些测试用例成功执行!

使用 ant

如果您使用的是 ant,则 jetserver 项目中的 lib 文件夹包含所有相关的库。只需右键单击并运行 ant build,它将创建 jetserver jar。

编码愉快!

主要指標

概覽
名稱與所有者menacher/java-game-server
主編程語言Java
編程語言Java (語言數: 5)
平台BSD, Cross-platform, Linux, Mac, Solaris, Unix-like, Windows
許可證MIT License
所有者活动
創建於2012-02-04 09:25:16
推送於2022-05-03 05:19:38
最后一次提交2020-09-30 12:51:36
發布數20
最新版本名稱nadron-0.7 (發布於 2013-11-13 23:19:59)
第一版名稱nadron-0.1 (發布於 2013-06-24 19:00:23)
用户参与
星數1.3k
關注者數213
派生數556
提交數336
已啟用問題?
問題數72
打開的問題數22
拉請求數4
打開的拉請求數2
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Note New version of Jetserver is called Nadron and is in a new netty 4 branch of this same repo.
JetServer is a java nio based server specifically designed for mutliplayer games. It supports UDP and TCP transports. It uses Netty for high speed network transmission and Jetlang for extremely fast in-vm message passing between player sessions and game rooms. The project also uses spring for its dependency injection. This way, it is highly configurable and you can swap out any part of the server with your own implementations.

Wiki

The wiki provides implementation level details and answers to general questions that a developer starting to use jetserver might have about it. The following blog has post on game creation.

Support Group

For general discussion please use the jetserver google group. Issues and bugs can be raised directly in github.

Installation

Maven

<dependency>
    <groupId>com.github.menacher</groupId>
    <artifactId>nadron</artifactId>
    <version>0.5</version>
</dependency>

From Source

Using pre-built jar files

The pre-built jar files of this project are located in the jetserver/binaries directory. All dependent jars are located in the jetserver/lib directory. You can add them to your favorite IDE’s classpath for coding. If you want to compile from source, then follow steps below.

With Maven and using Eclipse

Pre-requisites: Please have maven 3+ and Spring source tool suite or eclipse installed. If you are using plain vanilla eclipse, then M2Eclipse and EGit plugins though not required will be helpful. The maven-eclipse plugin part of pom.xml should be modified when using another IDE.

Steps

  1. git clone git@github.com:menacher/java-game-server.git
  2. cd java-game-server
  3. cd jetserver
  4. mvn eclipse:eclipse - Takes time, the first time! If you want to reduce this time, then comment out include sources/jars option from the maven pom.xml eclipse plugin part.
  5. eclipse -> file -> import -> git -> select repository and import jetserver project.
  6. jetserver project in eclipse -> right click on pom.xml -> run as -> maven test - Takes time the first time!

If everything works as expected you should see some test cases executed successfully!

With Ant

If you are using ant, then the lib folder within the jetserver project contains all the dependent libraries. Just right click and run ant build and it will create the jetserver jar.

Happy coding!