RimWorld

RimWorld

Wall Sun Lamp
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?
Teneksi 11 Aug @ 7:55pm 
The last thing to fully supersede the old Wall Light is an option to have this emit purple light.

...and configure the power draw in its own settings (but to be completely honest the purple color is much more important to me)
Xercaine  [author] 8 Aug @ 1:16pm 
@Pasaway Thanks for the input! I've thought about their similarity before, and how it could be an idea to slightly change it to differentiate it more.
Pasaway 8 Aug @ 1:07pm 
Just a thought. I stopped using this mod because I would sometimes select the wall sun lamp instead of the regular wall light and put them all over my base, only to realize my mistake after all of my power was gone. I wonder if you might consider making the icon in the architect menu purple or something to make it more obvious that it is the sun lamp. Sometimes fools like myself could use a little help.
Xercaine  [author] 25 Jul @ 6:30am 
Updated to 1.6 with basic testing!
RojaCat 14 Jul @ 6:02pm 
Works for 1.6
plex051 1 Jan @ 5:35pm 
O7
lizmac21 19 Oct, 2024 @ 1:57pm 
Thank you!
Xercaine  [author] 12 Sep, 2024 @ 10:57am 
@Hellebus That's the vanilla amount, but there's a patch for those using Sun Lamp Power, which is another mod that lowers power drain of sun lamps.
Hellebus 12 Sep, 2024 @ 6:35am 
Must be a troll mod. Makes power consumption 2650. NOT 450 as listed.
LowFPSman 19 Jun, 2024 @ 6:00pm 
Are you trying to beat a nail in the coffin of Wall Light. This mod already have wall sun lamps. Only thing it left with. o7
jsc 18 May, 2024 @ 4:05am 
thank you i love you
Gamerhell 3 May, 2024 @ 4:32pm 
"you're as beautiful as the day I lost you."
Juggernaut 2 May, 2024 @ 10:40am 
Finally i found you!
azsx78600 28 Apr, 2024 @ 5:30pm 
Nice
node118 28 Apr, 2024 @ 11:53am 
Noice