Merge branch 'develop'

This commit is contained in:
2025-06-11 18:27:35 +03:00
5 changed files with 36 additions and 2 deletions

View File

@@ -10,9 +10,30 @@
## Запуск Клиента
```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

View File

@@ -22,7 +22,8 @@ run {
dependencies {
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_util/2.9.0/lwjgl_util-2.9.0"
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

Binary file not shown.