Custom belts pictures

Place to get help with not working mods / modding interface.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Custom belts pictures

Post 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
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Custom belts pictures

Post 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 1411 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.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Custom belts pictures

Post by darkfrei »

Ohh, one of sprites has wrong direction:
Attachments
2018-03-04 13_13_52-Factorio 0.16.27.png
2018-03-04 13_13_52-Factorio 0.16.27.png (60.74 KiB) Viewed 1409 times
2018-03-04 13_16_15-Factorio 0.16.27.png
2018-03-04 13_16_15-Factorio 0.16.27.png (60.8 KiB) Viewed 1409 times
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Custom belts pictures

Post 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 1388 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 1388 times
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Custom belts pictures

Post 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?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Custom belts pictures

Post 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
Post Reply

Return to “Modding help”