Oxygen Not Included

Oxygen Not Included

Laser Turret (Vanilla/DLC)
182 Comments
渡鸦12345 2 Aug @ 4:16am 
仿生人应该判断畜牧增幅块,要不然全仿生人档建造不了
n3mes1s 20 Jul @ 1:00pm 
Btw, is there a way to make the laser turret a little bigger? it looks pretty bad as any other object (power cables, automation, etc) is basically even bigger and it will completely overlap the laser turret...
n3mes1s 20 Jul @ 12:59pm 
I know that lol, what probably happened is that i didnt have mechatronics+critter ranching II in the same dupe. But because there isnt any hints when any of these skills are missing when you construt the laser it gets very confusing.
꧁༺Vïñçï༻꧂  [author] 2 Jul @ 8:33am 
@n3mes1s Showing my dupe with critter rancher 2 is building it if you do recognize the progress bar and the dupe with a tool gun, "激光炮塔" means "Laser Turret", "建造中" means "constructing"
n3mes1s 1 Jul @ 8:37am 
Vinci whats that image supossed to show? lol.
n3mes1s 1 Jul @ 8:36am 
Well, it doesnt for me. So i just unsubbed. Curious thing is it was working fine like one week ago? and now suddenly it doesnt.
꧁༺Vïñçï༻꧂  [author] 1 Jul @ 8:24am 
@n3mes1s works for me: https://i.imgur.com/pKexfuf.png
n3mes1s 30 Jun @ 2:16pm 
So is this mod working fine? i cant even build it. I fullfill all the requisites (resources, mechatronics and critter rancher 2) and my dupes will never try to build it. Yes they will bring the resoruces.. and thats it.
꧁༺Vïñçï༻꧂  [author] 18 Jun @ 5:17am 
@n3mes1s
As the description said, "can be controlled by signal", see: Critter Sensor [oxygennotincluded.fandom.com]
n3mes1s 17 Jun @ 10:27am 
Can this be adjusted with a sensor or something so it only attacks the excess of critter population??? because if not, its a completely pointless and useless mod.
、এ孤ོ屿ꦿ℘゜ 12 Jun @ 12:11pm 
更新后 会崩溃:steamhappy:
hmm... idk why but it don't shot Puft Morphs anymore
Yuri 12 May @ 6:09am 
Remove the requirement to build a tower. Bionics don't have a rancher 2(Google translator)
Wyrinn 17 Mar @ 5:54pm 
Ran into a error where it said needed to be updated, restarted, and repeated endlessly. Solved by copying the mod from the steam download into local mods.
Fox 18 Jan @ 12:41pm 
That's great, thank you. :) Sorry I didn't see the filter yet as not been able to build the laser.
꧁༺Vïñçï༻꧂  [author] 18 Jan @ 9:06am 
@Fox
I haven't played with the new bionic dupes yet, I'll think about it.

As I recall the filter is already implemented, click on it and you can select which ones you want it to target (babies are different type besides normal ones)
Fox 16 Jan @ 8:33am 
Love this mod, thank you! I started a new bionic dupe only play-through and realised that I can't build this as it requires Critter Ranching II which Bionic dupes can't get. They only get the Ranching Booster. Is there any chance you could adjust the settings to allow Bionic dupes with Ranching Booster to be able to build the laser?

I also wanted to ask if there was any way the laser could have a filter so you can filter what critters you want the laser to be able to attack/not attack? I like the idea of being able to set it to kill adults only and ignore babies etc.
友人A 23 Nov, 2024 @ 7:06am 
亲爱的,快更新:steamthumbsup:
友人A 22 Nov, 2024 @ 4:51pm 
这回好像真炸了,有时间更新一下吗,这个还是很好用的,不用小人手动杀了
꧁༺Vïñçï༻꧂  [author] 5 Sep, 2024 @ 5:27am 
@Jerk ???? What for? Works perfect for me
Jerk 4 Sep, 2024 @ 1:14pm 
UPDATE THIS MOD FFS!!!
The Tempted Man 16 May, 2024 @ 9:51am 
crashes or turning it around in construction menu
꧁༺Vïñçï༻꧂  [author] 11 Jan, 2024 @ 5:49am 
@Corgylegs Works fine for me, try reinstall the mod, it might be the workshop updating issue.
Corgylegs 10 Jan, 2024 @ 8:32am 
Error in LaserTurretComplete.LaserTurret.OnPrefabInit at (169.5, 142.0, -19.5)

System.MissingFieldException: Field 'TreeFilterable.OnFilterChanged' not found.
at KMonoBehaviour.InitializeComponent () [0x00068] in <1e2b7d5db95c4d6b84eabb7ca0270927>:0
Build: U50-587362-SD

getting this error when placing it into the world
꧁༺Vïñçï༻꧂  [author] 24 Dec, 2023 @ 6:40am 
@Space Lord
Thanks. Though the power consumption is mean to be like this, after all, power is the last thing we need to worry at the mid or late stage of this game (at least for me). It should only consume power when it's working, so you might wanna reduce the amount if your power is not enough yet. :woodleface:
Space Lord 21 Dec, 2023 @ 10:27am 
A must have mod. How can you edit the power requirement though? I have 10 of these and they draw too much power.
꧁༺Vïñçï༻꧂  [author] 10 Dec, 2023 @ 3:02am 
@Zombie Fetladral
Fixed it, somehow the pos of the fish is not int but a float like 64.5, making it out of the turret's range when the turret is attached on the right side.
Zombie 12 Nov, 2023 @ 6:56pm 
turret isn't targeting and/or killing aquatic creatures.
https://i.postimg.cc/LsVfXXbn/lasernottargeting.jpg
https://i.postimg.cc/TYXDrnvp/lasernottargeting2.jpg automation
https://i.postimg.cc/QdfKGP9T/lasernottargeting3.jpg electrical
i've double checked to make sure that they were in the area of reach, was not automated off, and that it has electricity.
it works for the other critter ranches but not these.
꧁༺Vïñçï༻꧂  [author] 8 Oct, 2023 @ 9:27am 
@粉红的珠仔 重新用575720版本的游戏包构建了一下,再试试看
萌珠彪宰 1 Oct, 2023 @ 6:51am 
Select category game crash please fix Thank you
选择类别 游戏崩溃,请修复谢谢
icuurd12b42 18 Jun, 2023 @ 8:57am 
Can you make the laser turret image 2 or 3 times bigger. the electrical wire and automation wire plugs are bigger that the laser itself and it feels wrong.
ihoong 18 Jun, 2023 @ 2:32am 
Thank you! Working now. Had to uninstall and reinstall. Updating alone still caused crashing but reinstalling fixed it, Thanks again.
꧁༺Vïñçï༻꧂  [author] 17 Jun, 2023 @ 7:54pm 
@ihoong @[MaD] @ParagonZero
Updated, v2.2.0.0 works for me now, try it again
ParagonZero 17 Jun, 2023 @ 4:28pm 
looking at the error and your github, its changed the line of sight function to include System.Func`2<int, bool> since looking at your code and the error your code only seems to call back the the stand alone bool. - Hope this helps, since i dont know the first thing about modding this game thats the best i can offer.
[MaD] 16 Jun, 2023 @ 6:01pm 
i can confirm the reported crash by ihoong

https://pastebin.com/DJkZBP7m
ihoong 15 Jun, 2023 @ 11:46pm 
Hi there again. This mod crashes the game when the laser tries to activate. Started after the latest Klei update from yesterday. The error messages refer to this mod. Update when you can please. This is a most useful mod.
N0US 17 Jan, 2023 @ 7:30am 
太恶毒了:meepyikes:
꧁༺Vïñçï༻꧂  [author] 8 Nov, 2022 @ 4:10am 
@ihoong No worries. :)
ihoong 7 Nov, 2022 @ 11:17pm 
@泡椒 [author]
Please disregard my previous statement. The mod is now working. I manually reinstalled the update twice. First time didn't change anything, but strangely the second attempt worked. I don't understand why it suddenly changed.
Apologies if I caused you any inconvenience.
꧁༺Vïñçï༻꧂  [author] 7 Nov, 2022 @ 3:45am 
@ihoong
Just tested that everything works fine, no crash, neither dupe constructing nor fast build with debug tool. Though I'll just recompile everything an update, you can try it again.
ihoong 6 Nov, 2022 @ 8:31pm 
I can confirm this mod crashes the game. I'm using v2.0.2.2.
It crashes when a laser is built.
I have also tested after disabling all other mods except "mod updater".
Vanilla game, haven't tested in DLC yet.
꧁༺Vïñçï༻꧂  [author] 8 Oct, 2022 @ 6:24am 
@盟主电磁炮 这个已经修复过了的哦,刚才又测了一遍文件版本v2.0.2.2是没问题的哈
盟主电磁炮 6 Oct, 2022 @ 9:31am 
Error in LaserTurretComplete.LaserTurret.OnPrefabInit
System.MissingFieldException: Field 'TreeFilterable.OnFilterChanged' not found.
at KMonoBehaviour.InitializeComponent () [0x00068] in <1b5c2ff4f53d4a48b7159ed84d905978>:0

at UnityEngine.Debug.LogError (System.Object message, UnityEngine.Object context) [0x00000] in <72b60a3dd8cd4f12a155b761a1af9144>:0
at Debug.LogError (System.Object obj, UnityEngine.Object context) [0x00000] in <1b5c2ff4f53d4a48b7159ed84d905978>:0
at DebugUtil.LogErrorArgs (UnityEngine.Object context, System.Object[] objs) [0x00000] in <1b5c2ff4f53d4a48b7159ed84d905978>:0
at DebugUtil.LogException (UnityEngine.Object context, System.String errorMessage, System.Exception e) [0x00000] in <1b5c2ff4f53d4a48b7159ed84d905978>:0
at KMonoBehaviour.InitializeComponent () [0x00000] in <1b5c2ff4f53d4a48b7159ed84d905978>:0
at KMonoBehaviour.Awake () [0x00000] in <1b5c2ff4f53d4a48b7159ed84d905978>:0
盟主电磁炮 6 Oct, 2022 @ 9:25am 
现在十月7日崩了打不开呜呜呜
盟主电磁炮 6 Oct, 2022 @ 9:24am 
这个mod蹦了啊,我一个一个mod排除了,就是因为这个mod游戏蹦了:steamfacepalm:
꧁༺Vïñçï༻꧂  [author] 5 Oct, 2022 @ 9:18pm 
@占卜师蠢喵 已修复
@Cristoferr Fixed
Crovax 5 Oct, 2022 @ 8:24am 
yeah, not working since the update.
艾莎 5 Oct, 2022 @ 2:23am 
Error in LaserTurretComplete.LaserTurret.OnPrefabInit
System.MissingFieldException: Field 'TreeFilterable.OnFilterChanged' not found.
at KMonoBehaviour.InitializeComponent () [0x00068] in <1b5c2ff4f53d4a48b7159ed84d905978>:0

新版本会报错
Knifepoint 10 Sep, 2022 @ 6:43am 
any chance of an update? the turret doesnt attack hatches at all
Эльфик 9 Jun, 2022 @ 5:21am 
if im not mistaken your algorithm has a fault in GetNextTarget()
KPrefabID kprefabID2 = null;
float num = float.MaxValue;
foreach (KPrefabID kprefabID3 in list)
{
float num2 = LaserTurret.CalcProfit(kprefabID3);
if (kprefabID2 == null || num2 < num)
{
kprefabID2 = kprefabID3;
num = num2;
}
}

so it calculates "profit" for the first target, and since kprefabID2 is no longer "null", skips all others