banner
Rating
Voted0

Input loader

5
Mod version:0.2.2
Game version:all
The mod has been successfully tested for the absence of viruses
16049.39K359.52K

Report mod

  • image
modalImage

About This Mod

This plugin looks for all `r6/input/*.xml` files, combines them with the corresponding input configuration file from `r6/config/` and saves the results to `r6/cache/`. The configuration file is written in `engine/config/platform/pc/input_loader.ini`, which tells the game to download the merged .xml files.


User Usage


1. Install [RED4ext](https://github.com/WopsS/RED4ext)

2. Extract the contents of the input_loader.zip file into the installation directory of your game


Each time you start, a log file will be written to `red4ext/logs/input_loader.log` if you run into problems.


Node type


Currently, only `<bindings>` child nodes are supported, but they can all be in the same .xml file (to encourage mods to have a single .xml file). Depending on the node type, the block will be automatically added to the new `inputContexts.xml` or `inputUserMappings.xml` file:

  inputUserMappings.xml:

  * mapping

  * buttonGroup

  * pairedAxes

  * preset

  inputContexts.xml:

  * mixture

  * context

  * hold

  * multi-tap

  * repeat

  * toggle

  * acceptedEvents


Node Attributes


You can add `append="true"` to the node to avoid overwriting. This is the recommended method to add functionality, as multiple mods will be able to do so without conflicts. For an example, see below.

 

Example .xml file


<?xml version="1.0"?

<bindings>

<!— Defines a custom context with a custom action mapped to UseConsumable_Button —>

<context name="MyCustomContext" >

 <action name="ShakeAroundABit" map="UseConsumable_Button" />

</context>

<!— Adds custom context to VehicleDrive without overwriting existing definitions —>

<context name="VehicleDrive" append="true">

 <include name="MyCustomContext" />

</context>

</bindings


Uninstall


Delete these folders/files:

* red4ext/input_loader/

* r6/cache/inputContexts.xml

* r6/cache/inputUserMappings.xml

* engine/config/platform/pc/input_loader.ini

Similar Mods/Addons

Game Version *

all (input_loader.zip-4575-0-2-2-1709344282.zip)