Page 1 of 1

Palette of multi-coloured buildings...

Posted: 15 Jun 2008 14:57
by Tesseract
There is not a secret for anybody, that the same houses in cities can be different shades. Especially it is well visible in structures 1970-80-years. Also almost all industrial and factories have different colors of roofs and so on.

:?: So I have a question: at addition of own files schedules, for example houses of cities, is it possible to set programmable an opportunity of various shades? Because the cloned monoliths of skyscrapers in city centre are looked boringly... Here if they were multi-coloured, everyone of its own shade, - that would be wonderful! :!:

How it can be done? Maybe have to addition information to sprites in the NFO-editor - it is necessary to something finish (for example an index-color of replaced shades in it sprite)? In fact, somehow TTDP generates colors of the specified houses, - and in fact not all color variants are at export sprites from trg1r.grf, trgcr.grf, trghr.grf, trgir.grf, trgtr.grf...
palette.gif
palette.gif (192.57 KiB) Viewed 1062 times

Re: Palette of multi-coloured buildings...

Posted: 15 Jun 2008 15:42
by michael blunck
Tesseract wrote:[...]for example houses of cities, is it possible to set programmable an opportunity of various shades?
Yes, it´s possible. Read the Wiki, e.g.

http://wiki.ttdpatch.net/tiki-index.php ... colours_17_
http://wiki.ttdpatch.net/tiki-index.php ... _colour_1E_

etc.

regards
Michael

Re: Palette of multi-coloured buildings...

Posted: 15 Jun 2008 16:15
by Tesseract
thanks, Michael. I see that`s it.
but it`s too hard for me, ununderstandable... what exactly I have to do? Where is the bytes, where I`ve to edit? Show me an short example, please.

Re: Palette of multi-coloured buildings...

Posted: 15 Jun 2008 18:58
by michael blunck
In general, there are three possibilities for houses (and industry tiles) colour transformations:


1. random recolouring using 4 random colours. This is "classic" TTD style:
-> http://wiki.ttdpatch.net/tiki-index.php ... colours_17_

Code: Select all

//----------------------------------------------
// 00: tall office block 1963
//----------------------------------------------
15 * 17       00 07 04 01 00
                        08 00          // substitute 00
                        15 00          // override 00
                        13 10 28       // building mask
                        17 00 00 04 08 // set four random colours: n/a, n/a, red, blue

2. Recolouring by using callback 1E. This is useful if you want something more complex than four random colours.
-> http://wiki.ttdpatch.net/tiki-index.php ... _colour_1E_

Code: Select all

//----------------------------------------------
// 00: tall office block 1963
//----------------------------------------------
15 * 14       00 07 04 01 00
                        08 00            // substitute 00
                        15 00            // override 00
                        13 10 28         // building mask
                        14 10	         // use CB 1E
....

// set the callback
15 * 14         02 07 xx 81 0C 00 FF 01
                        07 83 1E 1E      // set CB: blue -> blue
	                     yy 00            // graphics
3. by defining a recolour sprite in action2:
-> http://wiki.ttdpatch.net/tiki-index.php ... ustryTiles

Code: Select all

15 * 17        02 07 xx 00 54 0F 00 00 9A 85 9E 05 00 00 0E 10 10
HTH
regards
Michael