Sprite limitations

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Sprite limitations

Post by dizcon »

How large can an engine sprite be?

I'm trying to create an EMU here, so I also want to know how the DB set changes the carriages after what engine it is connected to..
SHADOW-XIII
Tycoon
Tycoon
Posts: 14275
Joined: 09 Jan 2003 08:37

Post by SHADOW-XIII »

therre is whole tutorial how to creat GRF files:
http://wiki.ttdpatch.net/tiki-index.php ... RFTutorial
what are you looking at? it's a signature!
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

It's kinda... not written
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

You'd want an EMU to be the normal size, because you would expect to have more than one of them in a train. You can use long engines if you only have one of them, at the head of the train, but you can't multihead them.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

The EMU has four quite long units. Exactly how long can they be in TTD?
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

If you look at almost all the traincars in TTD, you'll see that they are unnaturally short. The only thing that comes even close to proper length are some of the locomotives, because they've been made longer or improperly hinged in the middle so as to take up two spaces.

Which EMU are you wanting to do?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

it will probably never fit:
Image
:lol:
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

Holy mother of god that's a most beutiful train i ever seen


Split each unit in two sprites and it will fit

The bigboy is splited in three sprites and it looks good
Last edited by Killer 11 on 14 Feb 2004 18:21, edited 1 time in total.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Umm. You're right, it will never fit, but you may be able to do a kludge that will work by slicing it into properly-short segments, with a slanted loco at each end. What is this train anyway?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

I thought about splitting it up, but then I figured the units would also be splitted when turning. Unless there is a way to prevent that?

The train set is called BM73 ("Signatur") and is used for intercity/region routes in Norway.

Killer: danke :wink:
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Yes, the units will be split when turning. It has to be that way, otherwise they stick way out over the edge of the corner and it looks even worse.

I think the best comparison is to look at what the ICE looks like in MB's DBset. It looks like a proper ICE, except that each of the cars is about half the length it really should be. This sort of shortening is conventional in games of this type, and unavoidable if you are going to have right-angle corners the way TTD does. It's simply impossible to have realistically long traincars because the corners are unrealistically sharp.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

can you post a foto of a real thing
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

OK.. Then, to my other question: Can anyone give me a hint on how the cars are converted to ICE cars when placed together with an ICE loco?
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post by Oracle »

It's called 'livery override' or 'wagon override' and is rather complicated. I've just taught myself how to do it today, actually.
To simplify it slightly, do it something like this:
Action 0 sets sprite number for engine and wagons to FD (new graphics)
Action 1 defines engine sprite block(s)
<insert actual sprites here>
Action 2 defines cargo ID for that engine
Action 1 defines wagon override sprite blocks (e.g. one each for passengers and mail)
<insert actual sprites here>
Action 2 defines cargo ID for the passenger wagon
Action 2 defines cargo ID for the mail wagon
Action 3 associates engine with engine ID
Action 3 overrides passenger wagon livery (bit 7 of n-vid set)
Action 3 overrides mail wagon livery (bit 7 of n-vid set)

Have a look at newgrf.txt or the Wiki for more information.
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

Thanks. I have a new question: How does TTD line up the train sprites? Does it add space between the carriages, or do we do that ourselves?

Perhaps it's set in the NFO? I think I saw some special cars that had no space on one side, this is what I want at some point..
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

TTD does not set the space between the sprites. You can get rid of the space by telling it that your sprite is bigger than the default 28, which will allow it to put a longer sprite in the same space, thus covering over the unduly large gaps in between. We are discussing just this issue in the thread for the US set, because I don't want those big gaps between the passenger cars. It is known to be possible, because the ICE works that way.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
dizcon
Route Supervisor
Route Supervisor
Posts: 436
Joined: 18 Jun 2003 17:31
Location: World's greatest town

Post by dizcon »

Killer 11 wrote:can you post a foto of a real thing
http://mercurio.iet.unipi.it/pix/no/ele ... 73_rr1.jpg
And you probably won't see a TTD-version (at least not for a while) as I'm not skilled enough to draw all the angles.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

wow I love the Norwegian landscape! :lol:

:wink:
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

I'm creating CD "TTD MEGAPACK"(for personal use ofcourse)
and i think it's worth to be in that cd.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 28 guests