Jezulkim needs your help

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
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Jezulkim needs your help

Post by Jezulkim »

How do I replace sprites in the openttd.grf? I'm looking for something like action A.
Last edited by Jezulkim on 04 Feb 2008 16:44, edited 2 times in total.
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
User avatar
Maedhros
OpenTTD Developer
OpenTTD Developer
Posts: 603
Joined: 30 Mar 2006 18:24
Location: Durham, UK

Re: How to replace sprites in openttd.grf?

Post by Maedhros »

What you're looking for is Action 5.
No-one's more important than the earthworm.
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Re: How to replace sprites in openttd.grf?

Post by Jezulkim »

Thanks, that's it.


EDIT: I want to replace only one sprite, sprite number 57. How to do this?
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: How to replace sprites in openttd.grf?

Post 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?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: How to replace sprites in openttd.grf?

Post 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).
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Re: How to replace sprites in openttd.grf?

Post 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.
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: How to replace sprites in openttd.grf?

Post by LordAzamath »

erm.. the format has changed.. many times. Suggest you to download nightly and see what's there.
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Re: Jezulkim needs your help

Post by Jezulkim »

I renamed this thread because I'm going to ask more questions.

How do you make vehicles appear before 1920? :)
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Jezulkim needs your help

Post 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
User avatar
Jezulkim
Chairman
Chairman
Posts: 844
Joined: 04 Jan 2004 09:40
Location: Finland/Suomi

Re: Jezulkim needs your help

Post 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.
Image
In order to protect the visitors of this site,
TTO Full Conversion!
This post has been lol 1337 times.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 31 guests