[Twinsen][0.17.66] Storage tank entities ignore pipe_picture in their fluid boxes
Posted: Fri Aug 23, 2019 2:49 pm
I'm trying to make a custom storage tank using left-over bits and pieces from other sprites. The originating model was a furnace type entity with fluid boxes including both pipe_picture and pipe_covers. On the furnace, pipe_picture is drawn correctly when a pipe connects to that pipe connection. With the storage tank, pipe_picture seems to be completely ignored:
I guess the vanilla tank doesn't need pipe_picture defined in its fluid box because it's all baked into the base sprite. But I expected that a fluid box is a fluid box is a fluid box.
The storage tank fluid_box definition:
(The get_layer function fetches bits of the same overlay sprite that was used successfully on the furnace entity, the definition is identical).
I guess the vanilla tank doesn't need pipe_picture defined in its fluid box because it's all baked into the base sprite. But I expected that a fluid box is a fluid box is a fluid box.
The storage tank fluid_box definition:
Code: Select all
fluid_box = {
base_area = 20,
pipe_connections = {
{ position = {0,-1} },
{ position = {1,0} },
{ position = {0,1} },
{ position = {-1,0} },
},
pipe_covers = pipecoverspictures(),
pipe_picture = {
north = get_layer("machines/flare-stack-pipe-pictures", nil, nil, false, nil, nil, 46, 6, 41, 18, 128, 128, {0,1}),
east = get_layer("machines/flare-stack-pipe-pictures", nil, nil, false, nil, nil, 2, 50, 94, 36, 128, 128, {-1,0}),
south = get_layer("machines/flare-stack-pipe-pictures", nil, nil, false, nil, nil, 50, 26, 39, 70, 128, 128, {0,-1}),
west = get_layer("machines/flare-stack-pipe-pictures", nil, nil, false, nil, nil, 2, 50, 32, 36, 128, 128, {1,0}),
},
secondary_draw_orders = { north = -1 }
},