Guys,
I've just spent a lot of time trying to work out why the latest nmlc wasn't creating GRFs that would show up in OpenTTD... it turns out the latest version is busted? Or it no longer works with the example here:
http://dev.openttdcoop.org/projects/nml ... ad_vehicle
I've switched back to:
Code: Select all
0.2.3 (5f2c23ef5e1f)
Library versions encountered:
PIL: 1.1.7
PLY: 3.4
And magic... everything just works as it should.
The GRF created by the latest:
Code: Select all
r1833 (319667152b09)
Library versions encountered:
PIL: 1.1.7
PLY: 3.4
was 150bytes bigger and OpenTTD (which I forced the GRF via the config) reported "ignoring invalid NewGRF: invalid".
Meanwhile, I'm unable to #define anything?
Code: Select all
grf {
grfid : "SWH!";
name : string(STR_GRF_NAME);
desc : string(STR_GRF_DESCRIPTION);
version: 1;
min_compatible_version: 1;
}
template tmpl_tram(x, y) {
[ x, y, 8, 18, -3, -10]
[ 16 + x, y, 20, 18, -14, -5]
[ 48 + x, y, 28, 15, -14, -8]
[ 96 + x, y, 20, 18, -6, -7]
[128 + x, y, 8, 18, -3, -10]
[144 + x, y, 20, 18, -14, -9]
[176 + x, y, 28, 15, -14, -8]
[224 + x, y, 20, 18, -6, -7]
}
#define REFIT_PROPERTIES_PAX
refittable_cargo_classes: bitmask(CC_PASSENGERS); // Allow passengers (and tourists)
non_refittable_cargo_classes: NO_CARGO_CLASS; // Disallow other cargos
refittable_cargo_types: 0;
reliability_decay: 1;
running_cost_base: RUNNING_COST_ROADVEH; // Default road vehicle running cost base
running_cost_factor: 135;
cost_factor: 143;
equals:
Code: Select all
E:HIROTR~1>nmlc hirotrams.nml
Illegal character '#' at "input", line 20