Page 1 of 14

The Division Script

PostPosted: Mon Jan 02, 2017 11:33 am
by Scachi
I have readded my script for T2 into the library. This topic is used for information about and discussion of that script.

Current version: 1.25
  • Added usage information to Interactive Configuration for Automarking Targets

Features:
  • Interactive configuration
  • Hair trigger
  • Automark targets
  • XIM specific anti recoil mode support
  • Weapon slot specific anti recoil and fire mode (adjustable)
  • Presets of anti recoil/firemode settings for some weapons (adjustable)
  • Reload on weapon change
  • In-game weapon fire mode selection with touchpad hold: lower-left corner=normal | lower-right corner=rapid/SASG rapid timing1/SASG rapid timing2 | lower-mid=burst
    or cycle through fire modes with R3 + R2
  • LED colors for estimated active weapon slot: green=primary,red=secondary,pink=sidearm
    If color and weapon is not matching, fix it in game with touchpad hold: upper-left corner=primary | upper-right corner=secondary | upper-mid=pistol
    or cycle through to correct weapon/color with with R3 +L1

Known issues:
  • Enabling/disabling a feature does not always blink the LED correctly

More detailed informations:
  • Enabling a feature in game will blink the led twice, disabling will blink once.
    The ingame configuration changes are saved to the memory.
    .
  • Auto Marking Targets - Enable/disable in game with D-Pad UP + CROSS
    !Be carefull! Marking the target uses DPad-Up which also triggers the menu to get something lying on the ground which can be dangerous in the dz during combat.
    .
  • Anti Recoil - Enable/disable in game with L2 + D-Pad DOWN
    Anti recoil has to be configured for each weapon slot (primary, secondary, sidearm).

    Presets are available for a few weapons in the "Anti Recoil" section of the Interactive Configuration:
    AK-47 Classic, Famas, G36, LVOA-C, MP5 A4 ST, SVD, X45

    To use one, use the checkbox of the weapon slot you want to load the setting to and select a weapon from the list.
    Now hit the "Save and Run" button, do NOT use the [OK] button !
    This will automatically write the settings to the memory of the T2 slot and update the Interactive Configuration window settings and its sliders according to the preset values loaded. You can now fine tune the settings as you like.
    Keep in mind that using a "Striker" gearset or weapon mod may add some stability to the weapon, so you may have to adjust the recoil settings.

    For a simple anti recoil setup set the "Vertical - Additional value" setting to zero and adjust the first three anti recoil settings in game.
    For the current active weapon slot you can adjust the simple settings while aiming & firing with
    L2 + R2 + DPAD_UP = Vertical decrease
    L2 + R2 + DPAD_DOWN = Vertical increase
    L2 + R2 + DPAD_Left = Left
    L2 + R2 + DPAD_Right = Right

    For complex configuration:
    The anti recoil settings supports complex configuration which can only setup per interactive configuration, so for testing go to the shooting range or somewhere else near an ammo box as you will firing and adjusting a lot. But using all the settings I was able to got a almost perfect anti recoil setting for all weapons working.

    To configure it for a weapon I first try to setup the "static" value to compensate the recoil for the first shots.
    After a short time, in the division, the recoil starts to get stronger. Here I'll try to set the first "start time" to kick in at the same time, at first with a high "value" to see the effect. Then I'll try to lower the value to compensate for the next shots.
    This seems to be enough for some weapons, depending on the capacity of the used mag.
    For weapons like the G36 or LVOA-C with a high capacity mag after a longer time an even stronger recoil seems to get active, this is where I setup the second "start time" value to be activated.
    .
  • Firing modes - Enable/disable in game with L2 + D-Pad LEFT
    The firing mode can be selected in game for the active weapon slot by touchpad hold (blinks the led in color): lower-left corner=normal | lower-right corner=rapid | lower-mid=burst
    The timing for the firing modes can be adjusted per weapon slot via the interactive configuration.
    .
  • Reload on weapon change - Enable/disable in game with D-Pad UP + TRIANGLE
    To prepare it for use it has to be enabled and be correctly timed.
    To adjust the times in-game hold L2+L3 and press&hold the SQUARE button until the reload animation is completed then let go of SQUARE.
    USAGE: To actually use it in game you have to double-tap the SQUARE button fast.
    Reload on weapon change works by triggering the reload animation, waiting for half the time of the real reload animation and then switching to the secondary weapon, so it is a bit slower than a direct weapon change but the primary weapon is reloaded in something like a bit more of half its reload time.
    .
  • Sensitivity (aiming) - Enable/disable/setup via interactive configuration
    USAGE: When aiming (L2) hold L3 to adjust the aiming sensibility to the configured values.
    Configure it for each weapon slot, to have no effect on a specific weapon slot set its value to 100.
    .

Re: The Division Script

PostPosted: Fri Jan 13, 2017 12:39 pm
by J2Kbr
great documentation. :) thanks for your efforts with the script and this page.

EDIT: I wonder if it would be better to have an sub-section on the forums to accommodate the scripts documentation pages like this.

Re: The Division Script

PostPosted: Sat Jan 14, 2017 10:56 am
by Scachi
J2Kbr wrote:great documentation. :) thanks for your efforts with the script and this page.

EDIT: I wonder if it would be better to have an sub-section on the forums to accommodate the scripts documentation pages like this.


Thank you.
I really like the idea of a sub-section for user-scripts documentation. :joia:

Re: The Division Script

PostPosted: Sun Jan 15, 2017 6:38 pm
by pablosscripts
J2Kbr wrote:great documentation. :) thanks for your efforts with the script and this page.

EDIT: I wonder if it would be better to have an sub-section on the forums to accommodate the scripts documentation pages like this.



Great idea!

Re: The Division Script

PostPosted: Sat Jan 28, 2017 12:04 am
by Scachi
Updated.
  • Changes 1.14:
    + Added support for controllers without touchpad. (R3+L1 to fix estimated weapon slot, R3+R1 to cycle through fire modes)
    + Fixed a problem with reload on weapon change

Re: The Division Script

PostPosted: Wed Feb 08, 2017 6:27 pm
by Scachi
Updated.

Changes 1.15:
+ Added: Presets of anti recoil, firemode/-timing settings for some weapons: AK-47 Classic, Famas, G36, LVOA-C, MP5 A4 ST, SVD, X45
+ Changed aim sensitivity change activation to holding L2+L3

Re: The Division Script

PostPosted: Fri Mar 17, 2017 6:19 pm
by Jimmy
Scachi is there any chance you can make the perfect settings for the burst fire mp5 so it has no kind of stutter in rapid fire mode.
Loving your script by the way. :smile0201:

Re: The Division Script

PostPosted: Sun Mar 19, 2017 9:38 am
by Scachi
Jimmy wrote:Scachi is there any chance you can make the perfect settings for the burst fire mp5 so it has no kind of stutter in rapid fire mode.
Loving your script by the way. :smile0201:

I was not able to get a perfect burst fire timing for the Mp5 ST, but you can get close to it by modifying the burst fire timings with the interactive configuration menu.
With the correct timing the mp5 sometimes fires without any stutter for a few burst shots and then again with minimal stutter. This seems be caused by the input lag from The Division's network communication itself.

I haven't played The Division for some time now, so I don't think I will improve or add more weapon presets to the script.

Re: The Division Script

PostPosted: Thu Mar 23, 2017 11:35 am
by Scachi
Updated.

Changes 1.16:
+ Loading weapon presets and hitting the "Save and Run" button automatically updates the Interactive Configuration data, no need to close and reopen the window anymore. Thank you @J2Kbr for that great new feature !
+ Changing settings in-game updates the Interactive Configuration window, too. Only when something has changed and only once every 10 seconds.
+ A lot less pmem_save actions. Only done now when settings have changed and only once every 10 seconds, too.

Re: The Division Script

PostPosted: Sat Apr 01, 2017 7:38 pm
by dmeight
Drag Drop option not working with newest firmware :(