Page 1 of 1

[Resolved] Tint Rail Help

Posted: Sun Aug 13, 2017 1:15 pm
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.

Re: Tint Rail Help

Posted: Sun Aug 13, 2017 9:49 pm
by darkfrei
For those things use .png optimization:
viewtopic.php?f=70&t=30591#p224304

Re: Tint Rail Help

Posted: Mon Aug 14, 2017 5:04 pm
by TheSAguy
Great,
Using this reduced my mod from 26MB to just over 10MB!!

Re: [Resolved] Tint Rail Help

Posted: Tue Aug 15, 2017 9:01 pm
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 2047 times
:arrow: :arrow: :arrow: :arrow: :arrow:
ConcreteTies_0.0.1.zip
for 0.15.33
(418.04 KiB) Downloaded 83 times

Re: [Resolved] Tint Rail Help

Posted: Tue Aug 15, 2017 9:23 pm
by TheSAguy
Very Impressive!

Re: [Resolved] Tint Rail Help

Posted: Thu Aug 17, 2017 6:28 pm
by darkfrei
The same mod, but it will be called as function.