RimWorld
RIMkea
Rook 2 Thg10, 2018 @ 7:31am
LAMPON shining through walls
The LAMPON wall lamp lights the areas on both sides of the wall it is installed on (at least as long as the wall is flat on both sides).

Surely this is because it is installed onto the wall without specifying which side it's actually on. I'd suggest taking a peek at how Wall Light solved this.
< >
Đang hiển thị 1-14 trong 14 bình luận
witchyspoon  [nhà phát triển] 2 Thg10, 2018 @ 8:10am 
that is the case because its rendered above everything else, it used to be different, but it looked stupid with higher furniture, so i changed it. i suspect that wall light is not rendered at the top of everything.
Rook 18 Thg10, 2018 @ 4:08pm 
Coming back to this - does the render order you mentioned affect the visuals only, or also which tiles receive the 50% illumination? Because the latter bugs me more than the visuals do.
witchyspoon  [nhà phát triển] 18 Thg10, 2018 @ 4:45pm 
im pretty sure both are linked. i have to render the lamp "above" the wall or else the lamp will get overlayed by the wall visually. and the game takes that as the lamp, and its light source, being above everything, so there is technically no wall to stop the light. I do not think i can seperate the two bc i wouldnt be able to tell the the game on which side the light has to go. technically if you look at the blueprint when building, the light is at the exact same spot as the wall so it shines in all directions equally.
the only thing i could possibly do is try to make it so the lamp is not build on top of a wall but next to it and try to make it visually look like the lamp is on the wall. Ill look into that.
Rook 19 Thg10, 2018 @ 10:11am 
Yeah, Wall Light used to do it with the "place in front of wall, then rotate until it LOOKS to be ON the wall" workaround (nowadays it somehow works by placing it onto the wall right away).

Thank you for looking into it! It's a small thing, but it's bugging me a little bit since it feels like I'm cheating with the pretty Lampon. ;)
witchyspoon  [nhà phát triển] 19 Thg10, 2018 @ 10:53am 
ok so I had a look at the whole situation and tried a few things
I can either leave it as is (visible on a wall) but then the light goes through.
I can also make it so you see it on the wall, but build it beside it (like old wall lamp) but then anything that gets built on that spot, will deconstruct the lamp. If i make the lamp layer lower (so it doesnt get deconstructed) then the lamp is not on the wall visibly unfortunately.
I had a look at wall lamp and the new one can be placed directly on the wall like mine, but doesnt shine through bc i am pretty sure that mod uses a custom class for his lamps/lampshine, which i cannot do bc i have no knowledge of c#.
Rook 19 Thg10, 2018 @ 11:00am 
I can only speak for myself, but I'd indeed prefer the "build in front of wall" solution - I usually build lamps last, after any other furniture in the room, so the deconstruction issue wouldn't occur often for me.

But it's your call ofc. :)
witchyspoon  [nhà phát triển] 19 Thg10, 2018 @ 11:06am 
yeah its...a rock and a hard place for me really. i like the fact that i can build whatever and the lamp is not in the way but still visible. also if i change it id have to explain to everyone the new way to use the lamp wich is a con for me too x(
ill have to think on it more
Rook 19 Thg10, 2018 @ 11:13am 
No rush.

If you want to go the extra mile, you could just ask Murmur how he did it for Wall Light. It's the exact same problem after all. Admittedly, being able to do just that is kind of the whole selling point of Wall Light, but I don't know if he's the possessive type of guy with his C# code. ;)
witchyspoon  [nhà phát triển] 19 Thg10, 2018 @ 11:23am 
yeah i could. in fact i have multiple people who could help me with it. I just dont want any c code in my mods (havent for years now) bc i dont like being dependant on others and their shedule for updates/troubleshooting. and i would be for the whole mod bc i have no knowledge of c#. at that point i could just give the mod to the person. adding code i cant maintain on my own is a hard no for me, always has been :god_dead:
Rook 19 Thg10, 2018 @ 11:27am 
Understandable. I'll have fun with RIMkea whatever you'll decide on this issue, ty for your work. :)
witchyspoon  [nhà phát triển] 19 Thg10, 2018 @ 11:44am 
and bc youre so understanding and nice I made an extra version of the mod
(not gonna post it on workshop tho)
https://www.dropbox.com/s/enhmsv59sqyt2j4/RIMkea_1.0_lamponextra.zip?dl=0
the lampon in this is built *beside* the wall you can rotate it until it *looks* as if its on the wall. but be aware if you place the lamp first anything else built on this place wil deconstruct the lamp (however placing the lamp after should be fine)
Rook 19 Thg10, 2018 @ 12:26pm 
<3 :D
Kiro 21 Thg12, 2019 @ 3:07pm 
Can't you make the lamp's light directional instead of omni? As in it only shines in the direction it's facing kinda like the wall lamp mod
witchyspoon  [nhà phát triển] 21 Thg12, 2019 @ 3:21pm 
Nguyên văn bởi BMCKiro:
Can't you make the lamp's light directional instead of omni? As in it only shines in the direction it's facing kinda like the wall lamp mod
no I can't
< >
Đang hiển thị 1-14 trong 14 bình luận
Mỗi trang: 1530 50