Logic of "rail chain signal" image

Place to get help with not working mods / modding interface.
Hermios
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Sat Aug 13, 2016 2:57 pm
Contact:

Logic of "rail chain signal" image

Post by Hermios »

Hi
Can you explain me the logic behind the sprites, especially for rail-chain-signal items?
I created my own objet, based on rail-chain-signal
As there is no animation, I wrote this :
animation =
{
filename = "__RailPowerSystem__/graphics/entity/rail-electric-pole.png",
priority = "high",
line_length = 1,
width = 129,
height = 113,
frame_count = 1,
axially_symmetrical = false,
direction_count = 8,
shift = {0.421875, 0.515625},
},

So, only item per line.
And I created the matching picture, where each of my 8 objects are in a 129*113 square, from top to down.
I first put them in a 129*904 (904=113*8) picture, but I had a crash, so I extended my picture to 645*904, and maintained my objects on the left side.
So now, when I try to add this item in Factorio, some are correctly added, some are shifted to the bottom, some to the left, and even one is not the correct one.
I am lost
I attached my picture (Please no comment on the beauty of the pictures.... I know! :roll: )
Thanks for the help
Niko
Attachments
rail-electric-pole.png
rail-electric-pole.png (39.71 KiB) Viewed 843 times
Hermios
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Sat Aug 13, 2016 2:57 pm
Contact:

Re: Logic of "rail chain signal" image

Post by Hermios »

Anyone? Help?
Post Reply

Return to “Modding help”