Lethal Company

Lethal Company

D.A.R.K. Feb 20, 2024 @ 11:27am
Chance to Spawn Interior
So... I installed 3 mods that adds 3 new interiors, but to make a fair chance to all interiors to spawn, I need to change the spawn chance to be equal to all. Since every moon basically have only one interior, adding 3 means all moons would have a chance of 4 interiors now. My problem is this value, some mods say 300 equals 50%, other mods say 150 = 1 in 2 (AKA 50%), because of that I'm not sure which value I should use to make all 4 maps (default + 3 mods) to have the same 25% chance to spawn.

If you read what's written in the .cfg file, you'll see this:

From MOREINTERIORS:
"By default, the bunker will appear on valid moons with a roughly one in two chance.
# Default value: 150"

From SCOOPYS:
"At a value of 300, the spawn chance would be approx 50% on vanilla moons"

So... Which one is 50%? Does anyone knows the vanilla value of the moons? In the end, since I installed MoreIteriors first, I set everything to be 75, that way all 3 new interiors would have ~25% chance of spawning, but I don't know the value of the vanilla interior, I'm hopping it works, this means, every time I join Experimentation, for example, the interior has 1/4 chance (or close to that) to spawn, instead of be the same regular boring one.

Here are the mods that I'm using:
https://thunderstore.io/c/lethal-company/p/Major_And_Skiz/MoreInteriors/
https://thunderstore.io/c/lethal-company/p/Piggy/LC_Office/
https://thunderstore.io/c/lethal-company/p/scoopy/Scoopys_Variety_Mod/
< >
Showing 1-5 of 5 comments
B〄F Altonator Feb 20, 2024 @ 2:40pm 
you need to look at the source code to understand it better. The script that spawns the interior might be coded differently to the vanilla spawn script. Meaning values can change. Just pay attention to the info the mod author gives you.
D.A.R.K. Feb 20, 2024 @ 3:19pm 
Originally posted by B〄F Altonator:
you need to look at the source code to understand it better. The script that spawns the interior might be coded differently to the vanilla spawn script. Meaning values can change. Just pay attention to the info the mod author gives you.
Do you know what file shows those intels, and the file related to the vanilla interior? I just need to make sure all interiors have tge same chance, or close to it, I wouldn't mind vanilla with 40% while the mods with 20% each, as long as doesn't break the game, nor repeat the same interior over and over again.

Another thing is to go over the 100%. The moreinteriors is 150 to 50% because its counting only with vanilla, same way with Scoopy, its 300 because its counting only with vanilla, but all 3 togther I don't know what would happen.

I could let the default value, but what would happen then? 50% for each 4 interiors...
D.A.R.K. Feb 20, 2024 @ 3:28pm 
I just though abou something... If the defaul mod is 50% I could go HALF the mods, this would give me 25% + 25% + 25% + whatever the hell vanilla is.
B〄F Altonator Feb 21, 2024 @ 3:08am 
Originally posted by D.A.R.K.:
Originally posted by B〄F Altonator:
you need to look at the source code to understand it better. The script that spawns the interior might be coded differently to the vanilla spawn script. Meaning values can change. Just pay attention to the info the mod author gives you.
Do you know what file shows those intels, and the file related to the vanilla interior? I just need to make sure all interiors have tge same chance, or close to it, I wouldn't mind vanilla with 40% while the mods with 20% each, as long as doesn't break the game, nor repeat the same interior over and over again.

Another thing is to go over the 100%. The moreinteriors is 150 to 50% because its counting only with vanilla, same way with Scoopy, its 300 because its counting only with vanilla, but all 3 togther I don't know what would happen.

I could let the default value, but what would happen then? 50% for each 4 interiors...
It's in the source code of the mods dll file. It will set the weight (spawn chance) of the interior. Most of the time a mod will use a value between 0 and 300. The base game dungeon uses a weight of 300. However, if the weight doesn't use vanilla values i could set a weight of 1 = 100% if i wanted.
D.A.R.K. Feb 21, 2024 @ 3:40am 
Originally posted by B〄F Altonator:
Originally posted by D.A.R.K.:
Do you know what file shows those intels, and the file related to the vanilla interior? I just need to make sure all interiors have tge same chance, or close to it, I wouldn't mind vanilla with 40% while the mods with 20% each, as long as doesn't break the game, nor repeat the same interior over and over again.

Another thing is to go over the 100%. The moreinteriors is 150 to 50% because its counting only with vanilla, same way with Scoopy, its 300 because its counting only with vanilla, but all 3 togther I don't know what would happen.

I could let the default value, but what would happen then? 50% for each 4 interiors...
It's in the source code of the mods dll file. It will set the weight (spawn chance) of the interior. Most of the time a mod will use a value between 0 and 300. The base game dungeon uses a weight of 300. However, if the weight doesn't use vanilla values i could set a weight of 1 = 100% if i wanted.

It's working, but I still don't know the probability. What I did was to set the default value of the mods to half, since they are already in half, this put them on one quarter, which would, probably, work correctly. So, by what the Mod is saying, I have 75, 75, 150, vanilla.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 20, 2024 @ 11:27am
Posts: 5