BL2 Modding Questions (e.g. Community Patch)

Hello everyone, I’ve been playing around with the community patch for my own personal mix of mods from github. Now that I’m more familiar with everything, I wanted to begin playing around with my own tweaks, but I can’t find any resources beyond a few basic lines and a texture guide on github.

The first modification I wanted to make is similar to Coleby’s changes that extend the time of Scorpio, Decepti0n, and Phaselock, but to increase Krieg’s Buzzaze Rampage length a tad to put it in line with those three.

Basing it upon Coleby’s code,

#"SparkOnDemandPatchEntry-LongerBuzzAxeRampageDuration1"“GD_Lilac_Psycho_Streaming,GD_Lilac_SkillsBase.ActionSkill.Skill_Psycho,InitialDuration,25.000000”

set Transient.SparkServiceConfiguration_0 ServiceName Micropatch

set Transient.SparkServiceConfiguration_0 ConfigurationGroup Default

set Transient.SparkServiceConfiguration_0 Keys ("SparkOnDemandPatchEntry-LongerPsychoDuration1")

set Transient.SparkServiceConfiguration_0 Values ("GD_Lilac_Psycho_Streaming,GD_Lilac_SkillsBase.ActionSkill.Skill_Psycho,InitialDuration,,25.000000")

set Transient.GearboxAccountData_1 Services (Transient.SparkServiceConfiguration_0)

Again, I couldn’t find any references other than comparing exact changes other people have made, such as to Krieg’s skills, in order to come up with this, but I’m not sure if the exact code is correct. Specifically, the Skill_Psycho,InitialDuraiton portion because the other mods replace “Psycho” with Scorpio, Deception, and Phaselock for the three respective classes that they affect.

A second question I have is if anyone happens to be familiar with a glitch of sorts where a change will cause a save game’s total skill points to somehow decrease, despite having more than enough levels, and no extra skill points to re-allocate? I’ve noticed this whenever I’ve tried to change the Hail’s texture - not even my own code, but other people’s mods. The only fix is deleting the code entirely from the patch, going back to the main screen, and re-executing the patch.

Any help or links to references would be most appreciated.

Thank you!

I’ve actually never messed with it, but from some observations: have you tried using “buzzaxe”? That would line up with Scorpio/deception/phaselock. Or possibly BxR

Your best bet would be to obj dump the skill name, which will likely be “Buzzaxe” or something along those lines. Dumping the character itself or a related class mod should help find you a reference to it, from which you could find the name.

Also I have never run into that glitch. Care to post the code that appears to cause it?

I would I go about doing an Obj info dump?

I forgot to mention, I also came about the _Psycho line after comparing with both infamous27x’s toggle skill experimental mod:

KRIEG

set GD_Lilac_SkillsBase.ActionSkill.Skill_Psycho bCanBeToggledOff True

This follows the same exact naming as the other 5 vault hunter toggle mods.

As well as FromDarkHell’s Krieg to Brick skills mod:

#

            #<hotfix><key>"SparkOnDemandPatchEntry-Rampage1"</key><value>"GD_Lilac_Psycho_Streaming,GD_Lilac_SkillsBase.ActionSkill.Skill_Psycho,SkillDescription,,Gain the ability to go [skill]Berserk[-skill] While in this state use the Aim and Fire buttons to throw buzzaxes. You also gain [skill]Resistance[-skill] to all damage and you [skill]regenerate health[-skill] while [skill]Berserking[-skill]."</value><on>

            #<hotfix><key>"SparkOnDemandPatchEntry-Rampage2"</key><value>"GD_Lilac_Psycho_Streaming,GD_Lilac_SkillsBase.ActionSkill.Skill_Psycho,SkillName,,Rampage"</value><on>

        #</Rampage>

(He renamed Buzzaxe Rampage to “Rampage”)

As for the glitch, I never notice any odd code when I execute the script - I’ll have to double check it when I play again, but what I can affirm is that with level 35 Axton and a full left tree, Crisis Management is 6/5 (+1 from a COM) goes down to 2/5, and Double Up goes back to being unselected. Again, there aren’t any extra skill points that I could simply re-allocate to fill those skills back up.

I’ve only seen this when editing (1) Hail skins, (2) changing the skin on the Heimdall Evil smasher mod by theNocturni (I tried switching his Nidhogg skin with the Heimdall’s, which looked good but caused the glitch), and (3) an experimental change on the patch’s Teeth of Terra relic to add ammo regeneration.

Undoing the changes reverted the skills back to how they were.

For some reason, this isn’t the skill. I’m assuming you’ve got the full console enabled and know how to use it, and that you’ve already tried your above code and confirmed it isn’t working. (Most of this stuff is trial and error.) The command to dump the skill itself would be:

obj dump WillowGame.BuzzaxeActionSkill

Which returns a huge list of all the stuff that’s in the skill’s package. Let me know if this helps.

Before I did anything, I wanted to look up the first round of errors I was getting, a huge list of transientsparkservice errors. Looking online, the one answer I found was that if you execute the patch.txt too soon when the game is loading up, you get that, and waiting a little bit seems to have helped resolve that at least.

As for the Krieg skill, I tested the code I posted and unless my perception of time is skewed, it actually worked! Krieg was rampaging noticeably longer when I bumped the figure to 35.

Currently I’m playing Axton, so I’ll have to start a new Krieg to really test the timing, but I also have some of the brand tweaks installed (as well as non-elemental), which makes both the player and enemy damage far more lethal (corrosive is especially potent to get hit with), so the bump in rampage seems in line with the much higher risk. The Axton tweak that bumps it up to 40 seconds makes his action skill far more viable with such deadlier odds, and Krieg is already suicidal enough without bumped up Torgue explosions and elemental death heading his way.

The final thing I have to test, and this might sound weird, is that when I executed the patch with Krieg as the set player, no problems. However, when I switched to Axton under the character select, yet again I found the strange bug where he suddenly lost his Double Up and two skill points from the previous skill. All other skills were untouched. I deleted the Krieg code, exited the game, Axton was set as the default already, and again, no problems. Next up, I’ll have to try keeping the code in, executing with Axton, and seeing if the bug persists but I was getting tired of backing in and out (as well as having to keep re-running Cheat Engine to turn off the sanity check).

It’s really strange how the bug affects only these two skills, and what’s worse is that it’s as though whoosh the skill points are just gone completely.