Turret Range Research


Adds research technologies to increase the range of gun turrets, laser turrets, and flamethrower turrets.

Content
3 months ago
2.0
4.73K
Combat

g Custom Deconstruction Planner Issues

a month ago
(updated a month ago)

I normally have a decon planner on my hot bar for gun-turrets that I use frequently when turret rushing biter bases - I noticed that once I researched this mod's range upgrade, my decon planner could no longer select the turrets for deconstruction. I eventually figured out (through a console command) that the turrets I was trying to deconstruct, were technically no longer the same prototype: "gun-turret"...

This is seemingly because, once completed, each "Gun Turret Range" research actually replaces every existing corresponding turret with the respective upgraded prototype. I don't know how this would be fixed from within the mod - but I think I've got a decent work around for now which I wanted to share with other players who might see the same issue as me. And idk maybe this could be something limited to just me, an odd mod interaction or something? I definitely didn't test this after disabling all other mods.

So even though my decon planner had "gun-turret" whitelisted, due to the research, my planner could not deconstruct gun turrets anymore. Because of these new / different prototypes being hidden from the player, you can't add the upgraded ones to your planner normally. So, I used ChatGPT to generate a console command to help with this - This command adds all vanilla turret types and all upgraded variants created by the mod to a deconstruction planner whitelist. This allows the planner to correctly select upgraded turrets for deconstruction.

/c local p=game.player local stack=p.cursor_stack if not stack or not stack.valid_for_read or stack.name~="deconstruction-planner" then game.print("Put a deconstruction planner in your cursor first.") return end local names={"gun-turret","gun-turret-ranged-1","gun-turret-ranged-2","gun-turret-ranged-3","gun-turret-ranged-4","gun-turret-ranged-5","laser-turret","laser-turret-ranged-1","laser-turret-ranged-2","laser-turret-ranged-3","laser-turret-ranged-4","laser-turret-ranged-5","rocket-turret","rocket-turret-ranged-1","rocket-turret-ranged-2","rocket-turret-ranged-3","rocket-turret-ranged-4","rocket-turret-ranged-5","tesla-turret","tesla-turret-ranged-1","tesla-turret-ranged-2","tesla-turret-ranged-3","tesla-turret-ranged-4","tesla-turret-ranged-5","flamethrower-turret","flamethrower-turret-ranged-1","flamethrower-turret-ranged-2","flamethrower-turret-ranged-3"} for i,name in ipairs(names) do stack.set_entity_filter(i,name) end game.print("All original turrets and upgraded 'Turret Range Research' variants added to planner whitelist.")

I'm also including the string for the deconstruction planner itself so you can just import that instead of running commands.

0eNqVlU1v2zAMhv+KoHM+bMVO4twK7LgCQzHsshSBYjOOUEcKJLldEPi/j3LaRa6dqDvZlh5S5EuZPNMCciWN1XVuhZKbY8WlBE1XZ2rAWiFL495BWmFPm52oLGhc+X2mkh+ArmhZy7GttQZLR1TIAv7QVdSMBvbHmssSinF8BeO7ILuC7C44u4Kzu2ByBZO7YHoFUw+suAHdS3d+gxhIeBFAvZSXAdRLOgugXtpxFGC9zGO/PFrlL0h9zj1mt5ihcs9CsJd/nIRgT4E4DcG+BvMQ7Ivgl8yCqXhfg+UNZEiCLMD6lz4KsJ4ALA6wXv6MBVgvfeaXbFfh0+61ehv4C1hynxwQg6VfM/E1mX/NxJdm0TyPqBUVbAxUcOlzB1WgBzbC/mdyLY5uET0+kG4/JO/9kOyUJnYPRGlRCskrcjnOEG7IG1SVe7r9+lhqXkDxb/+kalLLCm8ZcZHW5Z5oMMB1vsfm2tq0IX9YmslaruUjvhGryBbXDXrjlcJOLNwiGmDwZE1/tieQp9b66d3nmpLtifwSR9CvQsOErOV3IV+cr0e0+qG0xeCPvIQVbqEjM9nx3GJaapKrwxRXpr6S449gpy6s/+ELYfLaGBRxOufxFqIoW86KWVIsllkep8V2x12NnNrtPDGiRF3dsOlPlqY7MXpopy833anRg7udrOmOjh7d+eUbb3w8uw8LB2S6d2b8MUNHGNcW0Bn95oAVecB7cqmawc1XnKTtrUvnLEuyLF0mEYuSZdP8BUUkmUQ=

I hope this helps somebody.
- Satan

New response