OpenXRay / xray-16

Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)

Home Page:https://discord.gg/sjRMQwv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gamepad support

QuaiGoner opened this issue · comments

That feature already have some ground work, engine does register inputs, axis included, but when we try to bind controls it maps to a keyboard and does not maps axis.
Would be great to have propeg diput/xinput support in S.T.A.L.K.E.R. series before S.T.A.L.K.E.R. 2 comes out.

It already maps axes in the latest dev builds :)
And you can even play with it. (but keyboard and mouse is still needed for inventory, dialogs, PDA)

What is left to do:

  • Gamepad support for entire UI system. The most important.
  • Weapon selection wheel. (gamepad doesn't have much buttons, so we need something like this)
  • #386
  • Aim assist.
  • Sticks sensitivity options, separate for X and Y axis.
  • Y axis invert options. (0e8e874)

It already maps axes in the latest dev builds :) And you can even play with it. (but keyboard and mouse is still needed for inventory, dialogs, PDA)

Только что скачал с Appveyor крайний билд Gold - крашится при запуске новой игры и в меню геймпад не мапится (хотя мышка двигается правым стиком) - использую DS4 + DS4Windows, может быть я не тот билд взял?
OpenXRay_error_report_220125-131518.zip
Прикладываю лог после нажатия новой игры

  1. Попробуй убрать папку versions из папки с игрой.
    Произошёл прикол. Игра, похоже, начала грузить файлы ТЧ из этой папки...
  2. Биндить геймпад можно только из отдельного окошка, которое добавляется геймдатой. Она есть в December 2020 Preview, а нерелизные билды идут без геймдаты. Ну, и, я более новую геймдату не выложил даже нигде ещё. (в декабрьском релизе старая, хотя она тоже подойдёт)
    Вот новая геймдата:
    gamedata.zip
    После распаковки, в меню управления появится кнопка переключения на настройки геймпада)

Это я параллельно играюсь с version switcher, был интересно как оно работает)
Папку переименовал и добавил вашу геймдату.
Пару моментов:

  1. Имплементация левого стика - с шагом - бегом - быстрым бегом - просто гениально + сэкономлено столько кнопок
  2. Правый стик имеет дикую чувствительность - чувствительность мыши не влияет, возможно привязка к фпс ( у меня более 150)
  3. Для более-менее играбельного сотояния имхо было бы досточно навигации через D-pad в меню и инвентаре + кнопка для вызова контекстного меню в инвентаре на которое переключился бы фокус д-пада + та же история для диалогов - D-PAD + A&B
    В целом - моё почтение, очень круто получилось, спасибо за помощь

References on weapon selector:
image
image

А получится ли aim-assist из уже какого-то готового проекта опенсурсного выдернуть, типа xash3d?

Или билда одного. Но это скорее будет нарушением лицензии

References on weapon selector: image image

Code references on wheel (pie) menu: ocornut/imgui#434

References on weapon selector: image image

It's an interesting idea to make some cells in the wheel menu bigger, so they can fit big guns better

Trying to use third party software for gamepad support not working. Maybe it's conflicting with current implementation. Could you pinpoint me to a config or whatever where i can find and make the engine ignore gamepad for now?

@FaV0RiT77, I just added -no_gamepad command line key for this. Nightly build with this key will be available within 1-2 hours.

need fix linux biuld after 6e3a069
xray-16_build_error.txt

need fix linux biuld after 6e3a069 xray-16_build_error.txt

Fixed. Unfortunately, glibc or GCC itself is not conformant to C++ standard :(