Make Artillery Great Again


Fire power, more more Fire Power ! Add some options for Artillery Shell

Content
a month ago
1.1 - 2.0
5.59K
Combat

b Missing chart_picture from artillery projectile prototype

4 years ago

This came up from a report in my mod
https://mods.factorio.com/mod/True-Nukes/discussion/5fa4ebd93ed81ab3d88d56db
But can turn up outside of it.
The override of the Artillery Projectile prototype appears to be missing the "chart_picture" field, which gives the game the image to render on the map as the shell flies. Without it, the game renders a small turquoise square, instead of the usual circle.
The absence of this can also cause weird mod incompatibility issues, such as the one I experienced.

To fix it, you would simply need to add into the prototype definition

chart_picture =
{
  filename = "__base__/graphics/entity/artillery-projectile/artillery-shoot-map-visualization.png",
  flags = { "icon" },
  frame_count = 1,
  width = 64,
  height = 64,
  priority = "high",
  scale = 0.25
},

Although on a more general note (and I know this is going out of the scope of this bug report, so feel free to ignore this), it is worth avoiding overriding the base-game prototypes, and instead worth changing them, e.g.

data.raw["artillery-projectile"]["artillery-projectile"].action.action_delivery.target_effects[1].action.action_delivery.target_effects = {
{
type = "damage",
damage = {amount = physicald , type = "physical"}
},
{
type = "damage",
damage = {amount = explosived , type = "explosion"}
}
}

can replace your override of the artillery projectile. This method tends to be a complete pain to implement, but more future-proof, and lets other mods work at the same time, as it only changes the things you are interested in.

4 years ago

thanks for your information, I'll do it in few days! and will update in a week!