边缘世界 RimWorld

边缘世界 RimWorld

103 个评价
Wall Sun Lamp
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5, 1.6
文件大小
发表于
更新日期
97.230 KB
2024 年 4 月 28 日 上午 8:18
9 月 17 日 上午 8:43
5 项改动说明 ( 查看 )

订阅以下载
Wall Sun Lamp

在 Xercaine 的 1 个合集中
Furniture Series
10 件物品
描述
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]
27 条留言
Xercaine  [作者] 11 月 5 日 上午 5:32 
@逆流风云 Hey, thanks for asking! I'll look into adding settings like that once I have the time or energy
逆流风云 10 月 30 日 下午 10:01 
你好,作者大大,能不能在mod设置里添加自定义发光半径范围,拜托了。
Hello, esteemed author, could you please add a customizable glow radius range to the mod settings? Thank you very much.
Leutian Kane 9 月 18 日 下午 4:25 
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  [作者] 9 月 18 日 上午 3:52 
@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 9 月 17 日 下午 10:34 
@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 9 月 17 日 下午 10:32 
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  [作者] 9 月 17 日 上午 8:44 
@Dreadarm Thanks, I missed this during the update! I've uploaded a patch that fixes the issue :)
Dreadarm 9 月 15 日 下午 1:33 
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 9 月 13 日 下午 9:24 
Also make sure you save the file, and restart the game completely to initiate the change
Xenophage1987 9 月 13 日 下午 9:23 
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.