Here are my properties for the vehicle:
(Note: I have fixed my actual problem by putting NAME before the Vehicle NAME.)
Code: Select all
item (FEAT_ROADVEHS, item_tram_BTSW) {
property {
name: string(STR_NAME_BTSW);
climates_available: ALL_CLIMATES;
introduction_date: date(2003,1,1);
model_life: VEHICLE_NEVER_EXPIRES;
retire_early: 0;
vehicle_life: 25;
reliability_decay: 20;
loading_speed: 25;
cost_factor: 224;
running_cost_factor: 112;
refittable_cargo_classes: bitmask(CC_PASSENGERS);
sprite_id: SPRITE_ID_NEW_ROADVEH;
speed: 81 km/h;
refit_cost: 0;
power: 420 kW;
running_cost_base: RUNNING_COST_ROADVEH;
weight: 40.5 ton;
cargo_capacity: 185;
engine_class: ENGINE_CLASS_ELECTRIC;
//sound_effect: no sound;
//visual_effect: use default (none);
//callback_flags: no need to set this;
reliability_decay: 20;
refit_cost: 0;
misc_flags: bitmask(ROADVEH_FLAG_TRAM);
}
}
graphics {
articulated_part: switch_articulated_BTSW;
length: switch_length_BTSW;
cargo_capacity: switch_capacity_BTSW;
default: switch_spriteset_BTSW;
}
(Note: I have fixed my actual problem by putting NAME before the Vehicle NAME.)
Also NMLC has a
new problem:
nmlc ERROR: "D:\grfs\BTSW\BTSW.nml", line 3: Unknown string "STR_GRF_NAME"