Rail change

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
Slye_Fox
Traffic Manager
Traffic Manager
Posts: 164
Joined: 21 Aug 2004 14:27
Location: London, UK
Contact:

Rail change

Post by Slye_Fox »

Is there a way to get the Electric rails to change their graphics at a certain year?

I'd like to have the overhead cables on Electric rails change to a third rail in the later years of a game.
Image
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Rail change

Post by FooBar »

Yes, but it's not a very shiny implementation, because you have to reload the game in order for the changes to take effect.

But if that's not a problem to you, you could use Action07 for the job.
Slye_Fox
Traffic Manager
Traffic Manager
Posts: 164
Joined: 21 Aug 2004 14:27
Location: London, UK
Contact:

Re: Rail change

Post by Slye_Fox »

What do you mean by 'reload the game'?

Also, what's Action07?
Image
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Rail change

Post by LordAzamath »

FooBar wrote:Yes, but it's not a very shiny implementation, because you have to reload the game in order for the changes to take effect.

But if that's not a problem to you, you could use Action07 for the job.
I had a conversation with DaleStan.. he said that Action07 is easier.. but varAction2 is the right way to do it.. (actually one similar thing)

@Slye_Fox http://wiki.ttdpatch.net/tiki-index.php ... phicsSpecs
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
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Rail change

Post by FooBar »

Slye_Fox wrote:What do you mean by 'reload the game'?
Well, basically, save game, stop playing, return to title screen and reload savegame.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2897
Joined: 16 May 2007 16:59

Re: Rail change

Post by Zephyris »

lordazamath wrote:but varAction2 is the right way to do it..
Forgive me for asking, but how do you use varAction2 for rail graphics? Is there a way to use it for generic real sprites?
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: Rail change

Post by LordAzamath »

Zephyris wrote:
lordazamath wrote:but varAction2 is the right way to do it..
Forgive me for asking, but how do you use varAction2 for rail graphics? Is there a way to use it for generic real sprites?
That do I not know :P
You know I'm not THE specialist.. And I didn't know that you can use it only for engines or something like that. (Still don't know)
Sorry for false information then.

madis
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.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Rail change

Post by DaleStan »

You can only use VarAction2 for things that have a feature byte.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 38 guests