Replace standard road and tram track sprites

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
GuilhermeJK
Engineer
Engineer
Posts: 55
Joined: 01 Nov 2014 05:24
Location: São José dos Campos, Brazil

Replace standard road and tram track sprites

Post by GuilhermeJK »

Hello, I am slowly beginning to put some ideas together for some new NewGRF. I've been reading the NML documentation and I haven't found anything related to replacing a road or tram track tile with new sprites, like TTRS and North American Road Set do. Is there somewhere with this info?
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Replace standard road and tram track sprites

Post by planetmaker »

Roads are standard baseset sprites and simply are replaced (by the replace command). The tram track sprites are sprites introduced in OpenTTD to the base sets, thus are replaced by the replacenew command.

See http://newgrf-specs.tt-wiki.net/wiki/NM ... TD_sprites and http://newgrf-specs.tt-wiki.net/wiki/NM ... ew_sprites and opengfx+landscape for sprite numbers and a NewGRF implementation (though it doesn't replace tram tracks).
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 6 guests