Long Range Turret Redux


2.0 Port for Yehns mod. Provides research to unlock a mid tier turret between basic gun turrets and lasers: Longer range and greater durability, but at the cost of much slower traverse speed and fire rate. DPS lower than basic gun turrets.

Content
16 hours ago
2.0
990
Combat

g HR sprites

a month ago

in 2.0 the game only uses the default sprites (and scales them down automatically), the hr_version property gets ignored

a month ago
(updated a month ago)

ok.
I'm new to mods, so what do I need to change?
Edit:
I think I know what you mean. I will clean up the code and remove the "old" standard definition graphics and there references in the code and set the hr_versions as the new standard definition sprite sources.

a month ago

correct :)

a month ago
(updated a month ago)

also the gun turret item is in the wrong subgroup, it should be in "turret" with the order string more like "b[turret]-b[gun-turretLR]"

a month ago
(updated a month ago)

i hope i'm not annoying you but i found a few other issues:
space age changed the physical projectile damage modifiers.
so i added an optional dependency for space age ("?space-age") (so the mod loads after that) and changed some of the code:
...tech.lua to:
for i,technology in pairs(data.raw.technology) do
for j,effect in pairs(technology.effects or {}) do
if effect.type == "turret-attack" and effect.turret_id == "gun-turret" then
table.insert(technology.effects, {
type = "turret-attack",
turret_id = "lr-gun-turret",
modifier = effect.modifier
})
end
end
end

migration script to:
force.set_turret_attack_modifier("lr-gun-turret", force.get_turret_attack_modifier("gun-turret"))
(this also fixes that physical-projectile-damage-7 would be counted 7 times)

a month ago

I will have a look at it. Probably tomorrow

18 days ago

I have a Sprite Error

Failed to load mods: The given sprite rectangle (left_top=252x0, right_bottom=504x242) is outside the actual sprite size (left_top=0x0, right_bottom=252x726).
See the log file for more information.: LR_Turret_Redux/graphics/entity/gun-turret/remnants/hr-gun-turret-remnants.png

I was unable to reproduce that error on two different systems. So sadly no idea. If anybody can help me troubleshoot this, highly welcome.

New response