drummerdude2003 / CursedDlls.BepinEx

H3VR mod that allows for ClosedBoltWeapons and Handguns to be full auto
MIT License
9 stars 2 forks source link

RemoveAttachmentChecks requires game restart when enabling/disabling. #11

Open mrwallace888 opened 1 year ago

mrwallace888 commented 1 year ago

For some reason removing attachment checks requires you to restart the game. Whether you toggle it through the Mod Panel or through Configuration Manager makes no difference. Reloading the scene doesn't apply the changes, either.

BlockBuilder57 commented 1 year ago

By all means that should be working correctly, are you toggling the correct setting? There's a copy and paste error on the attachment type description, as well as both things using the same config key. Another question because I haven't used them, do the Mod Panel or Configuration Manager split configs by mod or by config file?

mrwallace888 commented 1 year ago

Both of them are split by config file. All the CDLLs configs for both are all shown separately from each other.

And yes, I'm toggling the correct setting.

I'm editing "dll.cursed.removeattachmentchecks.cfg".

Enables RemoveAttachmentChecks. RemoveAttachmentChecks, as it says on the tin, removes a lot of checks related to attachments.
Setting type: Boolean
Default value: false
PluginEnabled = true

There's only one of these options in the actual config file. The other options are different (allow scaling, allow bi-directional attachments, disable attachment collisions for easy attaching, allow detaching attachments that have sub-attachments still attached). If I toggle this setting, nothing changes, even when reloading or switching scenes. If I restart the game, then it applies.

With it enabled, I can put a silencer on a revolver, for example. If I disable it, I can still put a silencer on the revolver. If I reload the scene, it'll still show it's disabled in both configuration manager and the mod panel, but I can still put a silencer on the revolver.

If I just restart the game, then I can no longer put a silencer on the revolver until I enable it in-game and then restart the whole game, or exit the game, modify the config file in R2 or Notepad++, and then restart the game.

So if I restart the game, then it enables/disables it. But it only sets this setting true or false once upon initial startup.

I can still config other stuff at runtime, though.

DerpMeister360 commented 1 year ago

I have this issue too.