Page MenuHomeFeedback Tracker

New Input System : problem for modders
Closed, ResolvedPublic

Description

This will a ticket about the problem of new input system for modders.

Already spoken with Sumrak. I know the actual new input system, need some tweaks for sure. But I want to give you a bug that need to be fixed, so modders can use the new input system.
This "bug" can be already thinked by the DayZ Dev team, but a feedback was needed so we are sure that you are aware of this.

Actually the new input system in stable branch (12/01/2019) have some problems for modding :

  • You can register new input, and new group. The problem is when you are exporting the .xml file when registered all this inputs/groups.
GetUApi().RegisterGroup( "Expansion", "STR_USRACT_GROUP_EXPANSION");
input = GetUApi().RegisterInput( "UAGps", "STR_USRACT_GPS", "Expansion" );
if ( input )
{
    input.BindCombo( "kM" );
    Print("[KeyBindingSystem] BindingCount : " + input.BindingCount());
}
GetUApi().Export();

I'm using this code actually. The exporting works fine for the profilename.core.xml

It's creating these inside :

<group name="Expansion" loc="STR_USRACT_GROUP_EXPANSION">
        <input name="UAGps" />
    </group>

It's exactly what excepted.
The problem is for the file profilename.dayz_preset_User.xml .

It's actually not creating the input line with the btn inside, we actually except this :

<input name="UAGps">
    <btn name="kM" />
</input>

So when you go to the keybinding menu after everything exported and restarted the game. You have the tab Expansion that working fine but nothing inside : link screenshot

After a lot of research, I'm pretty sure the bug is, when you use the function "export", it's not exporting the profilename.dayz_preset_User.xml file.
Even tried to add directly to this file the input line when the game was not started and restarted the game.
The problem, the game reset everything inside this file that are not added inside default preset.xml file.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Modding
Steps To Reproduce

Use this code in anywhere you want :

GetUApi().RegisterGroup( "Expansion", "STR_USRACT_GROUP_EXPANSION");
input = GetUApi().RegisterInput( "UAGps", "STR_USRACT_GPS", "Expansion" );
if ( input )
{
    input.BindCombo( "kM" );
    Print("[KeyBindingSystem] BindingCount : " + input.BindingCount());
}
GetUApi().Export();
Additional Information

The idea to fix this for my point of view :

  • It's to fix the problem that resetting profilename.dayz_preset_User.xml file after each restart.
  • And fix the "export" function that exporting only .core.xml file and not profilename.dayz_preset_User.xml file

If you override the files inside DZ\data\inputsdefault with your own keybinding, it's working fine, but it's can't be a solution for modders. If another mod overriding too this file, it's will be only the last mod loaded that will have his keybinding

Event Timeline

NiiRoZz created this task.Jan 12 2019, 3:01 PM
mov3ax added a subscriber: mov3ax.Jan 12 2019, 3:01 PM
NiiRoZz updated the task description. (Show Details)Jan 12 2019, 3:04 PM
NiiRoZz edited Additional Information. (Show Details)
NiiRoZz updated the task description. (Show Details)Jan 12 2019, 3:11 PM
NiiRoZz edited Additional Information. (Show Details)
Geez changed the task status from New to Assigned.Jan 14 2019, 11:45 AM
Geez changed the task status from Assigned to Acknowledged.Jan 14 2019, 4:29 PM
Geez added a subscriber: Geez.

Hello NiiRoZz thank you for the feedback.
We will look into this internally and will update the ticket once there is a progress on the issue.
Regards,
Geez

NiiRoZz updated the task description. (Show Details)Jan 14 2019, 6:40 PM
rVn claimed this task.Apr 10 2019, 3:04 PM
rVn raised the priority of this task from Normal to High.May 13 2019, 4:37 PM

The issue here is that the system is still WIP and you tried to fiddle with it somewhat early. There has been some progress made for 1.03 but it's not quite done yet, we will release use examples when we consider it usable enough

Yeah already checked the progress in 1.03 and it's good.

Thanks for your work.

This comment was removed by Jacob_Mango.
This comment was removed by Jacob_Mango.
rVn added a comment.May 16 2019, 3:48 PM

This seems to perform well enough atm so we will release some use examples soon for you to fiddle with

rVn closed this task as Resolved.Wed, Jun 12, 3:21 PM

Further bug fixing regarding key binding done in 1.04, use examples should come some time after exp release