hacked this into qualitytreesystem.lua#187:
local shift = {0.1, 0.0}
if variation_trunk.shift then
local variation_trunk_x=variation_trunk.shift.x or variation_trunk.shift[1] or 0
local variation_trunk_y=variation_trunk.shift.y or variation_trunk.shift[2] or 0
shift = {variation_trunk_x+0.1, variation_trunk_y+0.0}
end if
similiar to what I thought here: https://mods.factorio.com/mod/Long_Range_Delivery_Drones/discussion/6ae4c144bdb1275ebe1ff0b0
no idea whether this is ok or there are other side effects - for me, Factorio loads again with this change.
EDIT:
although here it's probably https://lua-api.factorio.com/latest/prototypes/AnimationPrototype.html#shift, but it's the same problem with a Vector being allowed to have x,y properties set.
there was another catch after I inserted my code above:
Error while loading entity prototype "pyrite-farm-tree-greenhouse" (assembling-machine): Key "width" not found in property tree at ROOT.assembling-machine.pyrite-farm-tree-greenhouse.graphics_set.animation.layers[1]
seems to me that width is not set for some data.raw["plant"].variations[1].trunk which seems to be this https://lua-api.factorio.com/latest/types/SpriteSource.html#width (trunk is of type Animation).
that's because the trunk is not a single Animation, but layers of animations: https://lua-api.factorio.com/latest/types/Animation.html#layers.
Thus, I replaced this into qualitytreesystem.lua around line 200 +/-:
local variation_trunk_animation_data=variation_trunk
if variation_trunk.layers then
variation_trunk_animation_data=variation_trunk.layers[1]
end
table.insert(agricultural_graphics.animation.layers, {
filename = variation_trunk_animation_data.filename,
width = variation_trunk_animation_data.width,
height = variation_trunk_animation_data.height,
x = 0,
y = 0,
frame_count = 1,
repeat_count = 64,
shift = shift,
scale = variation_trunk_animation_data.scale
})
I don't know what to do with the second layer in the Animation's layers - all the plants I had in my mod pack had two layers, first trunk, then something else, so it seemed logical to me to use the first layer, e.g. pyrite-farm-tree:
layers = {
{
filename = "__cr-commons__/graphics/common/pyrite/plant/trunk-1.png",
//...
},
{
filename = "__cr-commons__/graphics/common/pyrite/plant/harvest-1.png",
//...
}
seems to work, at least Factorio starts...