[0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Bugs that are actually features.
User avatar
LethargicChii
Inserter
Inserter
Posts: 40
Joined: Fri Dec 23, 2016 5:19 pm
Contact:

[0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Post by LethargicChii »

Attachments and documentation: viewtopic.php?f=93&t=47497&p=277549#p277549

I'm not sure if it can be classified as a bug, as to achieve this result you must modify the game code, although it is only 1 line and 1 setting. Set the turret range of the base game turret to 80, place it near biters, let it kill them all, then watch as new biters enter its range. They will only be killed at what I think is a range setting of 55. The turret will kill everything in it's range once a single biter passes this threshold.

I am sorry if this is determined not to be a bug, as it's beyond the current/original game settings thus making it a modification. However, if you ever implement turrets with longer range, it may become an issue.
My Mods:
Rocket Turret
Discussion Forum: viewtopic.php?f=93&t=47497

Ask me about blender! I don't know a lot, but, I can try and help.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15652
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Post by Rseding91 »

This is related to the activation distance of enemy units.

When an enemy is more than the activation distance away it won't activate enemy-conditional entities (turrets, biters). You'll have to increase that value in the map settings if you want the turret to activate at that distance.

A warning though: doing that will reduce game performance by large amounts for every increase you do. What I recommend is to just not have the turret shoot that far as it also means that the turret has to scan the entire area around it in that distance for enemies each time it has to shoot which will be a large drain on game performance as well.
If you want to get ahold of me I'm almost always on Discord.
User avatar
LethargicChii
Inserter
Inserter
Posts: 40
Joined: Fri Dec 23, 2016 5:19 pm
Contact:

Re: [0.15.12]Gun Turret Behaves oddly if set above 55 for range.

Post by LethargicChii »

Wow thank you for that insight. I see now. Seems that I will have to reduce the range of the turret.
My Mods:
Rocket Turret
Discussion Forum: viewtopic.php?f=93&t=47497

Ask me about blender! I don't know a lot, but, I can try and help.
Post Reply

Return to “Not a bug”