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
11 months ago
2.0
3.15K
Combat

g HR sprites

1 year, 13 days ago

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

1 year, 13 days ago
(updated 1 year, 13 days 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.

1 year, 13 days ago

correct :)

1 year, 13 days ago
(updated 1 year, 13 days 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]"

1 year, 13 days ago
(updated 1 year, 13 days 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)

1 year, 13 days ago

I will have a look at it. Probably tomorrow

11 months 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

11 months ago

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

11 months ago

maybe one of his mods is overwriting the make_rotated_animation_variations_from_sheet function globally

New response