Merge branch 'develop'
This commit is contained in:
23
README.MD
23
README.MD
@@ -10,9 +10,30 @@
|
|||||||
## Запуск Клиента
|
## Запуск Клиента
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
gradle :client:copyNatives :client:run
|
gradle :client:copyNatives :client:unpackResources :client:run
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Известные проблемы
|
||||||
|
|
||||||
|
(X) **Failed to open device (/dev/input/eventXX): Failed to open device /dev/input/eventXX (13)**
|
||||||
|
|
||||||
|
Проявляется в Linux системах.
|
||||||
|
|
||||||
|
Решения два:
|
||||||
|
|
||||||
|
1. Добавить текущего пользователя в группу `input`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
usermod -a -G input $USER
|
||||||
|
```
|
||||||
|
2. Изменить права доступа к "устройствам" `/dev/input/event*`:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
sudo chmod 664 /dev/input/event*
|
||||||
|
```
|
||||||
|
|
||||||
|
Это решение **временное** и после перезагрузки системы все изменения будут отменены.
|
||||||
|
|
||||||
## Запуск Сервера
|
## Запуск Сервера
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ run {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":shared"))
|
implementation(project(":shared"))
|
||||||
|
|
||||||
implementation name: "jinput" // предположительно это "jinput-1.0.jar"
|
implementation name: "jinput-1.0.0-b01"
|
||||||
|
implementation name: "jorbis-0.0.17"
|
||||||
implementation name: "org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0"
|
implementation name: "org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0"
|
||||||
implementation name: "org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0"
|
implementation name: "org/lwjgl/lwjgl/lwjgl_util/2.9.0/lwjgl_util-2.9.0"
|
||||||
implementation name: "paulscode"
|
implementation name: "paulscode"
|
||||||
@@ -58,3 +59,15 @@ tasks.register("copyNatives").configure {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task unpackResources(type: Copy) {
|
||||||
|
File zipFile = file("../mc-resources.zip")
|
||||||
|
File outputDir = new File(buildDir, "run")
|
||||||
|
if (!outputDir.exists()) {
|
||||||
|
outputDir.mkdir()
|
||||||
|
}
|
||||||
|
println(zipFile.absolutePath)
|
||||||
|
|
||||||
|
from zipTree(zipFile)
|
||||||
|
into outputDir
|
||||||
|
}
|
||||||
BIN
libs/jorbis-0.0.17.jar
Normal file
BIN
libs/jorbis-0.0.17.jar
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user