#Scarlet Devil Mansion v2.2(紅魔館)

1 messages · Page 5 of 1

dim basin
#

any ZIP is also a compressed package, etc. Package just referring to multiple files with a container.

#

Ahh yeah, you're good. It's an older term, and/or more Computer Science than lay term.

tranquil frigate
#

Fo sho

#

Thanks for infos

dim basin
#

yw 🙂

tranquil frigate
#

Released the update with the not evil netcode, more configs, and a preset for smaller lobbies. Also I made the branching paths a bit shorter on average.

#

Also I'm sorry to say but for those using AC, I temporarily removed the code that let my dungeon's custom features work with AC. The dungeon should still work (I hope), but the custom items, enemies, and some of the configs won't work.

#

Some of the new configs I added requires me to add some code to get it to work with AC, but with the whole current AC and LLL shebang, I'll wait for things to cool down (and more importantly the code).

#

I will get the AC combability code working again for v1.3 don't wory. These current updates are mostly housekeeping and preparation for v1.3

meager acorn
#

I'm having the flashlight too issue even with reservedcore disabled. I pick up a D. Proflashlight and I can no longer interact with anything. It also turns into 2 different flashlights in my inventory. Not sure what is conflicting with it.

#

this is what pops up when i pick up a flashlight

#

basically the end of it and then my game will either close or hang after a few seconds

#

018ded10-e174-ae95-336f-27ead7382a29

tranquil frigate
#

I said two tongue emotes a day, and you did actually followed through. Respect

amber osprey
#

are these properties now defunct, in favor of the DunGen block properties? I should delete these from the config file right?

tranquil frigate
amber osprey
#

my config has both

tranquil frigate
#

You probably have to create a new config file

#

To get rid of the useless configurations

#

Since bepinix doesn't do it automatically for us

amber osprey
#

kk

simple skiff
quiet pecan
#

So wait, Scarlet Devil Mansion requires OdinSerializer now? I previously rejected LC_Office from my mod profile due to what I considered excessive additional dependencies including OdinSerializer, though the primary concern was LethalNetworkAPI. I understand if there's a security concern with the vanilla .NET serializer, but upon reading the linked articles about the security threat, it seems to be a design issue with the concept of serializing and deserializing in the context of .NET classes that is considered a Hard Problem to solve which is why Microsoft is giving up. So I looked into OdinSerializer and I see literally nothing about security. I googled for other places talking about OdinSerializer and I see literally nothing about security. So whatever vulnerability BinaryFormatter has, OdinSerializer probably also has it. OdinSerializer explicitly supports polymorphism, which is where in principle this vulnerability lives. If anything, OdinSerializer is probably less secure because it has the same vulnerabilities as BinaryFormatter plus whatever mistakes might have been made by its small devteam.

#

If we're to take this as a legitimate concern (and we should, since it appears to be used to send network data between clients, so a malicious client could hypothetically send a malware payload to pwn any other connected clients), then I don't think the lesson is "switch to another flavor of .NET serialization that hasn't even tried to ameliorate this security issue and indeed seems to be completely unaware of its existence", but instead to not use class-augmented serialization in the first place. The lesson, then, is to use something that cannot remotely execute code at all, like JSON (if using some flavor of Json.NET then you need to be sure to use TypeNameHandling.None or else it behaves the same way as BinaryFormatter/OdinSerializer and has the exact same vulnerability) or DataContractSerializer (what CSync uses).

tranquil frigate
quiet pecan
# tranquil frigate You can take this up with Lordfirespeed and Albino. I have no real concern over ...

Oh no, that's fair, and you were right to switch. Especially if not using BinaryFormatter is considered a requirement now. I'm just concerned that the switch was like a new coat of paint that didn't really solve the security problem. If you were to switch to Unity.JSON or DataContractSerializer, then the vulnerability would probably be fixed for real, and you wouldn't need the extra dependency added to mod lists. Personally, I don't play in public servers, so the threat of one of my friends taking remote control of my computer isn't all that scary. Though I do try to minimize the number of APIs in my modlist because each one increases the surface area for potential slowdowns and desyncs.

#

I'm usually apprehensive about pinging people outside of direct replies, especially moderators, but your status does say "feel free to DM me" so hopefully this is okay. I may be totally off-base, but I'm not sure switching from BinaryFormatter to OdinSerializer is really accomplishing anything except adding a dependency. Can you take a look at my concerns here?

dim basin
#

(And yes, always feel free to ping/DM me.)

quiet pecan
dim basin
#

Checking...

#

Odin Serializer seems to have many different paths of serialization, including Binary, but also Text. Now, all binary serialization isn't bad, only the C#/dotnet implementation(s).

#

Short answer: I don't know, maybe? But not reported/known to be vulnerable.

tranquil frigate
dim basin
#

NewstonSoft.JSON is the other option lol

tranquil frigate
#

I know I'm probably mostly overreacting with the unknown amount of time. But time is a precious resource as I'm mostly a one-man team.

dim basin
#

but odin-serializer does it beter iirc

#

but like, in the scale of 300 mod packs, does +1 dep matter much?

tranquil frigate
quiet pecan
#

Well I personally don't play with 300 mods. My current list is 33. But anyway, I've spent the past couple of hours looking through OdinSerializer's API documentation and source code (I started looking before my first message, decided the situation was unclear, and then redoubled my effort afterward) and I'm no closer to an answer. Scarlet Devil Mansion passes a null SerializationContext, which looks like the correct thing to do, but from what I can understand it doesn't mean no SerializationContext, it means the library creates its own SerializationContext through means I don't fully understand. Does that context allow for binding type names and enabling malicious class initializers or getters to run? Who knows. I just hope people smarter than me take a second look at this issue and consider for the future instead recommending DataContractSerializer, which is known to be safe (when used correctly, that is restricting the Type that can be serialized) and doesn't require a dependency. Or NewstonSoft.JSON, or Unity.JSON. I don't even know which would be the best solution.

tranquil frigate
#

As far as I know, I give Odin a class, it gives me bytes. The class has 1 string, a bunch of data value types. Can it be hijacked idk? I just use the base feature that Odin gives me

quiet pecan
#

I guess it's also possible that Lordfirespeed will chime in and point out that I'm being foolish. If that is the case, so be it. I can live with another dependency, especially if the appeal of OdinSerializer is that it's easy for modders to use. Should I ping him? Should someone else?

tranquil frigate
#

Ping whoever is awake lol. They usually respond

quiet pecan
#

I feel like I'm already being too much of a bother, so I'll just accept using OdinSerializer. Oh, and thanks for the awesome interior as well as all the config settings for it.

tranquil frigate
#

I use OdinSerializet for two functions and that's it. It's really not that necessary

shut lake
#

Did you figure this out?

tranquil frigate
#

Tonight I will (it is tonight now for me)

tranquil frigate
tranquil frigate
#

Its... MoreCompany's fault?

#

For the nerds interested, I use the PlayerController's Awake() function to create the colored lights. I use Awake cause it should only ever be called once. And somehow MoreCompany used a technique that would make it be called twice.

#

This is the 2nd time More Company has done unspeakable things to my ass

tranquil frigate
#

For real

timid surge
#

what exactly did it do to call awake a second time?

#

not sure if it would be relevant to any of my mods, but it does sound a bit concerning

tranquil frigate
#

It creates extra players but duplicating the last Player gameobject

#

As such, every player past the base game's 4 players gets two Awake/Start/OnEnable() functions

timid surge
#

wait, does instantiating from an existing object do that??

cerulean ether
#

So the bug never occurs before 4 players?

#

Or well, 5

tranquil frigate
#

Yuh

#

I have the boring logs to prove but

#

Flashlight Index 0. Count: 2
0: flashlight
1: bbBulbLight
2: laserLight
Created helmet light for scarlet flashlight at index 3
Flashlight Index 1. Count: 3
0: flashlight
1: bbBulbLight
2: laserLight
3: scarletlight0
Created helmet light for scarlet flashlight at index 4

#

Did you know there are three lights on each player, now you know

#

Well, I just add two on top of it, nothing crazy

timid surge
#

oh yeah, I've seen em while I was working on body cams

tranquil frigate
#

Until

timid surge
#

but I wonder what the stack trace for those two calls is? Awake() should be called where the object is instantiated

tranquil frigate
#

[Info :MoreCompany] ResizePlayerCache: 7
[Info :MoreCompany] Resizing player cache from 4 to 7 with difference of 3
Flashlight Index 0. Count: 8
0: flashlight
1: bbBulbLight
2: laserLight
3: scarletlight0
4: scarletlight1
Created helmet light for scarlet flashlight at index 5
Flashlight Index 1. Count: 9
0: flashlight
1: bbBulbLight
2: laserLight
3: scarletlight0
4: scarletlight1
5: scarletlight0
Created helmet light for scarlet flashlight at index 6

timid surge
#

calling awake() upon instantiating an object seems like it would break a lot of assumptions

tranquil frigate
#

It resizes the player count, by just instantiating (copying) an already instantiated player, which means that Awake() is effeciently called twice on these players.

tranquil frigate
timid surge
#

ohhh wait I think I get your point now

#
  1. original 4 players awake(), instantiate their flashlights
  2. expanded lobby code runs, duplicates one of the 4 players with existing flashlights
  3. awake() is called on the duplicated players, creating more flashlights
tranquil frigate
#

yuh

timid surge
#

I got the impression that the Awake() was being called twice after Instantiate()

#

but that may have been me misreading something

tranquil frigate
#

Well ya you right. My wording isn't the clearest

#

Well, I just gotta add some extra checks now

#

And more fallbacks!

timid surge
#

the most foolproof way would be to make a component that spawns those

#

that way you can only add them once

cerulean ether
#

You can fall back, I promise I'll catch you :p

timid surge
#

makes it easier to get a reference to the instance of a flashlight's light for each player too, I would presume

past lily
#

yo lads i know this is extreamly unrelated but anyone know any mods for a monster hunting pack

tranquil frigate
#

Nopez

tranquil frigate
timid surge
#

yeah pretty much, but since you can only have one of a component, you don't even have to check whether it's been created

tranquil frigate
#

Ya your right, that's a whole bunch smarter actually

timid surge
#

if you do
__instance.AddComponent<ColoredFlashlights>() from Awake(), it'll only create one instance of the component on that

tranquil frigate
#

And I can call GetComponent to know if it's added or not already

#

SmartsSmarts

timid surge
#

but there's no need to check that unless some other mod interferes

#

if you add the component in Awake() and never remove it, there will always be one instance of the component on all players

tranquil frigate
#

AddComponent<> doesn't check if the same component already exists I'm pretty sure. You can have duplicate Components on the same gameobject even if it isn't the most recommended thing in the world to do

#

I know I use duplicate box colliders every so often on the same gameobject

timid surge
#

oh huh

#

I thought I had tested that but perhaps not

tranquil frigate
#

Maybe it's [DisallowMultipleComponentAttribute] you are thinking about? I can see that prevent component duplication.

#

But you have to specify that a component can't be duplicated. Not the other way around

#

At least, I'm like 95% sure I can't say for 100% sure

timid surge
#

I wasn't aware of that attribute actually

#

I suppose had I seen that before I would've known it does allow duplicates lol

#

Unity documentation likes to omit very important details pretty often unfortunately

tranquil frigate
#

tbf, I rarely ever use that attribute

#

I just inheritely know that I shouldn't add duplicate scripts in 99% of cases

timid surge
#

same

tranquil frigate
#

but GetComponent is cheap, nothing to worry

timid surge
#

I haven't really had to do that in a while though actually

#

yeah

tranquil frigate
#

@shut lake @meager acorn @silver hare @strange umbra Fixed the flashlight bug. While I said earlier it was a buggy interaction with MoreCompany, considering Aeniema was using AC, it may just be a weird interaction with how lobby player increase mods work. Nerd shit aside, it's been fixed. The fix will be out in a bit.

meager acorn
#

🥳

tranquil frigate
#

Alright for real this will be the last patch for v1.2. Considering how much work is ahead of me for v1.3 (especially with two level loaders now), it will be a fat minute until then.

#

Like, how are you supposed to find these bugs in the first place

#

Who has literally 4 friends on standby to find these bugs before pushing them out

#

Friend advantage too strong

tranquil frigate
#

I can try again later, but if I can't serialize my data classes, then it just ain't gonna work

nimble delta
#

(but really, solid work on updating this even more - even after ye wanna take a step back for a tad bit 😅 )

tranquil frigate
#

i only got like 15 days until I become completely and utterly busy

#

So I'm making those days count until then

nimble delta
#

and only when you're 2 days into super-busy: "DEV, SUPER GAMEBREAKING BUG~"

#

... - w-

tranquil frigate
#

I dont typically leave in super gamebreaking, computer destructing, balls shattering bugs that take days to fix

#

i say that but the flashlight one and the painting was one of those

#

but i realized the issue, it was fixed quickly

nimble delta
#

but the rest, understandable 👍

tranquil frigate
#

thats it

#

demonic paintings now have a 10% of spawning in a already pissed up jester

nimble delta
#

😭

#

actually that would be creepy

#

to spawn in a jester that forces to start winding up immediately

tranquil frigate
#

oh you didn't notice?

nimble delta
#

i haven't played in like... many days... due to the nuclear fallout of what happened in the server XD

tranquil frigate
#

may God pray upon you when it happens, wink wink

nimble delta
#

I guess I could also set like.... ... I guess like I could still balance interior generation rates 'n such.... even if the pack can't be played... till replacement mods come out of the woodwork... (hopefully)

tranquil frigate
#

what chu on about

nimble delta
#

o- o

#

As in I could still balance interior generation rates by simulating with LLL

#

I haven't truly gone in to type "simulate" and every single different moon to make it feel right

#

I sort of expected every moon to have more-or-less same weight distribution by default

silver hare
tranquil frigate
tranquil frigate
silver hare
#

Yeah, I'd have to update the pack and convince all the guys to go running around looking for the flashlight shit so we can do some testing and I don't think that'll sound very appealing sadly

tranquil frigate
#

Oh you fine. Like I said it's only when the lobby size is 5+, not actual player size, just when the lobby has been decided to be 5 players max

#

Or its better to say that it used to happen. It shouldn't happen again, and if bugs arise again I put a killswitch for the colored flashlight to act like a normal one

silver hare
#

That specifically and only that? kind of weird but alright, i'll take your word for it

#

good idea though

tranquil frigate
#

The bug was just unexpected code/mod interaction. Which is why it sounds so weird

silver hare
#

Yeah, you have a point there

tranquil frigate
#

btw yall can enjoy this wip image (minutes before a bracken snapped my neck during testing)

timber moss
#

(he cannot the roman numerals)

fallow prairie
#

ooo clock

#

will it move throughout the day?

opal wigeon
#

semi unrelated but my lord would a bloodborne esque dungeon go hard

tranquil frigate
#

the clock will indeed move throughout the day

#

and do other fun things as well

dusk maple
covert tartan
#

I heard this isnt working with AC, is there any reason why

covert tartan
cerulean ether
tranquil frigate
# covert tartan I heard this isnt working with AC, is there any reason why

It's really a case of, I need to add more code to AC for a recent feature I added, but it was in the middle of the AC/LLL thingy, and I heard another feature wasn't working with AC already, and how does AC work exactly with LLL now, etc. There were too many problems at the same time so I just said f' it. I'll disable the AC features, say it probably doesn't work so people don't play it and get a buggy experienc. But in a week's time, I'll do it again all correct and right once everything settles down.

#

Since these last updates don't have any real new features, just housekeeping stuff and bug fixing, yall wouldn't lose much anyway (except maybe the bug fixing)

#

But all that housekeeping stuff is done now and the AC's LLL code looks calmed down now too, I can go back and get it all working

#

I do estimate that it will be 3-4 days until v1.3, which will have two new dungeon door features (one fun, one pain), and AC/LLL compatiblity working. I do apologize for the wait.

#

@covert tartan I hope that makes sense

quiet pecan
# tranquil frigate I did check if I could just use Unity's in-built JSON thingy but maybe I'm doing...

I think JSON only works on objects, not classes, which is what makes it more secure than a (de)serializer that supports classes. You can serialize an instance of a class, but it won't retain any of its classiness in JSON form, though Unity's JsonUtility allows you to specify a class on the deserialization end. That said, I also think JSON is slower than binary serializers. The option that's both fast and secure is probably DataContractSerializer, which is what Owen3H's CSync uses. Incidentally, maybe you were doing everything correctly with JsonUtility but the reason it wasn't working is that you're hitting the bug fixed by the FixPluginTypesSerialization mod. But I dunno. 🤷‍♀️ Whatever the case, I don't think worrying about this is a priority. I'd rather see 1.3 released with AC compatibility. 🙂

tranquil frigate
weak stag
#

Was funnier because he was using a Marisa skin

cloud adder
#

only take it if you really have nothing to do

#

i had a friend with me and we took both sakuya's and remilia's

#

sakuya being in basement, and was lucky remilia was near fire exit

weak stag
#

yeahhh, i mean its like apparatus
you typically wanna get it last

hard mirage
#

Doesn't the black mist on the doorways get removed after a couple of seconds?

#

Also your friend got lucky that it was a Nutcracker. For my case, a winding Jester spawned and I was a bit far from the Main Entrance. Good thing I stumbled upon a familiar area and managed to blitz to the main entrance with a popped Jester just an inch away from me before I got out. Truly one of the scariest LC Modded experience I've had

weak stag
weak stag
#

actually, that reminds me
Perhaps you could add a config option to list the names of entities to spawn from taking the paintings?
(Could go one step further and let people specifiy weights like how you would with the interior spawn chances on different moons but thats not neccesary)
That would then mean we could add custom enemies to be able to spawn
I'd love it where taking the painting could spawn a herobrine or a Shy Guy
@tranquil frigate

amber osprey
#

Or along a similar vein, is it possible to have coilheads not spawn on the map, only the knights? They do the same thing so I'd rather have just the knights since they're more thematic.

weak stag
#

o, that too
I havent seen a normal coilhead on the scarlet mansion tho tbf

#

only the knights

cloud adder
#

i think it could be a slight conflict tho possibly

#

since i have the scp 173 one

#

only seen one actual coilhead spawn and knights are common

amber osprey
#

I've seen normal coils

cloud adder
#

i am positive the scp173 is only the chance for scp 173

#

and doesnt play around with coilhead chances

#

so it should be too much of a conflict and if it does, nothing should happen since a override should happen?

weak stag
cloud adder
#

oh 4 out of 5 times i took the painting btw

#

3 knights, 1 coilhead

#

the last one being a thumper

amber osprey
#

Yeah I think the times I've seen coilheads has been from paintings

#

Not sure if it was all of them

weak stag
#

I have had 2 mimics, my friend had the nutcracker and thats all i can remember

cloud adder
cloud adder
weak stag
cloud adder
#

the issue with them is they can go outside

weak stag
#

true, tho i have lethalescape on
For me the main issue is the fact you dont get the body back

tranquil frigate
#

The painting enemies are spawned from a random list of approved enemies, if that enemy can spawn from that moon

#

And it doesn't account for any spawn weight, so technically all enemies are equally weighted

#

As such, when I add those configs, it will just be editing a string of the enemies that can spawn and kill you, along with their weights if you want to edit that.

tranquil frigate
#

it can include modded enemies, it just compares the enemy's internal name

#

|| "knight","crawler", "nutcracker", "springman","maskedplayerenemy", "jester" || the current enemy list. the config will just be you expanding this to your heart's content

hard mirage
#

oh boy

#

cant wait for any of us to have shy guy spawn in the room with us

tranquil frigate
#

nice

#

we love to see it

#

seeing each other shit their pants

weak stag
weak stag
formal kraken
#

By the way

#

Do the knights still spawn if coilhead rarity is set to 0?

#

And is there a way to make ALL spawned coilheads into knights instead?

tranquil frigate
tranquil frigate
light talon
#

wheres the config file?

granite meteor
#

Should be called ScarletMansion

#

Did you boot the game up to generate it

light talon
tranquil frigate
# light talon yeah, not showing on the config folder tho

Two things. One make sure you run the game first with my mod. Two, I use three different names (Alice [Thunderstore], ImoutoSama [Mod], LadyRaphtalia [Discord]) and the mod name in code isn't the even the full name of the mod in Thunderstore (ScarletDevilMansion vs ScarletMansion).

#

So I don't blame you for it being hard to find

polar jackal
#

I have yet to see the ghost girl in SDM so if you have already done something like this. Oooopsy. 😛

tranquil frigate
#

I so want to add her

#

I keep promising her

#

But the person I asked to help me get the original Flandre model from my prev games, so she can be renderered properly in LC is just too busy.

#

And while I'm half decent in programming I think

#

I am such dogwater when it comes to shaders

dusty sparrow
#

interesting

hard mirage
#

She will drag you to her basement and make you play her stage 👍

lost rampart
cinder kettle
#

a setting to disable the knights or reduce their spawn chance would be nice

tranquil frigate
lost rampart
tranquil frigate
#

But I must say that my first impression is that my mod can't be causing the bug. But at this point who knows

#

Ty

lost rampart
#

I'm not sure where the bug is coming from tbh but I just brought it up to both involved mod authors since it doesn't happen if SDM is disabled

#

Not sure if there's any actual consequences to the error though

cloud adder
#

lmao

hard mirage
#

So let me just ask

tranquil frigate
#

No

#

Go ahead

hard mirage
#

oh sorry you see my stupid abc shit

#

i screenshotted too fast

#

(Updated the ss)

Does SDM have some weird interactions with CullFactory when I turn this on

tranquil frigate
#

I didn't see nothing so all good

#

Uhh I'm not too sure, this is probably more of a @timid surge question. My dungeon is close to a vanilla dungeon so if it works for vanilla it should work with those settings

tranquil frigate
#

@weak stag @cloud adder btw btw, i forgot to ask. I would love to have your feedback on the recent dungeon generation (if you were playing after v1.2.10).

#

My gamer friends are too busy being gamers for other games so I can't test my own dungeon atm

weak stag
tranquil frigate
#

The main changes I made recently is fixing the scrap spawn to be better spread out (and not spawn primarily in the upper floors), and making the dungeon a bit more smaller

#

The grid-shape makes more sense, I decreased the hallway tiles spawn chance in general (especially for branching paths), but I'm not sure how that feels fun/gameplay wise yet

weak stag
polar jackal
uncut geyser
#

@tranquil frigate Searching for a nutcracker and he blasted me through a wall, or door? Anyways he was cheatin

pseudo current
cloud adder
silver hare
# tranquil frigate The grid-shape makes more sense, I decreased the hallway tiles spawn chance in g...

I think this was a good idea, it felt kind of easy to get lost with so many hallways, especially when they're dark. As for the scrap though, it seems really hard to find sometimes on default settings. I had originally turned scrap spawn rate up a bit, but when you came out with the presets I decided to try out the new default just to see what that was like in hopes things had improved. The dungeon layout seemed less confusing but there'd be several times where I'd run all the way to the end of paths and find nothing. Maybe that's how it's supposed to be, I don't know.

tranquil frigate
#

You can also see this happen with coilheads, it's strange. I can see what I can do but I do warn you that it may be impossible within the scope of my mod

tranquil frigate
amber osprey
#

Had one player in party desync when the map was SDM. He had facility layout while everyone else had SDM. He would just fall through the world of the facility out of bounds, get teleported back to the entrance, and repeat.
Was able to teleport him back so he was a loot runner that day but still unfortunate.

tranquil frigate
tranquil frigate
#

I don't know which one is the "correct" thread but they should know

amber osprey
#

Thanks I'll try asking

tranquil frigate
#

i have to no idea what im doing with graphs
I checked the distance that scrap would spawn in Experimentation. It looks like 60% of all loot spawns within 60 distance from the entrance, which I believe is about the same distance as two mayors back to back.

#

And go figure, most scrap spawns in the middle, center floors

#

But I know for a fact that regular dungeon scrap like to spawn at the entrance too, to which my map does very rarely

opal wigeon
#

its done by getcomponentsoftype which sorts through the scene in order

#

so if the main entrance is the first thing made the randomscrapspawns in that room will be the first in that list

#

i think

tranquil frigate
#

let me see

opal wigeon
#

you could probably normalize it abit by sorting that list by distance and using a function or two if you catch my drift

tranquil frigate
#
randomScrapSpawn = list4[this.AnomalyRandom.Next(0, list4.Count)];

this function implies that the scrap spawns are still chosen at random

#

what I believe the issue is, the tiles that connect after the mayor are always hallways (which have a low chance for loot), then it has a chance 50/50 chance of connecting that hallway tile with another hallway tile (again low chance for loot) or room tile (high chance for loot). It takes a while to even reach a room that will spawn high amounts of loot.

#

I also had to reduce the spawn range for each scrap spawn, since if I don't, the randomly chosen position loves to connect to the upper floors and all the scrap will spawn there. The scrap spawn for base game LC has a huge spawn range, which is why you will see scrap randomly in hallways.

#

So when we combine all this, scrap is gonna naturally spawn further away from the entrance, which is a huge contrast to base game LC.

#

And it creates the feeling of little loot

#

I'm not entirely sure how I can address this without changing the whole dungeon at its core, but I'll be thinking about it. I know I can encourage scrap to spawn closer to the entrance, so I may start there.

tranquil frigate
#

These will be changes I will try for v1.3.1, I know I promised something else that update but I'll do that as well

uncut geyser
tranquil frigate
#

i would have to see what turrets do differently than the shotgun

#

my doors are exactly (basically anyway) the same as the base game doors, so i carry over any base game bugs

#

@uncut geyser yuh, the turret and shotgun work completely differently. the shotgun ignores the InteractObject layer (how you interact duhh) and the door collider is actually just one InteractObject collider blocking you

#

If I were to guess, it's so enemies can see though doors to get you, it just has the unfortunate side effect with the shotgun being able to shoot through doors

uncut geyser
#

That makes me wonder if the mod to make the shotgun fire pellets fixes that

tranquil frigate
#

It's difficult to say. The bug is deep enough to be annoying to fix

#

I will remedy it on my end by not fixing it all, and instead having the door being blast opened

tranquil frigate
balmy ibex
#

wtf agony i can jumpscare my crew now

#

but does the shotgun shoot went past the destroyed door ?

tranquil frigate
#

it works the exact same way as vanilla, so yes

#

the shotgun just has code now to destroy my doors specifically

balmy ibex
#

cool
if only the knight would stop the funi step sound while breaking doors, but i guess at that point u gonna be far away enough to not hear it
is it just the knight or other mob can do that too ?

tranquil frigate
#

the coil head is the same thing

#

hell both the coil head and knight can techinically break doors even when they are staying still

little tundra
#

can even locked doors break or would that be OP?

tranquil frigate
#

All doors can break. Locked doors instead break 50% slower (though I could adjust this).

balmy ibex
#

a config for that def would be great

tranquil frigate
#

How can I not say the funny c word

#

Yuh, I know a few mods like using locked doors as the ultimate enemy prank tool. So I'm trying to accomindate that a bit

#

Ill add the shovel interaction tomorrow, and fix the AC mod integration.

#

Maybe a day or two the update comes out, depends on the moon's orientation

little tundra
#

I actually like that locked doors can be bypassed with a shovel, gives SDM more mechanical uniqueness

cloud adder
#

so like a event, it becomes more tough

nimble delta
tranquil frigate
# cloud adder make this configurable

all in due time. However, I must make you guys try out the feature (to catch bugs and see if its even fun), before I give you the option to disable it.

cloud adder
tranquil frigate
#

Oh I should had worded that better

#

The multiplier speed that locked doors break would be able to be set to 0, meaning that locked doors don't break open and its becomes the vanilla feature where locked doors are impassible by monsters.

#

The regular speed for doors to break open in general? I suppose I can expose that too

cloud adder
#

yea, the regular and locked doors settings would be nice to have

quiet pecan
# tranquil frigate I'm not entirely sure how I can address this without changing the whole dungeon ...

The vanilla mansion can spawn loot in the entrance foyer, but I've never seen SDM spawn loot in the entrance foyer (even after numerous tests with insane loot multipliers just to be sure). Changing that could help the loot distribution. I'd also suggest allowing a bit of loot to spawn in the garden when it returns, since vanilla fire exits are sometimes attached directly to loot rooms. With zero chance for loot, the garden, cool as it may be, is just a big huge room of nothing to trudge through, and this makes entering by the fire exit less attractive if you know or suspect an SDM interior.

#

Incidentally, speaking of the entrance foyer, can the chandelier light be brightened up and made yellowish like other mansion light sources? It's really dim right now (SDM as a whole feels a lot dimmer than other interiors, and not just in terms of light distribution but also, I dunno, the albedo of the surface materials?), and the vanilla standard is for entrances to be very bright so they're recognizable from a distance.

tranquil frigate
tranquil frigate
#

Oh and thanks for the write up, two heads better than one

quiet pecan
#

I really liked the look of the garden tile, though I'm still not sure how the interior copes with moons like March that have multiple fire exits. I did test a few times and got a few of those "entrance blocked" messages, but that could have been mod incompatibilities, and I didn't test it extensively. The garden was removed before I had much of a chance to play with it.

tranquil frigate
#

Oh that's cause the garden's existence forced a single exit door. I was never planning to extend my dungeon past the snow maps until it happened. So I reverted back to normal fire exits (though I need better visuals for the exits)

#

I may consider the original garden tile as an alternative entrance tile, but I'll consider it later

quiet pecan
#

Fair enough. And you may choose to stick with that decision and that's fine. A mansion doesn't belong on March anyway, in my opinion (it's the only vanilla moon with a 0% mansion chance). However, keep in mind that multiple fire exits is exceedingly common for modded moons. I have several of them and I don't think a single one of them has only one fire exit. And I love putting SDM on some of them...

tranquil frigate
#

Yuh custom moons love multiple fire exits. It's also the reason I just had to have normal fire exits

#

Better in the long run

quiet pecan
#

Making the garden a possible room for one fire exit could solve that problem and also ward away the dungeon generation stall if it has trouble placing the garden: then it can just not place it.

tranquil frigate
#

I believe it's better to rework the garden tile when i re-add it. I gave it multiple doorways back when I was crazy with the multiple branching paths

#

I had to cut down on it to keep the dungeon' size down

#

So if it's gonna have multiple doorways, well aint that just the entrance tiles?

#

Or make the garden tiles much smaller and act as an alternative looking hallway path

quiet pecan
#

Another thing to consider if the regular fire exits stick around is their appearance. Being a pitch-black rectangle in the darkest interior leads to me often losing track of a fire exit within 15 seconds of entering by one. Then I stumble around trying to find it again. I don't think it would be too jarring to just use the vanilla red exits with the red lights above them. The vanilla mansion does it and it's fine. It would also make SDM compatible with mimics (unless it somehow is already and they just appear black?).

tranquil frigate
#

Ya that's my point earlier with the fire exit textures/visuals being bad

#

I still don't want to resort to copying the og fire exits just yet. But I can add a feature where the mimics mod can copy the og fire exits just for that mod compatibility

quiet pecan
#

Like a config setting to use the OG fire exits in SDM, so that Mimics are indistinguishable? That'd be cool.

tranquil frigate
#

It'll be 1.3.2 feature, or really any version past that one

tranquil frigate
#

Shovel added, AC integration works. I was too worried by apologies AC bois.

#

I gotta test out the netcode before I release the patch

cinder kettle
tranquil frigate
#

im missing some advanced TRS math to get it right, if that sounds like nonsense because it is nonsense to me too

thorn heron
#

Hey, I dont know if this is normal or not but im getting funky errors in my console and I just wanna make sure things are alright

brave pendant
thorn heron
#

thanks

tranquil frigate
# thorn heron

I'm looking to get the update out tonight (my tonight in 8 hours or so), which will have the AC compatibility code

glass walrus
#

Any way you could make the upgraded flashlights work with reserved flashlight slot? The laser pointer works in the slot so I don't know if it's as simple as a tag or something on the item

tranquil frigate
#

Not that the code was bad

#

But there was a lot of moving parts and I didn't want to deal with it

#

I think the dev is here? So I'll try giving them an ask for an ez solution

glass walrus
glass walrus
tranquil frigate
#

Ahh they may been the peeps with the separate discord

tranquil frigate
#

I'll try giving them an ask later but that mod compatibility isn't a priority sorry to say

glass walrus
tranquil frigate
#

v1.3.0 update is out. Features destructible doors and AC compatibility

tranquil frigate
#

Next few updates will be dungeon fixing/tuning and mod compatibility fixes

#

Then mostly new tiles from there

vapid yoke
#

Actually would make for a good detail if the vanilla mansion doors were destructible, considering they appear to be wood-like and all that . < .

tranquil frigate
#

Oh do you mean like my mod should add that feature or you just saying that as a wishful thought?

vapid yoke
#

Just saying it as a sort of wishful thought for some other mod

tranquil frigate
#

I get chu

#

Anything to blast open the locked doors that prank me hard

wide elm
#

maybe talk to him since he's handling door stuff already

#

another cool one is for the bracken to have a new phase 0 where he camps the doors and follows the players in to pick them off.
and yeah it'd make more sense if the monsters broke doors down instead of opening them except for the masked

#

spiders shouldn't be able to open doors period they just have nubs and they dont have the shape to rotate a fixed object lol

frozen nacelle
#

[Error : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ScarletMansion.GamePatch.DoorLockPatch.OnTriggerStayPatch (DoorLock& __instance, UnityEngine.Collider other) (at C:/Users/Jose Garcia/Desktop/LethalCompany Modding/ScarletMansion/ScarletMansion/GamePatch/DoorLockPatch.cs:27)
(wrapper dynamic-method) DoorLock.DMDDoorLock::OnTriggerStay(DoorLock,UnityEngine.Collider)

tranquil frigate
#

Well thats not a fun one

#

let me see real quick

frozen nacelle
#

thanks

tranquil frigate
#

WHOOPS

balmy ibex
#

what kinda stuff u put on the door

#

😂

frozen nacelle
tranquil frigate
#

not their fault

#

i made a bad oopsie

#

hotfix be out in a fat second

#

pushed the hotfix, my apologies @frozen nacelle

frozen nacelle
#

I'm glad you brought a fun dungeon. Thank you for repairing it in a timely manner

#

👏

tranquil frigate
#

🫡

tranquil frigate
#

While I have these last 9 days before the updates become unpredictable, besides the changes (loot, increasing the brightness a bit) I'll be making today, what are some things yall would like prioritized

tranquil frigate
glass walrus
quiet pecan
silver hare
# tranquil frigate While I have these last 9 days before the updates become unpredictable, besides ...

A few suggestions of things to add:

  • I think someone might've mentioned it before, but the option to disable coilheads and just have the knights (to keep the theming) would be good, unless you plan to make that a permanent thing.
  • The ability to customize the door breaking – enable/disable and if it can be done with shovels. Shovels might be seen as an overly easy way to get through locked doors. It’d also be good to make clear what enemies can break doors (and possibly make that customizable) as well.
  • The ability to customize what enemies can spawn when you take one of the demonic paintings and the spawn chances. As funny as the possibility of an angered jester spawning is, I think it’s a bit too evil. If it can somehow be made compatible with FacilityMeltdown that’d be convenient, but if not I understand.
  • The ability to customize the spawn chance of the decoration crystals. It’s possible people with mods that add new types of scrap (like myself) may need to increase the weight of them appearing to reliably find them. I’m pretty sure this is the case since, as far as I can remember, my group has only been able to find them once out of our handful of playthroughs.
quiet pecan
#

Those are all good suggestions. I'm all for more config options. Even though I personally would prefer to leave shovel bashing doors enabled. Mansions (including SDM) spawn more doorframes that seem to be more likely to contain doors, which means more chance of locked doors. By contrast, most facility interiors are like 60% tunnel maze by volume, which means 60% less chance of locked doors. This is why the key spawns on facility feel fair, but key spawns in mansions always seem far too stingy. I feel like being able to break down the doors is a fair tradeoff, and I wish there was a mod that added it to vanilla mansions.

#

I haven't seen an already angry jester, though an already-cranking jester would be straightforward. I wonder which one it can actually spawn? My rule for grabbing a painting is the same as my rule for grabbing an apparatus: "have I memorized the shortest path to an exit?" If the answer is yes, then a cranking jester won't catch me. If the answer is no, then I'm not grabbing it anyway. An angry jester from painting is likely instadeath for the same reason I feel a thumper from painting is kinda unfair unless you have a shovel: the shadowy door barriers stick around too long. I've had enough time for the thumper to charge at me three times and the doors were still blocked, leading to my death. In a small space, it becomes impossible to maintain the cadence of dodging a thumper with no room for it to accelerate.

tranquil frigate
tranquil frigate
#

If the doors didn't open when the thumper spawned, then that's a horrid bug. Please let me know when it happens again

quiet pecan
#

I figured that's what they're supposed to do, but I can guarantee I died inside a barrier-locked room. Maybe a mod incompatibility?

tranquil frigate
#

That's my guess, I even added like 30 fail safes so the gates always reopen

#

I assume the bug was recent? If so link me your mod list so I can find out why

#

I intended the bedroom to start trouble for you, not for it to kill you straightup lol

quiet pecan
#

I haven't managed to play with my group recently, so it happened on SDM 1.2.8. For all I know it's already fixed. And I do think it only happened the one time. I was confused because I thought I remembered it opening instantly on a preceding run.

tranquil frigate
#

Ohh maybe it's an old bug then, I did have a patch to fix it

#

If it happens again though, i need you to yell at me and to get the mods to yell at me

#

And also post the logs

quiet pecan
#

Incidentally, is there a reason why you condensed the changelog? I remember there being specific version notes for each version, including one version that removed AC compatibility (I don't remember which version it was, and the changelog no longer says).

silver hare
tranquil frigate
nimble delta
#

Your weight has went from 10 to 25. Hopefuly I spot it a bit more on random moons :3

tranquil frigate
nimble delta
#

CUZ

tranquil frigate
#

Destroy this dude

nimble delta
#

your place is scary -3-

#

n also I want it to be rare

tranquil frigate
#

And now your discord about to scary

#

Mods

#

Do it now

tranquil frigate
#

None of them are listening, you live for now

tranquil frigate
#

Don't mind me, writing a list of what I'll be doing in a public place so I can be accountable:
Another adjustment of the scrap spawn, primarily so scrap spawns near the entrance
Knight/Coil-head config
Deco-crystal config
Breakable door config (shovel, shotgun, enemy dmg multiplier for locked doors)
Fix pivot of breakable door pieces
Bedroom event enemy config
Fire exits config
Brighten up lights a bit (especially mayor)
Better lighting actually (with a pro nearby)
Fix door map radar size
Painting price config
Add shoulder flashlight spot
Fix lighting with the two 24x24 library tiles
Fix weird ass FlashlightDim bug
Whatever the heck happened to JDS bug
Fix LethalResance bug
Wall placeable paintings
Grabblable portraits

Mod combability:
ReserveYourFlashlight (I wonder if I could hack a fix)
FacilityMeltdown

#

<@&1173795317469159444> pin dis plz i would love you

tranquil frigate
#

based

quasi crest
#

fuck kittenji beat me

glass walrus
tranquil frigate
#

Uhh same thing basically

#

You know what I mean :^)

cerulean ether
#

Yw

glass walrus
#

I was just saying it more for your sake later😅

#

When reading it as a pin

little tundra
#

I just searched for ReserveYourFlashlight on thunderstore yep

tranquil frigate
#

Pushed the update with some of the configs that were asked for. Also item (and turret) spawns for the mayor room

nimble delta
#

is there new config stuff

tranquil frigate
silver hare
# tranquil frigate Pushed the update with some of the configs that were asked for. Also item ~~(and...

Pretty much everything seems to be working okay with the latest update, however when our group tested the new flashlight once again it does work now but still doesn't go into the reserved slot. So yeah, thankfully it doesn't seem to break anything now, though it still isn't 100% compatible. There were 3 of us this time rather than 5 so I don't think it'd be a similar error to last time. Here's the code: 018e1659-b300-2536-aef3-5a7bf35dd2f3 I'll also take this opportunity to say inverse teleporting in and not having a clue how to find the way out is an absolute nightmare and has resulted in us all getting lost and dying more than once, not sure if there'd be some way to build in a way for experienced players to find their way back to main like regular mansion has (hints/things to look for, for example how doors opening outward typically means main is that way) because that'd be a real lifesaver.

tranquil frigate
#

Second issue, skill issue

#

But for real, I'm down to create hints, just still lost on how to exactly without it being extremely obvious

#

I was going to make the floor textures be based on the floor of the dungeon, so you can somewhat know if you need to go up or down

#

I wanted cabinets and dressers to open as it's a clear marker for what you walked past, but then I would have to put loot in there and that sounds really annoying for the player to open every single one

#

I may turn the table portraits into items so players can grab it and leave it as markers, and bring it to the ship (they have no value though)

#

And I'll be adding a few new fun props everywhere, to which I can give them subtle hints for map navigation as well

#

Oh and the door opening inwards/outwards pointing towards the entrance may already be a thing. Which is the world's biggest hint

quiet pecan
#

I just now tested and the doors DO seem to consistently open toward the main entrance just like vanilla mansions. Which is good. Though I can't exclude the possibility of some edge case I didn't see.

tranquil frigate
#

This will only work for the doors of a room's doorway. There are a few doors that are inside the room that won't follow the above

#

But I think overtime you will get an idea on what those doors are, and to ignore them

quiet pecan
#

If you mean there are tiles that are subdivided into smaller rooms, then perhaps it would be possible to make those internal doors point toward the main entrance as well, when the tile is placed. That said, tiles that consist of numerous rooms is another contributor to the tendency for modded interiors to be larger than vanilla. For example, I think SCP Dungeon Interior thinks it's generating a vanilla sized facility (in terms of how many tiles it places), but its tiles are typically like twice the size of vanilla tiles, and, well...

#

Anyway, the changelog says the brightness patch has already happened, but I think it's still quite dim.

#

Vanilla on left, SDM on right. The big issue seems to be that the darkness itself seems to more aggressively eat into the light. Notice how in vanilla the light reaches far and fades out gracefully, but in SDM it barely reaches at all before suddenly stopping at a hard edge to pitch blackness. This connects to another thing that I had trouble capturing with screenshots, which is that the vanilla mansion is navigable without a flashlight just from the default player radius light, but SDM kinda isn't, because it feels like the default player radius light doesn't reach as far or illuminate as much. It's hard to judge the color of a monochrome interior in the dark, but while I intuitively imagine it to be white or light gray, I can't help but think it's actually a very dark gray?

#

It's also possible there's a postprocess filter situation I'm unaware of. For example, even the parts of the vanilla screenshot that are nominally pitch black like parts of the bookcases are still a much brighter shade of gray than the pitch black in the SDM screenshots. Likewise, I find that monsters and scrap are less well illuminated in Scarlet Devil Mansion.

#

As I sent the message about a postprocess filter, and I began to think about what else this situation resembles, I suddenly thought I might have made a very silly mistake. What this resembles is how some modded moons have postprocess effects like the bloom on Maritopia and EchoReach which accidentally also make their interiors brighter. So what if it's the moons? Well I'm only using vanilla moons for this testing. I've been forcing SDM on Assurance so it's fast to test, and I was testing the vanilla mansion on Dine because I can get to its entrance very quickly. Having them on different moons lets me visit both in the same session without restarting. But what if Dine and Assurance have different interior brightnesses somehow? Well I just forced SDM on Dine and the screenshot is identical, so much so that it's almost pointless to post it. So it's not the moons.

#

It just occurred to me that I was wearing a headlamp in the vanilla mansion screenshots. It wasn't actually turned on, but I guess that's hard to tell from the screenshots, so it's still suspicious. Here's a fresh screenshot of the vanilla mansion on Dine with no light source in my inventory.

tranquil frigate
#

I'm a complete dumbass when it comes to lighting so like a monkey on a typewriter, I've been throwing my shit at the typewriter in hopes that the lighting will look right.

#

I can spend another day with lighting, probably with someone who understands it, and see if I can get something better

silver hare
amber osprey
#

I think fire exit and main should be visible on monitor

tranquil frigate
opal wigeon
nimble delta
#

I don't know what to make of this specifically. Is this a conflict, does the snare flea turn into a knight when the dungeon is generated, or is it neither of this? . ,.

tranquil frigate
#

my knight has special loading rules since its not tied onto any moon, it only spawns when my dungeon loads

#

dont know what would happen if you do whatever you doing

nimble delta
#

I is usin' LethalQuantities to control enemy power levels, modify moons, etc

#

I just assumed Knight would be its own thing

#

but does knight's loading latch onto centipede somehow?

#

or is it somewhat attached to something - so thus I shouldn't fear for how this is called Knight(Centipede) o -o

tranquil frigate
#

I have no idea why it latched onto the centipede, they are not related at all

nimble delta
#

should I then take this to the quantities dev to see if something is being picked up incorrectly . ,.?

tranquil frigate
#

You can try. You should also mention that while I do load in the Enemy using LethalLib, it's not tied to any moon and it's directly injected into the moon's enemy list when my dungeon loads.

#

Also this bit of code one sec

nimble delta
#

I should also show this here I guess

#

One has in parenthesis (Centipede), and one has (Knight).

#

their IDs when moused over are correct

#

so I'mma 99% assume nothing wrong will happen

#

but I'm wondering why Knight latches itself onto Centipede name of sorts o -o

tranquil frigate
#

Don't know, maybe you have a mod that names their Centipede a knight or something?

#

Or it copies the Centipede enemy file, and it only changes the display name to Knight?

nimble delta
#

the only mod that ... touches Centipedes would either be Mirage doing the mimicking of voices, or Diversity and their change in centipede head-removal o- o

#

and I suppose the AI mods such as pathfindlagfix and starlancer AI

frozen nacelle
#

[Warning:ImoutoSama.ScarletMansion] Player 3 already has Scarlet player script. Skipping
How did this happen

nimble delta
#

but I don't think those would cause some sort of name conflict

tranquil frigate
frozen nacelle
#

OK

tranquil frigate
# tranquil frigate Also this bit of code one sec
            var type = ScriptableObject.Instantiate(springItem.enemyType);
            type.name = "Knight";
            type.enemyPrefab = knight.enemy;
            type.enemyName = "Knight";

            knight.enemyType = type;
            knight.enemy.GetComponentInChildren<KnightVariant>().enemyType = type;
            Enemies.RegisterEnemy(type, 0, Levels.LevelTypes.None, knight.terminalNode, knight.terminalKeyword);
#

you can share that code to the LethalQuantity devs if they ask

nimble delta
#

I has already given them a message link to in here to read from where I showed ye this o ,o

tranquil frigate
#

But I think it's a case of some mod copies the Centipede for their own new enemy and they call in Knight internally or externally

nimble delta
#

I wonder if I could notice it in the console

tranquil frigate
nimble delta
#

That one is awful- lemmie find the better log...

#

can't see anything in terms of what'd cause some sort of name mixup here.. I'll see if I can force more info out of the mods

tranquil frigate
#

The issue seems more with LethalQualities so I recommend bringing it up more with them

#

Well I wouldn't call it in an issue, but you know what I mean

nimble delta
#

Yeh, ID's are fine

#

which ID in this case is the only thing that matters in terms of enemy spawning/handling in the grand scheme of things, right?

#

all things that mess with enemies will be looking for ID

#

just an odd bug I've noticed is all o -o

tranquil frigate
#

actually the opposite, the enemy id I believe is only used for enemy scanning

#

the real enemy id that's used for enemy spawning is based on the moons

nimble delta
#

well that doesn't make me feel good -w-'

#

I'll... ... save myself the hassle and first force this "Knight(Centipede)" to be guaranteed on all moons to see if it spawns centipede or not

#

before I try to dabble in the rest of all the data

golden talon
#

the name is a little weird, i have to use the scan node instead of the enemyName or type name, since it's the only one which follows the in-game name for the vanilla enemies. i have no clue what's up with the centipede knight scan node though

hard mirage
#

@tranquil frigate do you have a convenient list of values for each preset? Just asking just in case you happen to have it (I know I can just compare them through LethalConfig however. Just curious if there is a convenient list is all)

tranquil frigate
#

And it's in code form

hard mirage
#

Ah I see that's fine then! I'll do manual tracking through LethalConfig

tranquil frigate
#

no wait what am i doing

#

give me 5 mins

#

ignore all that, i can make something easy to read

#

It looks like some bad code still exists, but should be more than enough to get an idea

#

@rigid wasp How knowledgeable are you with lighting? I seem to know what you are doing as opposed to me where I don't.

#

Scarlet Devil Mansion v1.3(紅魔館)

tranquil frigate
# rigid wasp whats the problem?

I believe/know that my dungeon is aggresively dark. One of my players described it as the darkness is actively trying to eat the light. https://thunderstore.io/c/lethal-company/p/Alice/ScarletDevilMansion/
If you go the Dungeon Layout section and look at the dungeon screenshots, you can see screenshots of the dungeon currently and see what I mean.

#

My question is mostly, is there something that strikes you immediately to why my dungeon is so dark

rigid wasp
#

I think the Facility dungeon has see-through exterior walls. That could be causing the darkness. I dont know if that would work, but maybe the indirect light can't reach your dungeon

#

I dont know if that is causing the problem though

tranquil frigate
#

I'm not entirely sure it's the see-through exterior walls. Other custom dungeons don't have the same issue as me. And I've seen them same regular exterior walls (as far as I know)

#

But I would understand the indirect light part. I do remember there was a time where I had it before I placed a ceiling onto of my room tiles

rigid wasp
tranquil frigate
#

Oh if that's what you mean, my roof is only one-sided. I copied it from what facility was doing

rigid wasp
tranquil frigate
#

I would need to check in game again to know if I set up the renderer/layers correctly for the roof tile. But that's it.

#

This one is what I think is the issue if only because I don't understand it really.

rigid wasp
#

That is the only thing I could think of that could be causing this

tranquil frigate
#

I set all my materials to something like 0.2 metal, 0.2 smooth

#

I don't see why that would cause issues, but I'm asking to know if that would make a difference

rigid wasp
#

i dont think it would. I mean you can try if setting it to 1 changes things

tranquil frigate
#

fosho

rigid wasp
#

And you can try if removing the roof entirely would fix it. like for one build remove the roof of the main entrance

tranquil frigate
#

yuhyuh

#

oh while I have you here, I must ask real quick

rigid wasp
#

ask away

tranquil frigate
#

this is how I do the lighting for rooms, area rectangle. but I do get this light bleeding effect. I have noticed that this happens with the base game too, but I ask if this is normal/removable.

rigid wasp
#

Have you messed with the shadow settings. maybe Light Leak Bias changes it or Near Plane

#

Or try lowering the Fade Distance

tranquil frigate
#

I have no yet, but I somehow disabled the shadows to appear on my scene view.

#

I need to fix that first, one sec

tranquil frigate
#

I uhh, think I figured it out
@rigid wasp

#

the area light's rectange sizex/y is not at all what I thought it meant

rigid wasp
tranquil frigate
#

ya, it looks like I was making a light source as big as the whole room

#

instead of, well, a simple light bulb

tranquil frigate
#

may have fixed the lighting, that's step 1 I think

rigid wasp
#

nice

opal wigeon
#

wait area lights

#

aren't those baked

#

exclusive

#

or does hdrp change that

solid beacon
#

Im exited for the light changes, theyll have a big gameplay and visual impact

#

I recently noticed how important the bright small spotlights in the vanilla interiors are for the presentation and for how you memorize the layout.

#

If there was a mapevent that changes the position of the spotlights in the facilities maze I would become totally lost since they act as waypoints. Pulling the apparatus already kindof does this

solid beacon
# quiet pecan I haven't seen an already angry jester, though an already-cranking jester would ...

I like the winding jester, but I think it should only punish the player taking the painting. after it kills one player or after the painting is extracted it should dissapear. The monster could have a ghostly opaque texture to indicate that change.

Im fine with the thumper, or maybe even a braken (requires testing? )

Id be fine with a girl spawning but the room might be too small and idk how the ghost girls AI would handle that. And I assume eventually youll want to reskin the ghost girl to flandre

quiet pecan
#

Glad to see the lighting situation might be improving. I'm not using many modded interiors, but I'd like to clarify that Scarlet Devil Mansion is not the only interior that has this problem or some variation of it. Scoopy's castle dungeon is also extremely dark, though I only just realized that (I hadn't been using it because it generates very oversized interiors and Scoopy is MIA, but right now I'm trying to just use the max size override and limit it to specific moons). There might be other interiors with lighting problems, but I'm not using them. There's a few reasons why practically all of my activity here is in this one thread for SDM, and the primary one is because SDM is my favorite interior.

#

Upon further testing, I found that the vanilla Facility has the same crushing devouring darkness that SDM does, but it has brighter more reflective wall materials (I guess?), so the player (or a light source) can get further away from them before they totally black out. More importantly, I found that in vanilla Facility, vanilla Mansion, and SCP Dungeon Interior, the black level (the color value of the darkest pixels onscreen) increases when you're near a light source. With some experimentation, this feels like some kind of extended lens flare effect that happens even if the light source is behind you. The lights in SDM do it too, but I think they're just not bright enough for the effect to be substantial. For example, I can get the lens flare to manifest in the SDM foyer by jumping off the mezzanine toward the chandelier. The lens flare becomes noticeable around the peak of the jump. So really the light source just isn't bright enough. There might also be settings that control how far the light "reaches" independent of its "brightness" (depending on the realism of the lighting system being used), but that chandelier light just isn't very bright anyway.

#

One thing that's worth considering is how shadows work in the vanilla mansion. The vanilla game culls shadows very aggressively for performance, which is why when you first enter a vanilla mansion, the far wall behind the staircase is bright, but then as you move forward it suddenly darkens (with a fade) as the shadows cast from the further chandelier load in. Regarding the earlier mentioned light bleed phenomenon, I expect that distant light sources will bleed through walls because they're too far from the camera for the wall's shadow to render, and there's not much that can be done about that aside from using CullFactory to have fewer unseen lights rendering at all.

#

In this screenshot, the railing casts two overlapping shadows from the two chandelier light sources.

#

In this screenshot, I'm slightly further away, so the far chandelier stops creating shadows.

#

The bookcases, pillars, and staircase in the vanilla Mansion interior cast shadows away from the chandeliers, with the area under the staircase being notably quite dark. By contrast, the chandelier in SDM produces no visible shadows. It does create a kind of ambient glow on the upper parts tough.

#

Here's a screenshot showing flat lighting on the middle landing and upper mezzanine, as well as no real shadows being cast by the railing (perhaps because the light source is a big rectangular box instead of a point?):

#

Here's a screenshot showing the light not reaching the entrance door, though some light hits the middle of the ground floor and the upper wall above the entrance door:

#

Here's a screenshot showing the pillar not casting a shadow from the chandelier (but it does kinda seem to be casting a mis-sized shadow from the candle on the table...):

#

Here's a screenshot of another pillar with no candle nearby (though it has the same little light seam suggestive of a shadow so it wasn't the candle causing that on the other pillar):

#

I just noticed the seam in the lighting isn't noticeable in that scaled down jpeg. Here's a high-quality close-up:

#

Notably in the pillar screenshots, the only light source (aside from the candle) is the player proximity light. It's pitch black around those pillars otherwise, which explains the lack of shadow: the chandelier light simply isn't reaching that area. I'm not sure what the seam in the lighting is, but it's presumably not actually a shadow because the only light is coming from the player.

#

I do think the surface material properties are also playing a role, so even when you have a light source, the interior reflects it differently. Here's a screenshot of a random catwalk tile lit by a pro flashlight in vanilla Facility:

#

And here's a screenshot of a random hallway in SDM lit by a pro flashlight (I looked around but couldn't find a straight shot with a door at the end):

#

Aside from the darkness in SDM being more closed in, even the parts that are lit are washed out. In particular, the reflected lighting is so dim that the lit areas are actually dominated by the overlaid flashlight cone effect, to a distracting degree. I remember watching one video (but I can't find it now, and I tried) where someone was using a flashlight in Scarlet Devil Mansion and they said "it's almost worse with the flashlight on".

amber osprey
#

I used to feel that way in the garden tile. The flashlight made it harder to see in that tile especially.

silver hare
#

I have to agree, though I figured the overwhelming darkness was just a theming choice. If it can be changed so things aren't so pitch-black though, that'd be awesome. I did see that lighting changes are in the works, so I look forward to the changes.

tranquil frigate
#

I'll respond to you 3 in an hour or so

#

But basically yes, I agree, lighting not good

tranquil frigate
#

But the lights you see in the room and mayor currently, those are gone. So no longer an issue

tranquil frigate
#

I have a different plan for Flandre (not with that little girl mod but with my own flandre model) but I definitely am not gonna make it to implementing her this month. Maybe next month but this mod's development is very unknown next month

tranquil frigate
quiet pecan
# tranquil frigate Appreciate the entire write up. You know I always considered the blinding flashl...

I'm glad. I hoped the screenshots would be helpful. The vanilla Facility's walls are reflecting more than twice as intensely (average RGB value of 180 in the middle of the cone at least on the higlights, because they're also shinier) than SDM's walls (average RGB value of 80 in the middle of the cone). In fact, even the dark bands between the highlights in the Facility screenshot are brighter than the brightest parts of the SDM screenshot. Hopefully seeing the stark difference will demonstrate the need for a big change, not just a tiny tweak.

lost arrow
#

@tranquil frigate Gotta say, I can't provide the same feedback as other people but damn, the optimization was noticeable

#

Game loaded faster, ran faster, before if SDM loaded I could tell, now it's just another interior in terms of load time

tranquil frigate
lost arrow
#

Also, how long have ScarletDevilMansion doors been breakable?

#

Cuz that's really cool

tranquil frigate
#

3 days ago?

lost arrow
#

Definitely a cool new feature, I use DoorBreach but seeing it be a custom thing on an interior is awesome (if it's not already, some configurability for how many hits would be cool though).

tranquil frigate
#

I've been asked about configuration about the doors. It will come relatively(tm) soon

#

I will try definitely try to add it before my 2 week break

glass walrus
tranquil frigate
#

I will add it as soon as the Reserved modder gets the code in

#

Even if it releases during my break, I'll try to get it in real quick

glass walrus
deep jacinth
glass walrus
deep jacinth
#

true

torpid helm
#

Could we get an option to change the power level of Knights in the config?

tranquil frigate
#

I'm not sure how mods that modify the coil-heads' stats would work with my knight, so the knight's may not receive those changes, but I can adjust my mod to allow those mods

torpid helm
#

I guess I can use LethalQuantities for that

silver hare
# tranquil frigate But for real, I'm down to create hints, just still lost on how to exactly withou...

Just found this that was posted a few hours ago, you could have something similar, just a minor design change for either side of the doorframe. It'd be subtle and experienced/observant players would be able to pick up on the meaning. https://youtu.be/oW0tkMYPUzc

Today I just wanted to show you guys how to find your way back to main without the need of doors. This strategy was discovered a while ago but and I think that it is worth making a video about!
My twitch: https://twitch.tv/siniik

▶ Play video
nimble delta
#

Didn't even pick up on the door aspect, let alone the frame

#

w o w

tranquil frigate
timid surge
#

I'm kinda guessing that that'll get patched at some point by randomizing the doors' direction

#

at least I personally would patch it if I was zeekers, maybe they would feel differently

#

it's part of the game at the moment so I see no problem exploiting it but it's very metagamey

tranquil frigate
#

its quite a relatively easy thing to "fix"

#

but until zeekers changes it, i aint do nuthin

#

Finished the update with the new approach to lighting.

#

I'm not the happiest with it, but if I keep staring at the same pixels of varying brightness levels I'm going to go crazy.

#

I'll do another run of improvements next patch

#

Also new library room variants (RIP 2nd floor library for just this patch)

little tundra
tranquil frigate
#

The door frames are symmetrical but the way that doors open/close, are they consistent with the direction to the entrance?

little tundra
#

the direction wasn't consistent. unless they somehow completely looped around and back to main but I'm not sure if that's possible

#

also I didn't have noclip so I couldn't explore past locked doors

#

but I already can tell that following the door's direction would only help me find main 50% of the time 😄

tranquil frigate
#

50% sound like it a coin flip, so it don't work

lone pagoda
#

hi, i have adjusted the weight of this map on some moons to 0, but i checked the % it still able to spawn on those moons, is this a bug?

#

this is the weight of Asteroid-13

tranquil frigate
lone pagoda
#

it is not haunted mansion?

tranquil frigate
#

I have never called my dungeon "Haunted Mansion" so it is not that. I'm pretty sure that's the vanilla mansion dungeon actually

lone pagoda
#

understand, thank you so much

tranquil frigate
#

New update. Polished the lighting a bit more. It's getting closer to how I would like it.

#

Also I added FacilityMeltdown compatibility. Enjoy. I added a config to disable the enemy spawn from the painting event if you think both the enemy and meltdown is too much together.

#

Also lights go red

quiet pecan
#

This is a fresh profile with no other mods and default config (aside from adding forced spawn on Assurance, Rend, and Dine, so I could look at it quickly). Two chandeliers now instead of one, and they seem to shine brightly on the pillars that are right next to them, but the rest of the room is actually less well lit than before. Notice even the landing (the raised flat part where the stairs change direction) is pitch black now. I think these light sources really just need to be cranked up dramatically, like 10x brightness or something.

quiet pecan
median hazel
balmy ibex
#

i think its the apparatus equivalent

tranquil frigate
median hazel
#

Oh boy cant wait to not tell anyone about this :)

tranquil frigate
# quiet pecan This is a fresh profile with no other mods and default config (aside from adding...

Im looking for a balance between bright enough for the map to navigate-able and dark enough to fit the theme. You're gonna have to bear with me as I slowly adjust the values (The changes have become stable enough that I should be able to finally adjust these in-game now and see what the actual effects are). If I were to increase the values by 10x, it will actually become stupidly bright which is not what I'm looking for.

#

That being said, the map will never be as bright as the vanilla mansion. But I am trying to meet halfway there

quiet pecan
#

Fair enough.

thorn heron
#

@tranquil frigate quick question, how does the meltdown compat works with multiple paintings

#

lets say I have 3 paintings in the map, if I grab one does the meltdown happen, or do I grab all 3 and it triggers

silver hare
# tranquil frigate Also I added FacilityMeltdown compatibility. Enjoy. I added a config to disable ...

Sounds good, I do have to ask though, is there some function built into it where it temporarily traps you in the room you take the painting from, and if so can we get some way to disable that? I wasn't there to witness it myself, but someone else in my group reported something like that happening, so I figured I'd check. (I'm suspecting he was just making excuses lol) This was prior to this update and entirely possible something just spawned and blocked the way

hard mirage
#

So by just taking any of the cursed paintings trigger the meltdown sequence if you have it activated?

silver hare
#

And looking at the config for the new FacilityMeltdown stuff, it looks like there's just SpawnEnemy (for your mod) and then Activate Facility Meltdown (for when the painting is pulled)... so when I have the meltdown activated, is that spawning enemies as well, and I should therefore have the previous option disabled? Also, will enabling that option automatically make FacilityMeltdown take over the "apparatus" (painting) value?

tranquil frigate
tranquil frigate
#

Both enemy spawns and facility meltdown can be called at the same time, but if you have a preference you can edit it

fluid pike
#

loaforcssoundapi breaks after the update with facilitymeltdown installed

tranquil frigate
#

Hmm?

tranquil frigate
fluid pike
#

the sounds replaced with it don't play

tranquil frigate
#

I don't know what you mean. I only call the function provided by FacilityMeltdown. I did nothing special.

fluid pike
#

well, when i roll back to the previous update, all lethal resonance sounds work again, but on the latest version the sounds it replaced wouldnt even play

tranquil frigate
#

I do nothing special with sound so I'm equally confused. I can check again when I'm on computer to see if I can find a correlation

daring dock
#

soundapi is a precarious beast (i mean all sound replacements are) so good luck!

tranquil frigate
daring dock
#

yes it will pick up every sound

#

whether it gets replaced is whether or not there is a sound to replace it

tranquil frigate
#

Since I did add a soft dependency to FacilityMeltdown, it's possible? my mod loads later and which somehow? causes a race-condition type issue?

daring dock
#

nope, if you have no code relating to soundapi, meltdown doesn't either. it's most likely just some random issue with soundapi itself

tranquil frigate
#

Yuh probably.

#

[Info :ainavt.lc.lethalconfig] Registered config "Scarlet Mansion/Lighting/2 Lights Weight"
[Debug :me.loaforc.soundapi] Parsing ambience_music.json as a sound replacer
[Info :ImoutoSama.ScarletMansion] Loading asset SDMLevel

#

Discord phone plz

daring dock
#

nah thats normal cause soundapi loads stuff on a background thread

tranquil frigate
#

That would make more sense

#

Well all I can do is check again when I get home

silver hare
# tranquil frigate I can add it as it's mostly a simple code change

Sounds good, thanks. And if you can either have a setting for how much a painting is worth or have an option for it to refer to FacilityMeltdown that'd be great too. In the meantime I'll see if I have the same reported issues with LethalResonance and such when I get a chance

silver hare
# silver hare Sounds good, thanks. And if you can either have a setting for how much a paintin...

LethalResonance seems to be working okay for me, I did get a lag spike at one point but I'm pretty sure that was just a memory issue. As far as everything else, facility meltdown activation is working fine, and it's nice to see item spawns close to the entrance. Huge difference. Lighting is improved to a certain extent, it's easier to see where it is lit, but if it's not lit it's basically pitch black.

tranquil frigate
amber osprey
#

I think its darker than before to be honest

#

In 13.2 and earlier I was generally content with the lighting situation, granted I used config
Hallway Lights Weight = 999
Chandelier Lights Weight = 999
0 Lights Weight = 0
1 Light Weight = 0
2 Lights Weight = 3
Essentially forcing the most lit up mansion possible.

Imo I don't think it's really necessary to make it brighter than it was in 13.2. Its okay if the dungeon is just a bit darker than base. Some areas are pitch black but that happens in base too sometimes. I think the difference is that in base, scanning will illuminate the area enough for you to get around, but for some reason in SDM the scan is just really unhelpful for navigation. You can walk into a pitchblack hallway and scan, and you can't tell if there's a turn, a wall, or a doorway, until you walk forward and bump into the wall more or less.

tranquil frigate
#

Any gamers here spend 2 hours of code refactoring to save the 1 minute inconvenience of adding new functionality

tranquil frigate
#

Wait actually

#

@timid surge by chance, does CullFactory cull lights now? I feel like that I read that it did but I want to verify from the source

median hazel
#

question, when you finally get the lights/detail the way ya want, would you ever consider making more custom scrap ?

#

i think the painting was a very neat idea

tranquil frigate
#

I want to add a magic book from a particular person's library as both a scrap item, and a potential escape option

median hazel
#

Thats fair, i don't know much about the touhou series but i think just seeing an apple named "Bad Apple" that plays like a single note of bad apple when you click e or something would be funny

timid surge
#

why, did you notice some issue there?

tranquil frigate
#

Oh no, I just see a potential solution to my problem if the light culling does work.

timid surge
#

if you're talking about increasing the number of lights, yeah, it should help with that I think

tranquil frigate
#

I reach the light/shadow limit quite quickly, but I could maybe avoid it with CullFactory

#

May just make it manitory

timid surge
#

it's worth noting that I haven't really tested to make sure that it resolves that limit issue since the update that changed how I cull lights though

#

it used to use Light.enabled but there was some issue in vanilla mansion that caused that to do nothing

#

LC_Office used to reach the light limit very easily on March in its older versions, but I think Piggy shrunk it so it's not a good test for that anymore unfortunately

#

but obviously you could test by just cranking up your interior scale and light chances I guess

tranquil frigate
#

I have ways to force lights and really see

#

I'll try it tomorrow and see what happens

timid surge
#

sounds good, lemme know if it still hits the limit

#

it uses the light's culling mask currently, which seems to not be explicitly supported by HDRP, despite the fact that it works

tranquil frigate
#

lol

#

now that's a classic

timid surge
#

if it works though, it's perfect for me since it allows me to change a setting that nobody in the editor is able to touch 😎

#

much less chance of conflicts that way

tranquil frigate
#

your mod become irreplaceable

#

as its unreplicateable

timid surge
#

oh idk I'm sure someone else would've done it eventually lol

#

I'm glad I've been able to get it working well though

tranquil frigate
#

Suppose so. Still black magic that you doing though

tranquil frigate
valid scaffold
#

Love the mood lighting

tranquil frigate
#

I remember why I didn't add this lighting originally, the shadows like popping in/out for some reason and I can't understand why

#

but i fix that next patch

timid surge
#

interesting, is that even without CullFactory?

tranquil frigate
#

this one i'm truly stumped on

timid surge
#

so the light just shines through the off-screen wall fully suddenly when you look at a certain angle?

tranquil frigate
#

no not that

#

the lighting is correct (i think), but the shadows pop in and out

timid surge
#

not sure I'm understanding, if the light isn't shining through a wall that's supposed to occlude it, perhaps a video could clarify

#

if you're looking for help brainstorming anyway

tranquil frigate
#

a video would be much clearer yuh, ill get that video tomorrow too

glass walrus
#

The slot mods got an update 😛

#

Was it the one you were waiting for? @tranquil frigate

quiet pecan
#

The new screenshots look great. That said, I do think the problem with running into a cap of light sources (which is probably also a performance concern) can be addressed as a side effect of a different problem I've mentioned before. The vanilla interiors don't actually have all that many lights, but they don't need many lights, partially because each individual light is brighter, but perhaps more so because the surfaces are more reflective. This connects directly to the last part of what Hack McGraw said:

quiet pecan
balmy ibex
silver hare
# tranquil frigate Would you say that the new lighting (with brightness/range numbers that I will b...

It's kind of hard to say honestly, I think it'd be best to wait until the final changes to say anything for sure, but there definitely was a noticeable difference in the contrast (I suppose that's the best way to put it) since areas were either lighter or darker. I see you pushed out a new lighting update though, so I'll take a look at that. I also see some others have mentioned it, but ReservedFlashlightSlot has just released v2.0.0 which allows you to add new items to the reserved slot. Hopefully it should be much easier to incorporate the compatibility now since the changelog claims you can just add an item's "translated name" to the slot.

valid scaffold
tranquil frigate
#

It hella confuses me

#

Probably has a simple fix though

#

hopefully has a simple fix

woven cloud
#

Whenever I edit certain SDM config settings via LethalConfig, they always reset to default whenever I close and boot up the game again, while others do properly save

So far the ones I've found to do this are: "Painting Count", "Painting Extra Loot Min", "Painting Extra Loot Max", and all the settings under "Lighting"

#

Does anyone else have this issue, or lack thereof?

pseudo current
tranquil frigate
#

Sorry that wasn't the clearest

woven cloud
#

Out of curiousity, is there any benefit of setting it to "Default"?

tranquil frigate
#

To keep up to date to what I think is "best" default settings

#

It's mostly for people who don't want to touch the configs

#

Which is fair enough

woven cloud
#

Mmmmm I see, thank you

glass walrus
#

Do we need to add the flashlights ourselves to ReservedFlashlightSlot? Or are you doing something on your end?

#

There is a place in the config to add custom items

balmy ibex
#

Somehow i made this dungeon a lucky kinda dungeon with the scrap multiplier broiled

woven cloud
#

#1177039162428366848

glass walrus
#

My question is if this mod is gonna add functionality or if we will have to edit the config ourselves to make it work

tranquil frigate
#

Oh ya it is having difficulty right now. I'll still add it since it's a simple compatibility patch for me

glass walrus
tranquil frigate
#

Not on break yet

#

That's in one week exactly

#

You can't get rid of me yet

glass walrus
#

Looks like the update came at a good time then

fluid pike
tranquil frigate
tranquil frigate
#

im truly lost to why this is a thing, dying for help

gilded pivot
#

All I can think of is adding area lights in those spots

quiet pecan
#

However, this doesn't explain the shadow pop-out demonstrated in the video LadyRaphtalia posted, where the shadows disappear when you get too close. I have no idea what causes that, but I'd hazard a guess that the words "near clipping plane" figures into the answer somehow. 🤷‍♀️

timid surge
#

it becomes quite a bit less noticeable when cranking up the shadow map resolution, but it still occurs even then

#

I'm thinking maybe it's better to use spot/point lights instead, you can probably throw in multiple point lights to make it appear to cover more of an area

#

Google so far has given me nothing on this issue though :(

#

to be fair, though, I'm not really sure how a shadow map for an area light would even work

#

another option perhaps would be to use large area lights without shadow maps on a very low intensity, then put in some spot/point lights for shadows

#

this page about HDRP shadows seems to claim that shadows are supported for area lights, but it also mentions dynamic rescaling of the shadow maps of lights based on the camera's angle, so I'm guessing maybe that has something to do with it

#

oddly though, using the frame debugger to look at the shadow maps, it didn't look like they moved, so I'm not sure where exactly it's messing up

timid surge
#

I think a big factor causing the entry room's shadows to be all messed up is the fact that the shadow cone value is set so high, I believe the area lights only ever use one shadow map, so the shadow map resolution for the chandeliers is spread across a massive area and the pixels end up being massive

#

still not an excuse for it to essentially cull visible parts of the shadow map, but something to be aware of

#

I'm thinking that to get a similar effect, you could use one or more medium-resolution spot lights with wide cones (they only use one shadow map and should cost a lot less than a point light), or a point light and area light in combination

quiet pecan
#

For what it's worth, based on how the vanilla interior lights look and behave, I'm pretty sure they're all point lights. I don't think it ever uses area lights. Like I assume the fancy lamp (scrap item) is also a point light, and they're functionally equivalent in behavior. I imagine each chandelier in the vanilla Mansion foyer has a single point light in the rope it's hanging from and the rope is set to not cast shadows. I think that's how I'd do it if I wanted a result that looks exactly like the vanilla Mansion foyer, anyway.

#

And I get that SDM is intended to look different and I'm fine with that. I'm just suggesting that maybe it's a bad idea to be using area lights at all. But I don't actually know the technical details of what's going on here. And maybe I'm totally wrong and vanilla interiors do use area lights.

timid surge
#

the factory interior uses mostly spot lights, and mansion I believe is mostly point lights

(edit: and they don't ever use area lights)

#

I did discover that setting the HDRenderPipelineAsset's Area Shadow Filtering Quality to High fixes the issue with these giant pixels disappearing

#

that in combination with a 512x512 shadow map seems to make things look a lot better with the area light in the entry

#

unsure of the performance cost though, I'm running it in editor so it runs like crap anyway

#

I'll see if I can find where this option exists in the actual scripting APIs with UnityExplorer

timid surge
#

looks like setting it in the release build just causes it to spam an error SadCat I think Batby or Noop Nomnom would have to look into making that work

#

I don't know enough about working with the existing assets

#

(not sure how much Batby has done regarding that, but I figure at least Noop (I may be stupid) Nomnom might have some idea if it's possible)

#

for ref, this is what I tried in UnityEngine

var renderPipelineAsset = (UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset)UnityEngine.Rendering.GraphicsSettings.currentRenderPipeline;
var renderSettings = renderPipelineAsset.currentPlatformRenderPipelineSettings;
var hdShadows = renderSettings.hdShadowInitParams;
hdShadows.areaShadowFilteringQuality = UnityEngine.Rendering.HighDefinition.HDAreaShadowFilteringQuality.High;
renderSettings.hdShadowInitParams = hdShadows;
renderPipelineAsset.currentPlatformRenderPipelineSettings = renderSettings;

UnityEngine.Rendering.RenderPipelineManager.CleanupRenderPipeline();
UnityEngine.Rendering.RenderPipelineManager.PrepareRenderPipeline(renderPipelineAsset);
opal wigeon
#

@thorny orchid

thorny orchid
thorny orchid
#

It's documented as well

timid surge
#

does that somehow take care of bundling shaders that are not included in the release build?

thorny orchid
#

If you got ideas on how to That would be amazing

timid surge
#

I wish I did, I don't know enough about Unity to know if it's possible to build and include a second HDRP asset

#

I feel like it... might make sense for that to be possible? but then obviously you have to switch between that and the default one to switch the option, which isn't exactly reasonable

thorny orchid
timid surge
#

considering that there would be permutations of other options as well

#

right, but what I mean is building all the shaders and everything and bundling that with a mod to be used instead of the default built-in one

#

not just changing settings and then switching the asset instance

#

not sure if that's possible, I don't know how the shaders are handled

thorny orchid
#

Yeah for that I don't really know sadly.

timid surge
#

it's a shame I can't switch it on easily, it would be nice to test to see the performance impact to find out if this is even worth doing

#

annoying that the medium quality has such obvious and ugly artifacts

thorny orchid
#

Oh if you didn't know you can change quality settings too

opal wigeon
#

Not available to elaborate but i have a warmup shaders function in like lll 1.0 in my assetbundleloader script. Might have a lead or two

timid surge
#

oh interesting

timid surge
#

but if my testing was any indication, high quality area lights was not one of them

thorny orchid
timid surge
#

yes

thorny orchid
#

Or atleast achieve

timid surge
#

#1195583267546595389 message

#

this code specifically needs to actually work properly at runtime

thorny orchid
#

What settings is it in the HRDP settings?

thorny orchid
#

Oh taht should be easy then

#

Let me try

timid surge
#

hm, did you read my messages above?

#

it doesn't seem to include the shader, it spams a compute shader error

#

something about a kernel

opal wigeon
#

Also from when I looked at this the code actually relevant mostly looks like conditionals using the so as reference. A lot of stuff can be manipulated with transpilers

thorny orchid
# timid surge something about a kernel

Probably because of UnityEngine.Rendering.RenderPipelineManager.PrepareRenderPipeline(renderPipelineAsset); That somehow "remake" the whole settings which cause unity to go brrr

#

At least on my end that's what usually happened

timid surge
#

nah that works

thorny orchid
#

I'll do some testing and let you know if I achieve something

timid surge
#

if I change it to set it to medium from high after it breaks, everything works again

#

but sure, lemme know if you figure something out

tranquil frigate
warm musk
#

does this interior still harm the frame rate super hard? last i played everyone got 40 fps

timid surge
#

I wonder if Batby might be able to cook something up with shader variant collections

tranquil frigate
#

Do you think it's the answer from just your gut feeling?

timid surge
#

hmm, I wouldn't really think so since we're not that far away from the origin in the dungeon, but possibly it may have some influence?

#

I think the flickering it's referring to there is from floating-point precision issues at large coordinate values

#

I may be wrong though, and I'm also not sure what effect that would have on the area light filtering, so it is probably worth checking

#

normally I would expect it to present as similar to z-fighting but only affecting the shadows

#

nope, just tested it in the editor and it didn't make a difference :(

tranquil frigate
#

Nah you right. I was mad coping but 200 distance wouldn't make a difference for float calculations

#

I'll do a bit more research, but maybe it's just area light issues after all. I'll switch to normal lights then

timid surge
#

multiple large spot lights might be able to kind of achieve a similar effect, though at more cost

#

would sure be nice to get area lights working though

#

I feel like it would unlock some cool effects for interiors

#

I mean, they technically already work when you don't use shadows for them, but in an interior that kinda makes lighting in the next room look weird

tranquil frigate
warm musk
#

we use that now. but before even with it frame rate was getting beat up. we played SDM like 2 months ago and haven't tried it since

tranquil frigate
#

Oh ya that's 2 months ago. A lot of changed since then

#

The lag has not. The mansion has become smaller but the map still has more models to render (technically) compared to other dungeons

#

Which is where CullFactory helps a ton

warm musk
#

i'll have to test it with my modpack sometime when i don't have streams planned then

tranquil frigate
#

Fosho

warm musk
#

im planning to try this and lc office again. however lc office makes me skittish because it uses network API and i think that was causing issues in my game

tranquil frigate
#

A smarter person than me could tell you if that's the source of your issues or not.

#

I never used network API, I write my netcode functions directly

warm musk
#

im really not sure anymore since it seems LC likes to meltdown for any reason when mods are involved

tranquil frigate
#

if im reading this right, it's a known issue

tranquil frigate
#

something something skill issue. you gotta slowly add/remove mods to find the ones that work

warm musk
#

point taken. but it makes me wonder how content creators and streamers get by with big 120+ mod packs and i only got 40 and not having issues all the time per say but just having random hiccups we gotta work around or reset for

#

might get better now that AC is gone tho.

timid surge
#

i wouldn't be surprised if it's fixed in a later version though regardless

tranquil frigate
#

i saw a potential solution to it, may as well try

timid surge
#

sure, why not

#

occlusion culling of lights would generally just disable the whole light rather than a part of the shadow map though

#

and frustum culling as well, which is probably what would actually have an effect in your case

tranquil frigate
#

i keep seeing that, but is that something that i would be able to edit? as I assume it's just the regular player camera ya?

#

well actually i dont know what frustum culling is referring to exactly. I think you are referring to the viewport-ish thing that the game uses to start culling but i could be wrong

timid surge
#

yeah, a frustum just represents the area of geometry that's visible within the camera

#

including near and far planes in Unity

#

and importantly not including occluding geometry

#

it must also somehow take into account the influence of light similar to how CullFactory does, so that lights that have influence within the camera's frustum remain active

tranquil frigate
#

ima be real with you chief. you lost me

timid surge
#

otherwise stuff like what was reported in that thread would happen, and I haven't observed anything like that in LC

#

ah damn lol

tranquil frigate
#

but i understand that i should fix try this hacky fix, and then mess with the near plane of the camera

#

and see if it helps

timid surge
#

near plane... maybe idk

tranquil frigate
#

so i did not understand that correctly

timid surge
#

well

#

essentially I was just explaining why I think it's unlikely that culling is the culprit, at least not frustum or occlusion

#

it might be some optimization specifically in the area light shader that's doing this

#

basically, if the light is still doing something it seems like the frustum culling is working properly, since the light should be either on or off

#

it is possible that the near plane has some influence though, since the bug seems to interact with the nearest points to the camera

#

you could try cranking that up to some unreasonably high value like 1 and see if it improves things

tranquil frigate
#

alright, makes sense to me

#

will try these things

tranquil frigate
#

fuck it, point lights

tranquil frigate
#

New update. Changed the lighting again. Should be better now (How many times have I said that. Also messed up two library rooms WHOOPS). Added a new 2f library room, ReservedFlashlightSlot compatibility and door damage configs.

#

Also CullFactory is mandatory now. My dungeon depends on it too much with how the rooms are packed in like sardines.

glass walrus
#

I feel like CullFactory is just kinda mandatory with a bunch of interiors, the boost in performance is nothing short of black magic

tranquil frigate
#

Also I don't know how many people here use AC. The current mod compability will remain but I won't be updating it if it breaks in the future.

tranquil frigate
glass walrus
#

Really wish zeekers knew more of the modding scene

rare needle
#

Yeah CullFactory is essential

glass walrus
#

some of these mod makers are so good they should just be given a job lol

potent pike
#

Zeekers wants to be solo for now

#

Also a lot of interior mod makers use asset packs

#

Nothing inherently wrong with that

#

But I’m pretty sure all of the stuff in LC is made by zeekers

#

Other than like 2 audio files or something

median hazel
#

cause i figure theres probably 1 or 2 that do

glass walrus
#

I have every one minus minecraft interiors, Liminal Pools, and Mr Unrealovsky's School interior and I have no issues

median hazel
#

well thats good, i remember hearing cf have issues with some things so

#

hopefully liminal pools doesnt break then

glass walrus
#

I you run into any issues, post in the cullfactory channel. They'll likely fix it or work with whoever made the interior to fix it

median hazel
#

kk 👍

woven cloud
#

What value is being multiplied here? The Door Shovel Damage?

tranquil frigate
woven cloud
tranquil frigate
#

its kinda variable atm. they somewhat match the normal door opening speed for enemies.

#

roughly 2-4 seconds for most enemies, 8 for coil-heads and knights, and 16 for slimes

woven cloud
tranquil frigate
#

yuh basically

woven cloud
#

I seeeeee, ty ty

timid surge
#

also, the options in CullFactory should allow people to either get culling working with interiors with compatibility issues, or disable it for individual ones

#

the only downside at the moment is dynamic lights shining through walls, but I already have a WIP branch to fix that, I've just been taking a break before trying to fix everything with that so it can be released as 1.0.0

#

after that it should be only optimization and bug fixing

opal wigeon
#

idk who told you that

#

A big bulk of basegame is third party afaik

potent pike
#

the credits is just patreons and sound files

#

I feel like it would be weird to not include asset packs no>

#

maybe im just stupid

opal wigeon
#

you don’t have to credit licensed assets

potent pike
#

ok yea thats true

rare needle
#

I appreciate the lengths this mod has gone to match the vanilla art style of the game, my friends should love this when we need to do a bunch of Rend runs cus they tend to complain about always having the Vanilla mansion layout all the time 😂

tranquil frigate
#

One final update maybe in 3-4 days

#

After that is my compulsory 2 week break

rare needle
tranquil frigate
#

i call it a final update, but it's more like, i have 1-2 short days to make something stable enough to last for 2 weeks

rare needle
#

😂

#

Btw is there a reason why when using your interior when you enter the fire exit you face towards it when using the fix with GI? I imagine it's likely a small conflict of some sort

tranquil frigate
#

but it's honestly the opposite, i rather keep working on this. but outer influences are dragging me away for a short while

rare needle
#

Idk if the other fire exit flipping mods may resolve it

tranquil frigate
#

so facing away from the door

#

but i assume GI flips that value for every fire exit

rare needle
#

Ahhhh so the GI fix basically undoes it

#

😂

tranquil frigate
#

yuh that

rare needle
#

I wonder if a compatibility option could be added that disables the fix from your side then just to fix the small jank

tranquil frigate
#

not difficult, would be small and simple

rare needle
#

Ye ^^

tranquil frigate
#

but that doesn't mean not time consuming

rare needle
#

Fair

#

Everything is time consuming

#

^^

tranquil frigate
#

you can try politely bugging the GI dev to find a solution on their end

#

since I won't be able to for a real fat fat minute

civic lagoon
#

is cull factory required for this mod?

tranquil frigate
civic lagoon
#

my perfomance was stable before cull factory

#

can i remove it or will things break?

tranquil frigate
#

Your computer may be strong, but mine and many others is garbage poo poo

tranquil frigate
#

There may be random lag spikes in the dungeon though, as a warning

civic lagoon
#

thank u for responding so quickly!! appreciate all your hard work

rare needle
#

It's funny how this interior has become my favorite, I like it more than the vanilla mansion 🙂

woven cloud
#

Easily the best interior mod so far imho tbh fr fr 💯

tranquil frigate
#

Appreciate the compliments. Sorry that you about to get pranked by a 2 week dev delay

rare needle
tranquil frigate
rare needle