I am currently trying to make a parameter which sets how high the train is shown, because the trains look off in the FS-maglev track set, but if I adapt the train-height to the FS-set, the train looks weird on normal rails. To achieve this, I used the following code to set the parameter:
Code: Select all
param {
param_height {
type: int;
name: string(STR_PARAM_RAILHEIGHT);
desc: string(STR_PARAM_RAILHEIGHT_DESC);
min_value: 0;
max_value: 1;
def_value: 0;
names: {
0: string(STR_PARAM_RAILHEIGHT_ST);
1: string(STR_PARAM_RAILHEIGHT_FS);
};
}
}
Code: Select all
template TEMP_TRAIN_DOUBLE_8(h,d) {
[0, 0, 8, 22+h+d, -3, -14-h-(4*param_height)]
[9, 0, 22, 17+h+d, -14, -7-h-(4*param_height)]
[32, 0, 32, 12+h+d, -15, -6-h-(4*param_height)]
[65, 0, 22, 17+h+d, -8, -7-h-(4*param_height)]
[88, 0, 8, 22+h+d, -3, -14-h-(4*param_height)]
[97, 0, 22, 17+h+d, -14, -7-h-(4*param_height)]
[120, 0, 32, 12+h+d, -15, -6-h-(4*param_height)]
[153, 0, 22, 17+h+d, -8, -7-h-(4*param_height)]
}
Code: Select all
nmlc ERROR: "src/template.pnml", line 209: Unrecognized identifier 'param_height' encountered
What am I doing wrong?