long-format-date action 2 variable

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
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

long-format-date action 2 variable

Post by PikkaBird »

There isn't one. There needs to be one. :lol:

Also, long format introduction dates for town buildings would be good. :)
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

Taken into consideration :) I guess it would not be too hard...

:idea:
BY the way, what about introduction date for industries, like in houses?
Would it be interesting?
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
OzTrans
Tycoon
Tycoon
Posts: 1714
Joined: 04 Mar 2005 01:07

Post by OzTrans »

belugas wrote: ... what about introduction date for industries, like in houses? ...
Yes, it would make things complete; for stations as well. ATM, we cannot introduce anything new, except vehicles, at a particular time before 1920; i.e. if a game starts prior to 1920, then e.g. any new houses/industries/stations would be available from start of game and not when we want them.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

belugas wrote::idea:
BY the way, what about introduction date for industries, like in houses?
Would it be interesting?
There is already introduction date control for industries; Callback 28 (Industry location permissibility) used in conjunction with a date-checking var 2. :)
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

Right...
I forgot that callback as been a possibility...
I was more thinking along a new property of the action 00.
Which reminds me : PikkaBird i was working on callback 28 this weekend, but it didn't seemed to be triggered in any of your industry sets (old and new). Is it just me or is it something that you do not us?
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

belugas wrote:Is it just me or is it something that you do not us?
It's just you. All the secondary industries and a few primary industries (diamond mine, water supply and plantations in tropic; forest in arctic) in PBI use callback 28. I don't think I used it in the old UKRSI though.

Also, per discussion with peter1138 in irc: age-based variables and properties will need to be updated to make sure they work with pre-1920 intro dates. This includes vehicle var C0 (age in days), house var 41 (age in years), and house prop 1F (minimum life span). Variables which contain a date, such as vehicle var C4 (year built) and industry var B0 (date built) will need new long-format equivalents. :)
Last edited by PikkaBird on 04 Jun 2007 17:30, edited 1 time in total.
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Post by belugas »

PikkaBird wrote:All the secondary industries and a few primary industries (diamond mine, water supply and plantations in tropic; forest in arctic) in PBI use callback 28. I don't think I used it in the old UKRSI though.
Pre-Alpha bug :)
Although, i've only tested the UKRSI extensively, and just once the PBI ;)
PikkaBird wrote: Per discussion with peter1138 in irc: long-date-format variables for 1) vehicle age in years 2) house age in days 3) industry age in days would also be useful. :)
Yeah! Up the sleeves and coding time !
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Post by PikkaBird »

belugas wrote:Yeah! Up the sleeves and coding time !
Hehe, you caught me mid-edit, I've expanded a little. :) But for me, bedtime, so good luck. :P
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: long-format-date action 2 variable

Post by PikkaBird »

It has been almost a year. I think I am justfied a bump. ;)

Call it variable 21, has a nice ring to it. Cached var 49 for train year built, perhaps?

Pretty please?
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: long-format-date action 2 variable

Post by belugas »

:oops:
Totally, absolutely, completely forgot about it...

Very very sorry...
I'll try to catch up
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Post Reply

Return to “Graphics Development”

Who is online

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