Skip to content

Tutorial: Hotfix Data

FromDarkHell edited this page Jun 18, 2018 · 13 revisions

BE FOREWARNED: HERE BE SMALL DRAGONS

It is best to understand how to use normal set commands first before diving into hotfixes. See Here

What IS a hotfix?

Hotfixes behave exactly like set commands but delay taking effect until you enter the game. This allows for changing things such as skills and enemies, which only load once you're actually in game.

They are 1 of 3 types, Patch, On Demand, and Level.

  1. Patch types execute right when hitting continue / new game.
  2. On Demand types execute when a package is loaded (such as character skills).
  3. Level types execute on changing level(such as entering sanctuary).

Hotfixes are structured as such:

Patch:
"<object>,<path>,<old_value>,<value>"

On Demand:
"<package>,<object>,<path>,<value>"

Level:
"<level>,<object>,<path>,<value>"

Note that level, package, and old_value can be empty.

  • On Demand is best used for skills, as you can load the skill changes when the corresponding character loads. For example, GD_Siren_Streaming is loaded whenever Maya is loaded, so you attach a Maya skill change to GD_Siren_Streaming.

  • Level is best used for level-based changes, for example changing varkids' or OOO's evolve chance.

  • Patch is used just like normal set lines, and are unnecessary to use most of the time. Very helpful for Gearbox, less helpful for modding.

Path has some special capabilities compared to a normal set command, for example you can index arrays using square brackets.

Value also has some special capabilities in TPS, if you have a + before the value and the path leads to an array, it will append onto the array. This is not possible in BL2 unfortunately.

by adudney

Clone this wiki locally