Skip to content

Commit

Permalink
Fixed some bugs,Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbdev committed Feb 4, 2022
1 parent 639c815 commit 700fc8e
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ This project based on netty framework so it as stable as Dedicated Servers.
## Progress
- [x] Basic Game Play
- [x] Custom maps
- [x] Game sync & rejoin (only support offical maps)
- [x] Game sync & rejoin (support offical maps and custom too)
- [x] Basic Plugin System
- [x] Mod server by mod's metadata (need a exportTool)
- [x] 10p+ Multiplayer supported (only 1.14+)
- [x] No-stop game future.
- [ ] Game hook(Events) supported some event not all.
- [ ] Anti-Cheat sync (need a game Simulation layer)
- [ ] Advanced gameCommand & save modification. (it's hard to make changes to them,the most result is crash the game.)
- [ ] Relay mode (maybe in future version)

## About
Some plugin system design referenced Nukkit.
Some plugin system design referenced [Nukkit](https://github.com/Nukkit/Nukkit).

## Unstable warning
this is still a unstable build.If you find bugs,please commit issues.
Expand Down
3 changes: 2 additions & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Rukkit是一个第三方铁锈战争服务器,你可以使用它来构建铁
- [x] 服务端插件系统
- [x] 基于元信息的mod系统(需要拿工具转换rwmod)
- [x] 10人以上玩家支持 (1.14+)
- [x] 不停止模式(支持随进随出,投票换图)
- [ ] 游戏事件机制(支持一些)
- [ ] 反作弊检查(需要游戏模拟层,做不出)
- [ ] 游戏指令重构建. (比较困难,而且容易炸游戏.)
- [ ] 中继模式 (咕咕咕)

## 关于
插件系统设计借鉴了下Rukkit(
插件系统设计借鉴[Nukkit](https://github.com/Nukkit/Nukkit)

## 不稳定警告
这个版本仍然不稳定。如果你发现的bug 请提出issue,或者PR,感谢你的支持!
41 changes: 41 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

// Apply the java plugin to add support for Java
apply plugin: 'java'
apply plugin: 'application'
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF8'
final def RUKKIT_VERSION = "0.8.0"
mainClassName = 'cn.rukkit.RukkitLauncher'

// In this section you declare where to find the dependencies of your project
repositories {
Expand All @@ -29,5 +33,42 @@ dependencies {
//testCompile 'junit:junit:4.12'
}

tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}

task buildRukkit(dependsOn: jar) {
doLast {
println("Okay.Doing last step...")
mkdir("./build/outputs")
copy() {
CopySpec copySpec ->
from file("${rootDir}/libs")
into "${rootDir}/build/outputs/libs"
}
copy() {
CopySpec copySpec ->
from file("${rootDir}/build/libs/Rukkit.jar")
into "${rootDir}/build/outputs/"
rename ('Rukkit.jar', "Rukkit-${RUKKIT_VERSION}.jar")
}
copy() {
CopySpec copySpec ->
from file("${rootDir}/start.sh")
into "${rootDir}/build/outputs/";
}
copy() {
CopySpec copySpec ->
from file("${rootDir}/start.bat")
into "${rootDir}/build/outputs/";
}
println("""
-- Well done! --
targetRukkitVersion: ${RUKKIT_VERSION}
Check the build/outputs to get the result.
""")
}
}

run {}

4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ include 'services:webservice'
*/

rootProject.name = 'Rukkit'
ext {
rukkitVersion = '0.8.0'
supportGameVersion = '151'
}
5 changes: 3 additions & 2 deletions src/main/java/cn/rukkit/network/packet/Packet.java
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,12 @@ public static Packet sendPullSave() throws IOException {
out.writeBoolean(true);
out.writeBoolean(false);
out.startBlock("gameSave", false);
FileInputStream fileInputStream = new FileInputStream(Rukkit.getEnvPath() + "/defaultSave");
/*FileInputStream fileInputStream = new FileInputStream(Rukkit.getEnvPath() + "/defaultSave");
byte[] bArr = new byte[fileInputStream.available()];
fileInputStream.read(bArr);
log.debug("Save Size={}", bArr.length);
out.write(bArr);
out.write(bArr);*/
out.write(Rukkit.getSaveManager().defaultSave.arr);
out.endBlock();
/*GzipEncoder encodeStream = out.getEncodeStream("gameSave", false);
FileInputStream fileInputStream = new FileInputStream(new StringBuffer().append(Rukkit.getEnvPath()).append("/defaultSave").toString());
Expand Down
1 change: 1 addition & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java -Djava.net.preferIPv4Stack=true -Xmx1000M -Dfile.encoding=UTF-8 -Djava.library.path=. -cp "Rukkit-0.8.0.jar;libs/*" cn.rukkit.RukkitLauncher
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java -Djava.net.preferIPv4Stack=true -Xmx1000M -Dfile.encoding=UTF-8 -Djava.library.path=. -cp "Rukkit-0.8.0.jar;libs/*" cn.rukkit.RukkitLauncher

0 comments on commit 700fc8e

Please sign in to comment.