Non-random introduction date (non-GRF breaking?)

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Non-random introduction date (non-GRF breaking?)

Post by George »

frosch wrote:Wrt. changing the format of properties: IMO that is a no-go. Every tool relies on the size of properties, so they would all have to learn to distinguish properties according to the GRF version. OTOH adding new properties is no problem.
Currently there is a big problem, that vehicles properties 00, 03 (together with Long format introduction date) have random values added. What would be the best way to have values, which are not affected by random change? New introduction date and vehicle life properties, or removing random factor in version 8?
Last edited by Hyronymus on 09 Nov 2011 20:33, edited 1 time in total.
Reason: Split from th NewGRF 8 topic by request
Image Image Image Image
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Planned additions and changes: NewGRF v8

Post by Yexo »

Adding a bit to train prop 27 (other vehicle types have similar props) that says "don't randomize the introduction date". That is, if it's decided that such a feature is actually required.
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Planned additions and changes: NewGRF v8

Post by George »

Yexo wrote:Adding a bit to train prop 27 (other vehicle types have similar props) that says "don't randomize the introduction date". That is, if it's decided that such a feature is actually required.
Yes, it is very important for EMUs/DMUs. Because they are assembled from parts, which should become available and disappear from the buy menu at the same time. This would allow correct assembling of the consist.
Image Image Image Image
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Planned additions and changes: NewGRF v8

Post by Hyronymus »

And it makes more realism possible for those set developers that like to stick to real dates.
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Planned additions and changes: NewGRF v8

Post by Eddi »

what should IMHO be more useful is a "make this vehicle automatically avalable when vehicle X is available" property/callback. then the introduction of the EMU-head would still be able to randomize, but the middle wagon would always be available at the same time. likewise a passenger wagon and its accompanying mail wagon.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Planned additions and changes: NewGRF v8

Post by DaleStan »

everyone, including various developers wrote:<meaningless jabber about introduction dates>
Which DOES NOT REQUIRE A NEW GRF VERSION.

Please, people. Is this concept really that hard to grasp? Unless the change you are proposing will break existing GRFs, it is off-topic here.
Last edited by DaleStan on 09 Nov 2011 13:33, edited 1 time in total.
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
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 988
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Planned additions and changes: NewGRF v8

Post by frosch »

One could also keep rerandomising the introduction dates as usual, but with these restrictions:
  • The order of introduction does not change; so introduction date "x+1" will always be after "x".
  • Vehicles with the same introduction date "x" get the same random amount.
And yes, Dalestan, some mod should split this :p
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: Planned additions and changes: NewGRF v8

Post by George »

DaleStan wrote:
everyone, including various developers wrote:<meaningless jabber about introduction dates>
Which DOES NOT REQUIRE A NEW GRF VERSION.
Please, people. Is this concept really that hard to grasp? Unless the change you are proposing will break existing GRFs, it is off-topic here.
if the behaviour for props 00 and 03 is changed to no random value added, than it is a change for GRF version, imho. In case a new prop is added no new GRF version is needed.
Image Image Image Image
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5602
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Planned additions and changes: NewGRF v8

Post by PikkaBird »

George wrote:if the behaviour for props 00 and 03 is changed to no random value added, than it is a change for GRF version, imho.
And why on earth would the behaviour for those properties be changed?
George wrote:Yes, it is very important for EMUs/DMUs. Because they are assembled from parts, which should become available and disappear from the buy menu at the same time.
I can't think of a scenario where this is much preferable to the current methods available, which are a) building the EMU/DMU using generic passenger cars which change their appearance to match, or b) building the EMU/DMU as a string of one vehicle, or c) building the EMU/DMU as a prebuilt articulated consist. If the feature is added, Yexo's flag is probably the way to go.
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Planned additions and changes: NewGRF v8

Post by Eddi »

Eddi wrote:"make this vehicle automatically avalable when vehicle X is available" property/callback.
to precisise this, this could work similar to railtype prop 18/19
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 18 guests