[Resolved] Tint Rail Help

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[Resolved] Tint Rail Help

Post by TheSAguy »

Hi,

In my mod Bio Industries, I have two rail types, Wood and Concrete.
I've taken the vanilla rail images and using Pixlr, tinted the sections that have wood to darker to look more like wood and also lighter to look more like concrete.

As a result my mod is not 26MB large and the Wood and Concrete rails take up 20MB of this...
I was wondering how one could just use the vanilla rail and do a in-game tint of them when defining the entities.

The "demo-railpictures.lua" and "demo-remnants.lua" is a little out of my league to edit with these changes.
I've taken these two lua files and created my own -wood.lua and -concrete.lua.

Since you don't want to tint all the images, but probably only the ones that have wood in the images. (That's what I did above)


Help with this would be appreciated.
Thanks.
Last edited by TheSAguy on Mon Aug 14, 2017 5:05 pm, edited 1 time in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Tint Rail Help

Post by darkfrei »

For those things use .png optimization:
viewtopic.php?f=70&t=30591#p224304
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: Tint Rail Help

Post by TheSAguy »

Great,
Using this reduced my mod from 26MB to just over 10MB!!
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Resolved] Tint Rail Help

Post by darkfrei »

Another version of tinting, the mod is about 400 KB now.
Picture
Picture
2017-08-15 21_50_58.png (124.81 KiB) Viewed 2044 times
:arrow: :arrow: :arrow: :arrow: :arrow:
ConcreteTies_0.0.1.zip
for 0.15.33
(418.04 KiB) Downloaded 83 times
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [Resolved] Tint Rail Help

Post by TheSAguy »

Very Impressive!
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Resolved] Tint Rail Help

Post by darkfrei »

The same mod, but it will be called as function.
Attachments
GreenTies_0.0.2.zip
(417.9 KiB) Downloaded 84 times
2017-08-17 20_21_33.png
2017-08-17 20_21_33.png (120.67 KiB) Viewed 2011 times
Post Reply

Return to “Modding help”