Page 1 of 1

Jezulkim needs your help

Posted: 03 Feb 2008 13:20
by Jezulkim
How do I replace sprites in the openttd.grf? I'm looking for something like action A.

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 13:29
by Maedhros
What you're looking for is Action 5.

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 13:35
by Jezulkim
Thanks, that's it.


EDIT: I want to replace only one sprite, sprite number 57. How to do this?

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 15:55
by FooBar
That's unfortunately not possible. You have to replace the whole set of sprites from the type sprite 57[0] is in.

Currently, only type 14 and 15 support replacement of a single sprite.


[0] Isn't sprite 57 part of the 2nd company colour translation table?

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 16:24
by Rubidium
Jezulkim: the action 5 stuff only works in the 0.6.0 betas and the nightlies. And then you can replace the OpenTTD GUI sprites piece by piece fairly simple (the specs describe exactly how to do it).

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 17:34
by Jezulkim
Thank you, that explains it.
[0] Isn't sprite 57 part of the 2nd company colour translation table?
I was using the openttd.grf that comes with version 0.5.3 and it's the fast forward button.

Re: How to replace sprites in openttd.grf?

Posted: 03 Feb 2008 17:36
by LordAzamath
erm.. the format has changed.. many times. Suggest you to download nightly and see what's there.

Re: Jezulkim needs your help

Posted: 04 Feb 2008 16:45
by Jezulkim
I renamed this thread because I'm going to ask more questions.

How do you make vehicles appear before 1920? :)

Re: Jezulkim needs your help

Posted: 04 Feb 2008 17:01
by FooBar
Action 0, with a property depending on feature. In all cases you have to look for the 'Long format introduction date'. You have to set it after property 00 to take effect.

Feature: property
00 trains: 2A
01 road vehicles: 1F
02 ships: 1A
03 planes: 1A

Re: Jezulkim needs your help

Posted: 06 Feb 2008 15:21
by Jezulkim
Thanks..

What's the maximum number of train IDs in OpenTTD? Is it same as on TTDP? If it's possible to use more train IDs in OTTD, then how to do it?

EDIT: nevermind, I found out that you can use wagon IDs for trains.