Skip to content

Tutorial: Hotfix Data

Andre Issa edited this page May 6, 2017 · 13 revisions

BE FOREWARNED: HERE BE SMALL DRAGONS

Basics: Hotfixes 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 can be of 3 types, Patch, On Demand, and Level.

Patch types execute right when hitting continue. On Demand types execute when a package is loaded. Level types execute on changing level.

Hotfixes are structured as such:

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

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

Level:
"<level>,<object>,<path>,<old_value>,<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 adundey

Clone this wiki locally