中文 | English
Before Reading
Until now(2024.03), if you want to use the recording feature in game, a bunch of requirements are needed:
- Nvidia GPU, support NVENC
- LDJ-010 bm2dx.dll
- Proper ASIO Hardware/Software configuration(I use XONAR AE, but have seen FlexASIO config that claims to work fine)
- A screen with touch support, support 1280*720@60Hz, function the same as the one on cab. Whether the screen match requirements: https://github.com/spice2x/spice2x.github.io/wiki/Configuring-touch-screens-as-subscreen
- A proper implemented xrpc server(asphyxia for example)
010-record-api
lightning model video upload handler
Installation
use 010-record-api.exe
download executable at release
if you have go installed, you could install via command line
go install github.com/bookqaq/010-record-api@latest
or compile yourself
-
open 010-record-api.exe once, a config file (config.toml) will be generated
-
edit config.toml, set listen_address and upload_service_address if necessary. If you want to run it locally, then you can skip this step.
-
open 010-record-api.exe again, service should start now
Config Other Necessary Parts
No specfic order is required to finish these configurations.
Install Driver for Graphics Card
this is just a hint
Config Subscreen Touch
Refer https://github.com/spice2x/spice2x.github.io/wiki/Configuring-touch-screens-as-subscreen#step-by-step-instructions
-
Download spice2x-24-02-13 or newer than this, extract to your folder
-
open spicecfg.exe, change toggle Disable D3D9 Device Hook (in Graphics (common), under options tab) to true
Config XRPC Server
Asphyxia
Assume game, asphyxia and 010-record-api.exe are running on the same pc, and config file of 010-record-api.exe is not changed
Check whether your plugin supports
open asphyxia, go to "IIDX" under Plugins. If "Movie Upload URL" appears in Plugin Settings, then your plugin support the feature.
If not support, How to edit your plugin
open your iidx@asphyxia folder, change below
find a zip named iidx-asphyxia-v1.4.4_a4.zip, remember to do a backup.
Other server
Ask your server's owner.
Config bm2dx.dll
only 2023-09-05 LDJ-010
Open http://localhost:4399/patcher/ in your browser, apply changes to your LDJ-010 version of bm2dx.dll
Skip this step if your server region is already Japan
After gamestart
Check "動画" button on subscreen. If it appears, configuration is completed.
Contribution
Just submit your PRs, I'll check and reply.
TODOs
Replace gin (would bump go to 1.22)
Basic http response process(we lost these abilities after we dont use gin)
Better video filename(sort of)
Better in-memory movie upload instance manage
Fix report as VIRUS on my pc(maybe fixed)
Speed up the client upload speed by:
patch dll
implement direct file copy from RawPlayVideo(wouldn't implement, for )
- finish the proxy package?