Page 1 of 1

Custom belts pictures

Posted: Sat Mar 03, 2018 4:44 pm
by darkfrei
Hi all!

I've made custom belt pictures:
belts.zip
belt pictures
(342.87 KiB) Downloaded 49 times
How to add them as new graphic of old belt entities?

belt_horizontal and belt_vertical are easy to change, but where are defined curved belt graphics?

For example here is a part of code of fast-transport-belt:
code
As you see, here is no graphics with shift y = 320, but all curved belts are here, see:
Factorio\data\base\graphics\entity\fast-transport-belt\fast-transport-belt.png

Re: Custom belts pictures

Posted: Sun Mar 04, 2018 12:08 pm
by darkfrei
Here is some tests:
2018-03-04 13_00_07-Factorio 0.16.27.png
2018-03-04 13_00_07-Factorio 0.16.27.png (117.77 KiB) Viewed 1415 times
belts_testing_0.0.1.zip
for 0.16
(659.53 KiB) Downloaded 41 times
All graphics are separated:

Code: Select all

local mod_name = "__belts_testing__"
data.raw["transport-belt"]["fast-transport-belt"].animations.filename = mod_name.."/graphics/rotations.png"
data.raw["transport-belt"]["fast-transport-belt"].belt_horizontal.filename = mod_name.."/graphics/belt_horizontal.png"
data.raw["transport-belt"]["fast-transport-belt"].belt_vertical.filename = mod_name.."/graphics/belt_vertical.png"
data.raw["transport-belt"]["fast-transport-belt"].belt_vertical.y = 0
It looks like position of rotation graphics is hardcoded.

Re: Custom belts pictures

Posted: Sun Mar 04, 2018 12:16 pm
by darkfrei
Ohh, one of sprites has wrong direction:

Re: Custom belts pictures

Posted: Mon Mar 05, 2018 4:10 pm
by darkfrei
I don't like how belts pictures must be rotated for spritesheet.

So, here is another version, but I can't delete this big shift by rotations spritesheet.
2018-03-05 17_09_29-graphics.png
2018-03-05 17_09_29-graphics.png (11.01 KiB) Viewed 1392 times
belts_testing_0.0.2.zip
for 0.16
(1.52 MiB) Downloaded 46 times
2018-03-05 17_04_44-Factorio 0.16.27.png
2018-03-05 17_04_44-Factorio 0.16.27.png (435.23 KiB) Viewed 1392 times

Re: Custom belts pictures

Posted: Mon Mar 05, 2018 4:40 pm
by Deadlock989
Nice work. I saw that the sprite sheet is ... odd.

I was thinking of tackling this myself, in Blender, so I could make wooden belts, copper-textured belts etc. Can I ask how you tackled this?

Re: Custom belts pictures

Posted: Mon Mar 05, 2018 5:20 pm
by darkfrei
Deadlock989 wrote:Nice work. I saw that the sprite sheet is ... odd.

I was thinking of tackling this myself, in Blender, so I could make wooden belts, copper-textured belts etc. Can I ask how you tackled this?
viewtopic.php?f=135&t=58416