RimWorld

RimWorld

98 ratings
Wall Sun Lamp
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.5, 1.6
File Size
Posted
Updated
97.230 KB
28 Apr, 2024 @ 8:18am
17 Sep @ 8:43am
5 Change Notes ( view )

Subscribe to download
Wall Sun Lamp

In 1 collection by Xercaine
Furniture Series
10 items
Description
A mod that adds a wall sun lamp.

Uses the wall placement system used by other lamps.

Contains a patch for Sun Lamp Power that sets power consumption to 450. Default power consumption is 2650.



If you like my mods, please consider donating. It supports my work and really helps out.
[ko-fi.com]
[patreon.com]
25 Comments
Leutian Kane 18 Sep @ 4:25pm 
i actually made my own by combining properties from teh wall lamp and the vanilla sunlamp myself without using anyone's code :P i made a stuffable version that requires extra research and one that isnt both have 24 radius and vanilla one has 1450 power while the "end game one" only uses 20 power.
Xercaine  [author] 18 Sep @ 3:52am 
@Xenophage1987 No worries, I like it when people customize my code for their purposes. The more utility the better! But it seems I should consider adding some mod options though, once I have some energy.
Xenophage1987 17 Sep @ 10:34pm 
@grumble314 unfortunately that is gonna have to be a different mod, as the core gameplay code for plants includes a rest period at night, this mod simply matches that rest period.
Xenophage1987 17 Sep @ 10:32pm 
If you edited the file in my previous comment (in order to edit the range or power cost), the aforementioned patch reset to defaults. In my case, this caused the grid to be drawing -20000 watts... not good.

Also, if you want to change the radius of the growing-able radius, there is a new line that you can edit to make the change more succinctly. Look for this line:
<li Class="CompProperties_Glower">
<overlightRadius>10.0</overlightRadius>
In this case, I changed the growing radius from 4.5 to 10.

If you want this change to also be reflected in the radius shown when the light is selected, change this line to correspond with the desired radius:
</comps>
<specialDisplayRadius>10</specialDisplayRadius>
Again, in this case I choose ten.

As always, remember to save the file, and completely restart the game for the changes to take effect.

@Xercaine if you want me to delete these posts cause you dont like people messing with your code just lmk I wont mind.
Xercaine  [author] 17 Sep @ 8:44am 
@Dreadarm Thanks, I missed this during the update! I've uploaded a patch that fixes the issue :)
Dreadarm 15 Sep @ 1:33pm 
There is a bug with this where the outermost squares of the growing radius are not being lit - They stay at 50% - https://1drv.ms/i/c/dcd5372c9c919e3b/ERH2nnBYs2ZMh9ZdDofYAGQBHb1IGP3k0lNyrAT3vL8WkQ?e=g0g1Ph
Xenophage1987 13 Sep @ 9:24pm 
Also make sure you save the file, and restart the game completely to initiate the change
Xenophage1987 13 Sep @ 9:23pm 
If you want to change the power draw or the radius that the plants will grow, follow the following steps:
Main menu in game > Mod List

Find Wall Sun Lamp > Click Advanced > Open Folder

From the open folder > 1.6 > defs (Should have a simple XML file)

> Edit in Notepad

To edit the power draw, find the line:
<basePowerConsumption>300</basePowerConsumption>
In this case, I changed the power draw to 300.

To edit the radius of which plants grow, find the line:
<li Class="CompProperties_HeatPusher">
<compClass>CompHeatPusherPowered</compClass>
<heatPerSecond>10</heatPerSecond>
In this case, the radius is around 10. If you're having trouble figuring out if your plants are growing, if the area is lit more that 52% (as seen in the bottom left corner of your screen) they will grow.
grumble314 13 Sep @ 9:13am 
I more interested in the option to not turn off at night.
Pasaway 13 Aug @ 2:02pm 
@Teneksi: Can't light colors be changed base game?