"Glasshouse" station as new station conversion
Moderator: Graphics Moderators
It doesn't matter, a workable solution has been found.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Josef, I've just got around to attempting this and I am getting nowhere at all. I just have no idea what to put for the sprite layout. I understand the documentation to mean "put 00 00 00 00 to use TTD's layout" but it's really unclear and it doesn't work as I expect (so my interpretation is therefore wrong).
I also don't understand how the glass works, although I expect it needs to be drawn in "transparent mode".
Could you give me some pointers on how I can simply say "use TTD's layout and sprite except..."?
I also don't understand how the glass works, although I expect it needs to be drawn in "transparent mode".
Could you give me some pointers on how I can simply say "use TTD's layout and sprite except..."?
US Train Set v0.87.1 now released: http://www.tt-forums.net/viewtopic.php?t=8754
Don't forget to read the manual: http://wiki.ttdpatch.net/tiki-index.php?page=Manual
Don't forget to read the manual: http://wiki.ttdpatch.net/tiki-index.php?page=Manual
OK, to use TTD's layout, you use 00 00 00 00 for the ground sprite number and leave off everything else.
So instead of
you just put
For transparent sprites, have a look at newstat.pre in newstat.zip on the source code site. Basically, the roof of TTD's stations is made like this:
The first sprite here is the non-transparent frame of the roof. The second part is a special "linked" sprite without its own bounding box, it shares that of the previous sprite. That's done by setting the z offset to 80.
To make that second sprite transparent, you set bit 14 in the sprite number, and set the upper word to 322, so 0322443B means take sprite 43B and draw it in transparent mode. The colours of that sprite are ignored entirely, every pixel in colour 0 is fully transparent, and all other pixels are semi-transparent (essentially just causing what they are drawn over to become darker).
Hope that helps
So instead of
Code: Select all
F4 03 00 00
00 00 00 10 05 02 2E 84 00 00
00 0B 00 10 05 02 30 84 00 00
80
Code: Select all
00 00 00 00
Code: Select all
00 00 10 10 10 0A 37 84 00 00
00 00 80 00 00 00 3B 44 22 03
To make that second sprite transparent, you set bit 14 in the sprite number, and set the upper word to 322, so 0322443B means take sprite 43B and draw it in transparent mode. The colours of that sprite are ignored entirely, every pixel in colour 0 is fully transparent, and all other pixels are semi-transparent (essentially just causing what they are drawn over to become darker).
Hope that helps

can you put that as an example in the wiki? 
even I understand it now

even I understand it now
Creator of the Openttd Challenge Spinoff, Town Demand patch
After action reports: The path to riches, A dream of skyscrapers
After action reports: The path to riches, A dream of skyscrapers
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot] and 7 guests