a mod that replaces all turrets from their hidden variation that's upgraded back to vanilla. it was made in 5 minutes, so use at your own risk and make sure to backup the save before running it. compatible with base game and space exploration, not sure about space age.
NOTE: the mod will remove the old entity and make a new one, which means you will most likely lose stats such as kills, damage dealt or items in the inventory
to fix the turrets:
1. save the game
2. make a backup of the save
3. run /turretfix
4. remove the original mod and this mod
5. should be a-okay
original mod:
https://mods.factorio.com/mod/turret-range-research
disclaimer:
i do not dislike the mod, just needed to revert the changes without deleting all turrets from all surfaces.
the name was meant to be turret-range-undo, but we all do mistakes