Visual bug by window of pipe
Posted: Mon Dec 03, 2018 10:12 pm
I'm trying to make new graphics for pipes and I get some problems by prototypes definition. Don't move it to Modding help!
First Bu that I get comes from bigger window:
Much bigger problem I get when I want to change the image by the flow:
Here I have some image 32 pixels wide and 8 pixels high, but it doesn't move (it's png, but the same gif will be also static, here is no movement)
It looks like some part of this prototype is hardcoded on the game side.
First Bu that I get comes from bigger window:
Code: Select all
data.raw.pipe.pipe.pictures.low_temperature_flow.width = 160
data.raw.pipe.pipe.pictures.low_temperature_flow.height = 10
Much bigger problem I get when I want to change the image by the flow:
Code: Select all
data.raw.pipe.pipe.pictures.low_temperature_flow.filename = mod_name..'/graphics/entities/'..'fluid-flow-low-temperature-32x8.png'
data.raw.pipe.pipe.pictures.low_temperature_flow.width = 32
data.raw.pipe.pipe.pictures.low_temperature_flow.height = 8