RimWorld
Self Lit Hydroponics
댓글 44
OganessonG 2024년 5월 19일 오전 1시 21분 
Hi Aidan,
I am trying to make a sun lamp mod that illuminates square areas instead of vanilla circle ones, and could I use some part of your code? Thanks!
cosmicpintobean 2024년 5월 16일 오후 8시 17분 
Is this safe to remove if you have hydroponics? It's not working and my crops are dying so I need to use regular sunlamps
Vaarelsauce 2024년 5월 4일 오후 10시 20분 
goated mod, even after the lights 1.5 bug/feature
Vartarhoz 2024년 4월 19일 오전 2시 21분 
I wish this mod adds another one instead of editing already one, because sometimes you don't need light of hydroponic only soil of it. (aka deserts)
Preen 2023년 10월 1일 오전 7시 18분 
Being able to place these basins in any pattern or quantity is a huge advantage over vanilla sunlamp . 250 seems reasonable to give these a practical use (like the 5 basins in the picture) without totally invalidating vanilla sunlamps.
Rivelda 2023년 9월 30일 오전 11시 02분 
Or at least instead of 250W, 200W would be a nice round number if you want to incur a small penalty for using neat self-lit basins over a sun lamp with regular hydroponics.
General Profit 2023년 4월 23일 오전 2시 28분 
I thought it worth mentioning that with 250W as default output when lit it is costing you far more in power than a regular sunlamp with hydroponics

You can get 24 regular hydroponics per sun lamp, a sun lamp costing 2900w of power, so 4580 for 24 regular hydroponics+sun lamp, 1680 during night time

24 self lit would require 6000 per day, 1680 per night

So to determine the average that a self lit should have during the day would be 4580/24, this gets us 190.833333333 which we can just round up to 191 or round down to 190 to get as close to matching the same power use value as a regular sun lamp+hydroponics
lordneador 2022년 10월 29일 오전 1시 16분 
@Aidan I wondered if that was the problem, yet (with plants planted) the light were off for the whole day, until I cycled the basins power on/off once... Quick fix would most likely be to turn of said option in the settings
Aidan  [작성자] 2022년 10월 28일 오후 3시 57분 
@lordneador

The lights mirror the plant resting period by default (when `On Schedule` mod setting is enabled) and so the lights should turn back on around 6/7h in the morning.
lordneador 2022년 10월 28일 오후 2시 48분 
Ive got the problem that the basins shut of their light at night, but dont turn it on again. Is this known and is there a cause or fix? Ty in advance :)
ZzZombo 2022년 10월 23일 오전 8시 27분 
Error in static constructor of SelfLitHydroponics.OnStartUp: System.TypeInitializationException: The type initializer for 'SelfLitHydroponics.OnStartUp' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
at SelfLitHydroponics.SelfLitHydroponics.SetPowerConsumption () [0x0002f] in <05a6e254e6b94951adf4481f7590013c>:0
at SelfLitHydroponics.OnStartUp..cctor () [0x00007] in <05a6e254e6b94951adf4481f7590013c>:0
--- End of inner exception stack trace ---
MercuryDoll 2021년 5월 14일 오전 11시 02분 
Would it be possible to add a gizmo to manually toggle the lights off? For plants (mostly mushrooms) that die in light and need darkness to grow.
[82AD] era 2021년 4월 25일 오전 8시 56분 
Any chance we get compatibility for the farming module of Vanilla Expanded?
Aidan  [작성자] 2020년 10월 4일 오전 9시 22분 
@MysticForces

So I've just downloaded that mod and tried to uninstall and reinstall the Hydroponics Basin. The lights seem to despawn for me upon the basin being minified :/ So perhaps a different mod is causing the problem?
MysticForces 2020년 9월 29일 오후 12시 53분 
Minify Everything
https://steamproxy.net/sharedfiles/filedetails/?id=872762753

But it's almost becoming ungentlemanly to ask someone about his mods. All of them okay. I use all of them. *sob* ;)
Aidan  [작성자] 2020년 9월 28일 오전 10시 56분 
@MysticForces

Hey, I don't use any mods that allow the Hydroponics Basin to be uninstalled. Which mod are using so I can take a look?
MysticForces 2020년 9월 27일 오전 11시 50분 
When you uninstall a self lit hydroponics basin it creates a hydroponics basin and a hydroponics light. The hydroponics light can't be destroyed or sold and doesn't deteriorate so you're pretty stuck with it. Any ideas?
Aidan  [작성자] 2020년 8월 4일 오후 12시 12분 
That weird, I've just tried a fresh install and mine was 250W / 70W.

Does it keep its value if you change it from 0W ?
Jacki 2020년 8월 4일 오후 12시 07분 
The mod's settings are by default 0W when lights are on, 70W when lights are off
Aidan  [작성자] 2020년 8월 4일 오후 12시 06분 
Was that in the Mod Settings or during play?
Jacki 2020년 8월 4일 오전 11시 57분 
I have discovered 1 possible issues, when activating the mod, it's by default set to use 0W while it's on and 70W when it's off.
Aidan  [작성자] 2020년 8월 4일 오전 9시 58분 
@Jacky

Happy to help :) Let me know if you have any issues!
Jacki 2020년 8월 4일 오전 9시 43분 
Dude, I had put my save on hold for this moment, thank you so much, I didn't expect it to be done so fast. <3
Aidan  [작성자] 2020년 8월 4일 오전 8시 49분 
@Jacky

Power consumption is now tweakable :)
Jacki 2020년 8월 4일 오전 7시 30분 
I am just happy you are able to fill out a niche I didn't even know I had until I saw this mod.
Aidan  [작성자] 2020년 8월 4일 오전 7시 10분 
@Jacky

Thanks for the suggestion and the maths! I'll look at adding that as a mod setting :)
Jacki 2020년 8월 4일 오전 6시 27분 
I really want to use this mod for an alternate way to make hydroponic labs, but it costs 50% more power than using a sun lamp.

I would adore if you'd allow us to tweak the power usage settings, since 190W when it's on would make it exactly as if you were to use a sun lamp instead.

24 basins can be powered by a single sunlamp, which is 96 growable tiles;
2900W ÷ 96 = 30,2W per plant
(250 - 70) * 24 ÷ 96 = 45,9W per plant.
Aidan  [작성자] 2020년 7월 26일 오전 8시 06분 
You can now toggle if you wish the Hydroponics Basin to work on a schedule or not.
Aidan  [작성자] 2020년 7월 26일 오전 7시 20분 
@r3xm0rt1s

Sure I'll look at adding that as an option in the Mod Settings :)
r3xm0rt1s 2020년 7월 26일 오전 6시 50분 
Might you add an option to grow plants all day? It was the primary reason I got the mod. I suppose that makes the game easier but I just want to grow stuff faster.
Aidan  [작성자] 2020년 7월 26일 오전 3시 02분 
Just updated the mod so the Hydroponics Basin now works on a schedule.

It will be off during the plant resting period and so will require 70W (Same as Vanilla). It will turn back on during the plant growing period and require 250W.
Aidan  [작성자] 2020년 7월 14일 오전 12시 11분 
@Liwet

Ah, can't believe I didn't notice that...

I've fixed it now however, you may need to use the Dev Mode Destroy to cleanup any extra light if it isn't deleted after reloading though. Or you can edit the save file itself and remove the `HydroponicsLight` at the position you wish to remove...

Alternatively disable this mod, load your save, save your save, re-enable the mod and load your save again and everything should be fine :) (You'll probably get error messages after disabling the mod but this is seemingly harmless)

Please let me know if you have any issues ^^
Liwet 2020년 7월 13일 오후 5시 08분 
@Aiden

Lighting range and strength looks good, I got no other changes to recommend on that front. However, there does seem to be a slight bug when arranging a basin vertically. There's 1 spot above the basin that's 100% light and the bottom spot of the basin itself is 50%. The lights just need to be shifted down 1 spot for the vertical arrangement.
Aidan  [작성자] 2020년 7월 11일 오후 2시 54분 
Just rolled out another update. The 100% light is now confined to just the Hydroponics Basin.

Please let me know if you have any issues :)
Aidan  [작성자] 2020년 7월 9일 오전 8시 23분 
I've rolled out an update to allow you to toggle between the light being purple and white (it is purple by default) and also nerfed the light radius a little. Please let me know if there are any issues :)

@Liwet

I did not realise it what was that bad, thanks for pointing it out! I've nerfed it a little now so it shouldn't be as bad. I'll continue looking at how I can confine it more...
Liwet 2020년 7월 9일 오전 6시 21분 
Like 50% light or less should be ok but once you hit 51%, you can stick a hydroponics basin inside a garden area and use its light to grow plants. It lights up 41 spots around it at 100% light.
Aidan  [작성자] 2020년 7월 9일 오전 3시 39분 
@Liwet

I'll add some Mod Settings in the next few days so that the colour of the light can be set by the user themselves or at the very least give the option to toggle between white and purple.

I'll also look into how confining the light would work, but can't make any promises on that just yet.
Liwet 2020년 7월 8일 오후 12시 48분 
@BestToasterNA

I think that might have been me!

@WaxWorm

But how much power do they require? It's break even at 191 power per basin but this leaves in the paradox that exists with the vanilla basins: you can grow enough rice to turn into chemfuel to power the basins with chemfuel generators and still have some rice left over.

@Aidan

Any chance we can get a toggle for the light to make it white instead?

And can you confine the light to the hydroponics basin only? They are generating 100% light on the ground around them
Spectre Incarnate 2020년 7월 8일 오전 10시 31분 
@WaxWorm I've never liked those ones. These have purple lighting and feels like the light is coming from above the tables with a soft glow instead of resembling a gaudy fashion runway. :P
GoldLeader 2020년 7월 6일 오전 9시 34분 
This is great because having to come up with 2900W just to turn up a single table is crazy. Looks really cool in that purple color too. Nice job.
BestToasterNA 2020년 7월 4일 오후 4시 20분 
Well yeah but these look cool
WaxWorm 2020년 7월 4일 오전 11시 45분 
Hydroponics with integrated sunlamps have been a thing for years though.

https://steamproxy.net/sharedfiles/filedetails/?id=943373441 and https://steamproxy.net/sharedfiles/filedetails/?id=1330587565 for example.

But the UV-style light looks nice.
j.gladfly 2020년 7월 3일 오후 11시 42분 
From meme to mod in two days. Nice!
BestToasterNA 2020년 7월 3일 오후 5시 06분 
I just saw someone talking about this exact mod and here it is