[1.0] Floor Lights

Started by Temeez, January 07, 2015, 04:00:08 PM

Previous topic - Next topic

Temeez

Quote from: kaptain_kavern on November 22, 2017, 12:20:30 AM
There was quite a simple mod back in the old day that was getting rid of them by "just" replacing the wire texture by an empty texture. To the game they were still there but not visible, but I can't seems to find it again :-(

That is what I did with this mod but it stopped working at some point.

kaptain_kavern

Crap! it's a shame.

Maybe Tynan have changed texture path or something similar. I will look into it and letting you know if you want (I'm already managing too much mods for my own sanity ;-) )

o7

kaptain_kavern

Hey I find you this, while exploring code:


<building >
      <allowWireConnection>false</allowWireConnection>
</building>


In the XML for powerswitches (/Defs/ThingDefs_Buildings/Buildings_Power.xml)

I haven't tested anything and I suspect using it will means having to place ceiling lamps on a power conduit, but maybe it'll interest you nonetheless.

I was thinking: I need to find a vanilla building that doesn't shows wires to see how it is done.

Temeez

Quote from: kaptain_kavern on November 23, 2017, 07:36:46 PM
Hey I find you this, while exploring code:


<building >
      <allowWireConnection>false</allowWireConnection>
</building>


In the XML for powerswitches (/Defs/ThingDefs_Buildings/Buildings_Power.xml)

I haven't tested anything and I suspect using it will means having to place ceiling lamps on a power conduit, but maybe it'll interest you nonetheless.

I was thinking: I need to find a vanilla building that doesn't shows wires to see how it is done.

I tried that just now but it didn't seem to do anything.

Temeez

Updated to version 4.1 which tells pawns not to break things on top of the tile before building the light. https://www.mediafire.com/file/c5fgdmlakf2qhco/FloorLights.v4.1.zip

dburgdorf

Quote from: Temeez on December 06, 2017, 11:00:57 AMUpdated to version 4.1 which tells pawns not to break things on top of the tile before building the light....

But... but.... Wanton needless destruction is FUN! :P
- Rainbeau Flambe (aka Darryl Burgdorf) -
Old. Short. Grumpy. Bearded. "Yeah, I'm a dorf."



Buy me a Dr Pepper?


Temeez


LasurDragon

#68
Big thanks for the update but there's two noticeable issues with the current version of the mod.

  • XML defs for new lamps use WorkToMake instead of WorkToBuild which makes lamps to be built instantly. More details here.
  • Even after this is fixed, this value is still much lower than for standing lamp - 120 vs 300. This makes floor lamp to have same light radius while requiring less energy and work to build.

Again, thank you for all the work on this mod, it became must-have for my playthroughs :)

Temeez

Quote from: LasurDragon on September 09, 2018, 01:32:04 AM
Big thanks for the update but there's two noticeable issues with the current version of the mod.

  • XML defs for new lamps use WorkToMake instead of WorkToBuild which makes lamps to be built instantly. More details here.
  • Even after this is fixed, this value is still much lower than for standing lamp - 120 vs 300. This makes floor lamp to have same light radius while requiring less energy and work to build.

Again, thank you for all the work on this mod, it became must-have for my playthroughs :)

Thank you and oh what a blunder, much appreciated! I've fixed those and a few warnings. I balanced the WorkToBuild values based on the Standing Lamp and glow radius so it's 300 for 12 radius and 150 for 6 radius, etc.

Direct download: http://www.mediafire.com/file/m1pxq2w7nge4z28/FloorLights.v5.2.zip

Temeez