边缘世界 RimWorld

边缘世界 RimWorld

PowerSwitch
268 条留言
Daemonjax 9 月 20 日 下午 4:58 
For 1.4:
========== Def-injected translations load errors (1) ==========
Couldn't inject ResearchPowerConduitsInvisible.descriptionDiscovered into Verse.ResearchProjectDef (ResearchProjects_PowerSwitch_Invisible.xml): Field descriptionDiscovered does not exist in type Verse.ResearchProjectDef

So I just removed that one line from the english language file.
Cama zotz 8 月 14 日 上午 8:00 
What does this mod considers enemies? Because when i use the auto detect enemy, it's turns on even if i have no enemy on the map. Could it be the Alpha Animals mod? I played before and the auto detection worked but i started a new save with new mods. Just wondering if you know of any potential conflicts
Soup_UK 8 月 1 日 上午 4:50 
Hydra - that is a great idea!!
Hydra 7 月 29 日 上午 11:30 
Nice mod!
Been using it for a while now. Any chance instead of ranges have it coupled to zones? I.e. if a pawn is in a certain zone it activates?
Ninjaxas 7 月 19 日 上午 6:50 
I agree with the wall mounted option! It's more realistic too. A switch does not need to be full tile size.
Soup_UK 7 月 15 日 上午 4:53 
Hi! I'm a fan of your mod. I was wondering if it's possible to have a wall-mounted variant? This is more for aesthetic (than practical) reasons. :steamthumbsup:
Haplo_X1  [作者] 7 月 11 日 下午 2:11 
Done
The Byzarkandian 7 月 11 日 上午 11:44 
1.6?
Haplo_X1  [作者] 5 月 8 日 上午 11:53 
You can do a pull request if you like, then I can merge it
Scentyz 5 月 6 日 上午 7:40 
Haplo_X1, should I make a push/fork/anything? All the code changes are just one block and one line. And thank you for the great mod!
Scentyz 5 月 6 日 上午 7:36 
also add this in your class scope (outside of the method) if anyone is using the fix

private int lastCheckedHour = -1;
Scentyz 5 月 6 日 上午 7:33 
I was using this mod along with Logic Switch. I am not sure if it resulted in any conflict, but this fix seems to have made the timer of this mod work for me, by flicking the switch only once per hour. The timer may not start to work immediately, but should do after an hour of in game time.
Scentyz 5 月 6 日 上午 7:33 
with

[code]
// Improved Timer switching
if (autoSwitchTimerActive)
{
int currentHour = GenLocalDate.HourInteger(Map);

if (currentHour != lastCheckedHour)
{
lastCheckedHour = currentHour;

if (currentHour == autoSwitchTimerOnTime && !flickableComp.SwitchIsOn)
{
flickableComp.SwitchIsOn = true; // No designator usage!
SetWantSwitchOn(true);
}

if (currentHour == autoSwitchTimerOffTime && flickableComp.SwitchIsOn)
{
flickableComp.SwitchIsOn = false; // No designator usage!
SetWantSwitchOn(false);
}
}
}
[/code]
Scentyz 5 月 6 日 上午 7:32 
ok I might have made a fix:

replace
[code]
// Timer switching
if (autoSwitchTimerActive)
{
// Time = Off-Time => Switch OFF
if (GenLocalDate.HourInteger(Map) == autoSwitchTimerOffTime && flickableComp.SwitchIsOn)
{
flickableComp.SwitchIsOn = false; // No designator usage!
SetWantSwitchOn(false);
}

// Time = On-Time => Switch ON
if (GenLocalDate.HourInteger(Map) == autoSwitchTimerOnTime && !flickableComp.SwitchIsOn)
{
flickableComp.SwitchIsOn = true; // No designator usage!
SetWantSwitchOn(true);
}
}
[/code]
Haplo_X1  [作者] 5 月 1 日 上午 10:43 
Scentyz 4 月 25 日 下午 9:30 
I too feel the timer function is buggy. Could you please link the repo of 1.5 for me to take a look at?
123caboom 4 月 8 日 上午 9:03 
Compatible to the wall mounted switch in „hold my switch“?
Shabazza 1 月 11 日 下午 2:11 
Timer function is not working for me. It always stays on.
Shodan2072 2024 年 12 月 19 日 上午 9:30 
Is there any way this could be combined with [Og] Automatic Power Switch, to make the different controls turn on/off automatically?
Haplo_X1  [作者] 2024 年 12 月 5 日 下午 9:45 
Did you add the mod midgame? Then you have to destroy, rebuild the power switch to get the new buttons
The King 2024 年 11 月 11 日 上午 6:15 
My module loaded successfully but no buttons are displayed, Is there any chance of conflict with other mods? (mod1.4)
Haplo_X1  [作者] 2024 年 10 月 3 日 下午 12:13 
If you add the mod to a running game, the powerswitch needs to be rebuild, else it continues to use the old switch.
PassingVillager 2024 年 10 月 1 日 上午 6:40 
My module loaded successfully but no buttons are displayed, Is there any chance of conflict with other mods? (mod1.4)
神公子 2024 年 6 月 1 日 下午 12:02 
1.5?
Bardock20687 2024 年 5 月 2 日 上午 10:48 
1.5??
тетеря, блин 2024 年 4 月 22 日 上午 7:50 
1.5 🙏
Mike3223cz 2023 年 11 月 8 日 上午 6:39 
Is there a mod that adds a "one-way" cable? Something like a Diode... It allows electricity one way, but not the other... Could be used to make a "Backup power supply".
smitty_the_smith 2022 年 10 月 10 日 上午 9:57 
Is there a way to have Enemy Detection detect hostile animals?
jose.faunon 2022 年 8 月 22 日 下午 1:37 
This mod is great! May I ask you for make a wall mounted interruptor? I know the mod "wall stuff" have one, but it is not compatible
Haplo_X1  [作者] 2022 年 8 月 15 日 下午 3:07 
That is an issue of the power switch: If it switches a wokbench off, this workbench will be ignored by the pawns.
AngryGuadalupe 2022 年 8 月 14 日 上午 11:47 
When using motion detection, do workbenches without power prevent pawns from working on active bills? Or will pawns ignore that the workbench isn't powered and go to the workbench, activating the power?
Don Castillo Esteban Gonzales 2022 年 6 月 6 日 上午 3:42 
Is there a way to put the switch with the motion detection inside a wall, facing a particular room? This would clean tings up and get rid of switches put randomly inside a room
Haplo_X1  [作者] 2022 年 5 月 4 日 上午 9:43 
You can add it all the time. It just will not apply to already built switches,but new ones should work.
Varulv16 2022 年 5 月 3 日 上午 7:51 
So is this mod early game compatiable or is a new game required?
Haplo_X1  [作者] 2022 年 4 月 15 日 上午 7:13 
Only if it changes the power switch.
Sundering Sober Sonder Sun 2022 年 4 月 15 日 上午 2:47 
Does this conflict with the mod - LightsOut?
Kuchar 2022 年 4 月 4 日 上午 7:22 
Is there an option to add that we can change auto on/off radius? sometimes 7 is too big for me and it is switching when pawn is in other room.
Haplo_X1  [作者] 2022 年 3 月 10 日 上午 8:55 
You can switch this behaviour in the mod options
Fwiffo 2022 年 3 月 10 日 上午 1:08 
For some reason, the switch does not activate automatically on enemy detection in my game. Instead, it creates a job to flick it on/off manually instead.
Haplo_X1  [作者] 2022 年 1 月 24 日 下午 1:22 
I've recompiled it against version 1.3.3200. In my tests the switch is now working. On your side too?
BippyMiester 2022 年 1 月 23 日 下午 4:54 
Can confirm that as of today, the mod is broken in 1.3. You can't set the time to turn the switch on or off, and the detection of hostile pawns, creatures, or enemies is hit or miss. Do not use the mod until its been updated, and make sure to BACK UP YOUR SAVE prior to you trying this mod. -1 vote from me.:steamthumbsdown:
smitty_the_smith 2021 年 9 月 3 日 下午 10:39 
Someone fixed the detection of hunting animals by the power switch. I don't know who to thank.
@Jarquafelmu It works now.
Disferente 2021 年 8 月 21 日 上午 8:50 
Any chance to add so it can turn power off/on when it is raining?
-Mikhail- 2021 年 8 月 16 日 下午 1:21 
There may be a problem in the version for 1.3. The switch is not visible on the wall.
Athos56 2021 年 8 月 9 日 下午 1:30 
Just as a heads up, I had a siege raid, even after the raiders charged the walls the enemy detection never triggered. It had worked as expected for the regular raid earlier. However, the motion detection works great for my hospital, saves me tones of power. Great mod.
Haplo_X1  [作者] 2021 年 7 月 19 日 上午 8:32 
Take a look on github..
Ex Ossibus Fumus 2021 年 7 月 18 日 下午 6:36 
Can anyone confirm if this is functional as is for 1.3? just wanna make sure i can still use this with the new DLC
potoum13 2021 年 7 月 14 日 上午 1:55 
BUG - I use a mod call Visual Exceptions... And it report an error when loading this mod.

System.InvalidOperationException: Field descriptionDiscovered does not exist in type Verse.ResearchProjectDef.
Jarquafelmu 2021 年 7 月 5 日 下午 5:25 
it would be nice if manhunting animals or animals in rage would trigger the enemy detection so that the turrets can fire at them
smitty_the_smith 2021 年 5 月 30 日 上午 11:35 
Does anyone know of a way to cross two power lines without them connecting? I want a switched line and an unswitched line