News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Original Field Property Format

Started by knightly, April 07, 2010, 12:03:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

knightly

Hi Prissi,

When I wrote the multiple fields patch, I did not add support for existing factory field property format (i.e. "fields", "has_snow", "production_per_field", etc. without subscripts like [ 0 ]) because that would be more consistent with "OutputGood[0]" etc. which also requires subscript [ 0 ] even if there is only one set of data.

Yesterday, James asked me for assistance with regards to fields and the problem was that existing dat files do not have subcripts for the relevant factory field properties. So, I think, maybe it is desirable to support old format too, so as not to require exisiting dat files to be changed (adding those [ 0 ] subscripts).

Attached is a patch for this purpose. I will leave it to you to decide whether to incorporate it or not.

Knightly

Dwachs

Parsley, sage, rosemary, and maggikraut.