#[Unolved] Need help disabling the torch increasing in brightness when holding it up.

35 messages · Page 1 of 1 (latest)

maiden void
#

I like this dynamic shadow mod. But holding the torch up makes the shadows almost disappear. How do I fix this problem?

gentle badge
#

In Game/action/script/c0000.hks there is a line in function ExecGuard that looks like this```lua
-- Set Torch Color
if kind == WEAPON_CATEGORY_TORCH and style == HAND_RIGHT then
guardindex = GUARD_STYLE_TORCH

if sp_kind == 291 then
    SetVariable("IndexTorchColor", 1) -- Ghostflame Torch
elseif sp_kind == 292 then
    SetVariable("IndexTorchColor", 2) -- St. Trina's Torch
elseif sp_kind == 288 then
    SetVariable("IndexTorchColor", 3) -- Nanaya's Torch
else
    SetVariable("IndexTorchColor", 0) -- Torch
end```This is likely where the bigger light is being set, as this only executes whilst guarding AKA raising the torch. So messing with that code might do the trick
#

If you have yet to get the community decompiled version
#tools-and-resources message

maiden void
#

Oh, word. I unfortunately am unsure about messing around with scripts. I'll probably leave this on the shelf...

#

Like, I just don't trust myself with that stuff.

#

I'll see how I go sometime later.

gentle badge
#

Just commenting out the if stack might just be enough

#

Hope it helps

#

So to put it easy, download the think I linked. Put it in mod/action/script/ and then put --'s in front of the lines you want disabled

#

Should make it look like this

#

Maybe not the colors though, that's my theme

maiden void
#

Um, am I allowed to ask what thing you even linked to? When I click on the channel link, nothing highlights...

#

I hate Discord sometimes...

olive shale
#

Another way to do this without touching any code is to just delete the FXR files for the brightness increase. Each torch has two effects, one that's always active and less bright, usually includes a flame effect, and then another that's added when you hold the torch up. Removing the second one for each torch should disable it

maiden void
#

Oh...

#

I'll be real, my only knowledge is RegBin stuff...

#

So, I don't even know how to mess with FXR stuff.

olive shale
#

If you can unpack a bnd with Witchy, then I'm sure you can delete a file or two. You don't need to actually do anything with the FXR files other than deleting them

maiden void
#

Oh, sounds super simple actually.

#

Would you be able to give me a hand finding out what the FXR files are that I need to oof?

olive shale
#

Once you have the IDs, just unpack the common effects bnd in the sfx folder and find the FXR files in the effect folder there. Once they've been deleted, just repack and you're done

maiden void
#

Ohh.

#

So...

#

Where is the specific file located?

#

I do have the game unpacked but I have no clue where to look...

olive shale
#

The sfx folder

maiden void
#

Ah.

#

I'm stupid.

maiden void
#

The comment out thing didn't work by the by...

#

Bummer...

gentle badge
maiden void
#

Oh, word.

maiden void
#

[Solved] Need help disabling the torch increasing in brightness when holding it up.