replacenew signals way too many sprites

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

Moderator: Graphics Moderators

Post Reply
User avatar
Erato
Director
Director
Posts: 525
Joined: 25 May 2015 09:09
Location: The Netherlands

replacenew signals way too many sprites

Post by Erato »

Hey,

I want to make a newgrf where I replace the signal sprites, so I looked into the documentation, and I found this:

https://newgrf-specs.tt-wiki.net/wiki/N ... ew_sprites

Here it says that there are 3 categories:
PRE_SIGNAL, PRE_SIGNAL_SEMAPHORE and PRE_SIGNAL_SEMAPHORE_PBS

In the game there are 6 different types of signals: block, entry, exit, combo, pbs and one way pbs. With 8 views, the signal either on or off, and both semaphores and signals, you get 8*2*6*2=192 different sprites. The block light signals can be replaced using replace(), so that leaves 176 different sprites.
The 3 categories together require I provide 48+112+240=400 sprites. Where does that discrepancy come from, and what do I put for those categories & sprites?

Thanks
No pics no clicks. Seriously.
ImageImageImageImageImageImageImage
User avatar
Quast65
Tycoon
Tycoon
Posts: 1801
Joined: 09 Oct 2011 13:51
Location: The Netherlands

Re: replacenew signals way too many sprites

Post by Quast65 »

Have you looked at the OGFX-extra graphics file?
ogfxe_extra.png
(561.95 KiB) Not downloaded yet
Arent all or at least many of those the programmable signals?
Projects: http://www.tt-forums.net/viewtopic.php?f=26&t=57266
Screenshots: http://www.tt-forums.net/viewtopic.php?f=47&t=56959
Scenario of The Netherlands: viewtopic.php?f=60&t=87604

Winner of the following screenshot competitions:
sep 2012, jan 2013, apr 2013, aug 2013, mar 2014, mar 2016, oct 2020
All my work is released under GPL-license (either V2 or V3), if not clearly stated otherwise.
Eddi
Tycoon
Tycoon
Posts: 7532
Joined: 17 Jan 2007 00:14

Re: replacenew signals way too many sprites

Post by Eddi »

Erato wrote: 28 Oct 2020 10:07 In the game there are 6 different types of signals: block, entry, exit, combo, pbs and one way pbs.
while the game only uses 6 signal types, the GRF must actually provide 8 types (2 are currently unused, but still require graphics)
You might not exactly be interested in Ferion, but if you are, have fun :)
User avatar
Erato
Director
Director
Posts: 525
Joined: 25 May 2015 09:09
Location: The Netherlands

Re: replacenew signals way too many sprites

Post by Erato »

Thanks guys. I found out through experimentation the 3 tags were basically the same, just with more different signal types.
No pics no clicks. Seriously.
ImageImageImageImageImageImageImage
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests