#[Unolved] Need help disabling the torch increasing in brightness when holding it up.
35 messages · Page 1 of 1 (latest)
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
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.
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
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...
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
Oh...
I'll be real, my only knowledge is RegBin stuff...
So, I don't even know how to mess with FXR stuff.
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
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?
Go here to find the IDs you need to remove: https://docs.google.com/spreadsheets/d/1gmUiSpJtxFFl0g04MWMIIs37W13Yjp-WUxtbyv99JIQ/edit?gid=866341224#gid=866341224
Just Ctrl+F "torch". It's the odd numbered ones you want to get rid of, so 402031 for the ghostflame torch, for example
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
Ohh.
So...
Where is the specific file located?
I do have the game unpacked but I have no clue where to look...
The sfx folder
May I ask what theme that is so I may use it too?
The comment out thing didn't work by the by...
Bummer...
Visual Studio code with Nightly
Oh, word.
[Solved] Need help disabling the torch increasing in brightness when holding it up.