I already had a post a few days ago, about adding Umlaute, and ive just come across a new Problem. In my older Traxx Set, I managed to get Liveries refittable, and due to me wanting to do the same in this new Set, I used the same code, though now, I cannot refit any vehicle.
Code: Select all
switch (FEAT_TRAINS, SELF, switch_ITEM_refit, cargo_subtype) {
0: return string(STR_ITEM_LIVERY_1);
1: return string(STR_ITEM_LIVERY_2);
2: return string(STR_ITEM_LIVERY_3);
3: return string(STR_ITEM_LIVERY_4);
4: return string(STR_ITEM_LIVERY_5);
return CB_RESULT_NO_TEXT;
}
switch (FEAT_TRAINS, SELF, switch_ITEM, cargo_subtype) {
0: set_ITEM_default;
1: set_ITEM_default_2;
2: set_ITEM_default_3;
3: set_ITEM_default_4;
4: set_ITEM_default_5;
}
My graphics block looks like this:
Code: Select all
graphics {
default: switch_ITEM;
purchase: switch_ITEM_purchase;
power: switch_ITEM_power;
cargo_subtype_text: switch_ITEM_refit;
additional_text: string(STR_ITEM_ADD);
cargo_capacity: 0;
}
For compiling im using nml_patcher for pnml and nmlc (also used in RUKTS for example). All of these files are now encoded in UTF-8.
Thanks for any help