diff --git a/README.MD b/README.MD index 2e79c6a..bc25847 100644 --- a/README.MD +++ b/README.MD @@ -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 diff --git a/client/build.gradle b/client/build.gradle index 9a6b7cd..f08344c 100644 --- a/client/build.gradle +++ b/client/build.gradle @@ -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 +} \ No newline at end of file diff --git a/libs/jinput.jar b/libs/jinput-1.0.0-b01.jar similarity index 100% rename from libs/jinput.jar rename to libs/jinput-1.0.0-b01.jar diff --git a/libs/jorbis-0.0.17.jar b/libs/jorbis-0.0.17.jar new file mode 100644 index 0000000..e58a6aa Binary files /dev/null and b/libs/jorbis-0.0.17.jar differ diff --git a/appdata-minecraft-resources.7z b/mc-resources.zip similarity index 81% rename from appdata-minecraft-resources.7z rename to mc-resources.zip index 7af9cd5..e71ab83 100644 Binary files a/appdata-minecraft-resources.7z and b/mc-resources.zip differ