Animation Confusion [Resolved]
Posted: Sat Jun 17, 2017 9:04 am
I'm attempting make add a tinted layer for mining drills and run into this error:
I wasn't able to find anything helpful via searching and browsing, but I may be lacking the vocabulary to make good searches. I'm very much a novice at every facet of what I'm trying to do, so hopefully it's something stupidly simple. Any help would be greatly appreciated.
Code I'm using:
Using the HR code but not flagging it as 'hr_version' works fine but has a high res image by default. Ditching the layer thing makes no difference. Looking in data/base/prototypes/entity, it appears that both the std and HR versions of the mining drill are both listed as 64 frames there so I'm at a loss.Error while loading entity prototype "electric-mining-drill" (mining-drill): Frame count in hr_version doesn't match normal frame count in property tree at ROOT.mining-drill.electric-mining-drill.animations.north.hr_version
I wasn't able to find anything helpful via searching and browsing, but I may be lacking the vocabulary to make good searches. I'm very much a novice at every facet of what I'm trying to do, so hopefully it's something stupidly simple. Any help would be greatly appreciated.
Code I'm using:
Code: Select all
data.raw["mining-drill"]["electric-mining-drill"]["animations"]["north"] = {
priority = "extra-high",
width = 110,
height = 114,
line_length = 8,
shift = {0.2, -0.2},
filename = "__ShinyBobGFX__/graphics/entity/drills/north-0.png",
frame_count = 64,
animation_speed = 0.75,
run_mode = "forward-then-backward",
hr_version = {
layers = {
{
priority = "extra-high",
width = 196,
height = 226,
line_length = 8,
shift = {0, -0.2},
filename = "__ShinyBobGFX__/graphics/entity/drills/hr-electric-mining-drill-N.png",
frame_count = 64,
animation_speed = 0.75,
scale = 0.5,
run_mode = "forward-then-backward",
},
{
priority = "extra-high",
width = 196,
height = 226,
line_length = 8,
shift = {0, -0.2},
filename = "__ShinyBobGFX__/graphics/entity/drills/hr-electric-mining-drill-N-tint.png",
frame_count = 64,
animation_speed = 0.75,
scale = 0.5,
run_mode = "forward-then-backward",
tint = addon_blue
}}}}