Badhamknibbs / SCPCB_DunGen_LC

Adds the SCP facility as a potential dungeon spawn in Lethal Company.
MIT License
0 stars 0 forks source link

Permanent Config File #23

Open Glorpi47 opened 9 months ago

Glorpi47 commented 9 months ago

Hi, I tried to change config file so that SCP Dungeon spawns 100% on certain maps but everytime I start the game again it changes the config file back to original values.

P. S. I tried to set the config file to Read-Only but the mod doesn't work then

Badhamknibbs commented 9 months ago

Don't really know what could be going wrong there; also there's no way to guarantee the dungeon on any map, just have its chance extremely high. Do you have the right bepinex/etc, and where do you have Lethal Company installed?

Badhamknibbs commented 9 months ago

Actually; do you have FastStartup? Apparently it breaks BepinEx configs.

Glorpi47 commented 9 months ago

I do have the right Bepinex files and folders. The problem is that the ScpDungeon.dll file is changing the config file everytime I start the game. Is there a way to change the code in the dll (the original sorce code) file so it creates a config file with the Scp Secret Labs map to @9999.

I don't have FastStart.

Badhamknibbs commented 9 months ago

This mod binds configs identically to how every other mod does which doesn't seem to be causing any issues for me or anyone else; is this happening with any other mods you have? If you really want to you can just rebuild from source changing this line:

https://github.com/Badhamknibbs/SCPCB_DunGen_LC/blob/5de9fbe711076e2f1b727f87cbd5fb263e2ff354/SCPCBDunGen/Plugin.cs#L70

replacing "Titan,Secret Labs" with "Secret Labs@99999" which should be what you're after.