RimWorld
Self Lit Hydroponics
44 件のコメント
OganessonG 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 5月16日 20時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 5月4日 22時20分 
goated mod, even after the lights 1.5 bug/feature
Vartarhoz 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日 15時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日 14時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日 0時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日 17時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日 14時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日 16時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日 23時42分 
From meme to mod in two days. Nice!
BestToasterNA 2020年7月3日 17時06分 
I just saw someone talking about this exact mod and here it is