# 1 "NARS_ADDON_SET.pnml" # 1 "" # 1 "" # 1 "NARS_ADDON_SET.pnml" /* * NARS_ADDON_SET.pnml * NARS ADDON SET * * This is the main file for this NewGRF project. * When there are new vehicles added to the set, * add the corresponding pnml file to the list below. */ # 1 "src/header.pnml" 1 /* * header.pnml * NARS ADDON * * This is the main file for this NewGRF project. * When there are new vehicles added to the set, * add the corresponding pnml file to the list below. */ # 10 "src/header.pnml" grf { grfid: "NM\09\27"; name: string(STR_GRF_NAME); desc: string(STR_GRF_DESC); url: string(STR_GRF_URL); version: 22; min_compatible_version: 0; param { param_purchase_cost { type: int; name: string(STR_PARAM_PURCHASE_COST); desc: string(STR_PARAM_PURCHASE_COST_DESC); min_value: 0; max_value: 8; def_value: 4; names: { 0: string(STR_PARAM_DIV_16); 1: string(STR_PARAM_DIV_8); 2: string(STR_PARAM_DIV_4); 3: string(STR_PARAM_DIV_2); 4: string(STR_PARAM_NORMAL); 5: string(STR_PARAM_MULT_2); 6: string(STR_PARAM_MULT_4); 7: string(STR_PARAM_MULT_8); 8: string(STR_PARAM_MULT_16); }; } } param { param_running_cost { type: int; name: string(STR_PARAM_RUNNING_COST); desc: string(STR_PARAM_RUNNING_COST_DESC); min_value: 0; max_value: 8; def_value: 4; names: { 0: string(STR_PARAM_DIV_16); 1: string(STR_PARAM_DIV_8); 2: string(STR_PARAM_DIV_4); 3: string(STR_PARAM_DIV_2); 4: string(STR_PARAM_NORMAL); 5: string(STR_PARAM_MULT_2); 6: string(STR_PARAM_MULT_4); 7: string(STR_PARAM_MULT_8); 8: string(STR_PARAM_MULT_16); }; } } } //set base cost multiplier for this set basecost { PR_BUILD_VEHICLE_TRAIN: 1 + param_purchase_cost - 4; PR_BUILD_VEHICLE_WAGON: 3 + param_purchase_cost - 4; PR_RUNNING_TRAIN_STEAM: 3 + param_running_cost - 4; //Engine running costs PR_RUNNING_TRAIN_DIESEL: 1 + param_running_cost - 4; //Wagon running costs //Electric running costs are not used } //set depot vehicle width to 32px to avoid overlap train_width_32_px = 1; //align train properly in depot window traininfo_y_offset = 2; # 11 "NARS_ADDON_SET.pnml" 2 # 1 "src/railtypetable.pnml" 1 //Railtype translation table //This set uses the default labels and adds Metro-vehicles. railtypetable { RAIL, ELRL, MONO, MGLV } # 12 "NARS_ADDON_SET.pnml" 2 # 1 "src/templates.pnml" 1 /* * templates.pnml * NARS ADDON * * This file defines commonly used spriteset templates. */ // Purchase view // ================================================================================================ template template_purchase_L8(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 163, 46, 28, -18, -22] // PURCHASE } template template_purchase_L7(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 163, 42, 28, -14, -22] // PURCHASE } template template_purchase_L6(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 163, 38, 28, -10, -22] // PURCHASE } // Depot view // ================================================================================================ template template_depot_L8(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // na [ 16, 2, 26, 28, -16, -18] // na [ 190, 163, 36, 28, -19, -22] // East ==> [ 86, 2, 26, 28, -10, -19] // na [ 116, 2, 10, 28, -4, -13] // na [ 130, 2, 26, 28, -16, -18] // na [ 150, 163, 36, 28, -18, -22] // West <== [ 200, 2, 26, 28, -8, -18] // na } template template_depot_L7(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // na [ 16, 2, 26, 28, -16, -18] // na [ 190, 163, 36, 28, -19, -22] // East ==> [ 86, 2, 26, 28, -8, -18] // na [ 116, 2, 10, 28, -4, -13] // na [ 130, 2, 26, 28, -16, -18] // na [ 150, 163, 36, 28, -18, -22] // West <== [ 200, 2, 26, 28, -8, -18] // na } template template_depot_L6(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // North ^ [ 16, 2, 26, 28, -16, -18] // North-East -16 -18 [ 46, 2, 36, 28, -23, -22] // East ==> [ 86, 2, 26, 28, -8, -18] // South-East [ 116, 2, 10, 28, -4, -13] // South v [ 130, 2, 26, 28, -16, -18] // South-West [ 160, 2, 36, 28, -22, -22] // West <== [ 200, 2, 26, 28, -8, -18] // North-West } // Vehicle Templates (FIRST / A-UNIT) // ================================================================================================ template template_depot_L8(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // North ^ [ 16, 2, 26, 28, -16, -18] // North-East [ 46, 2, 36, 28, -19, -22] // East ==> [ 86, 2, 26, 28, -10, -19] // South-East [ 116, 2, 10, 28, -4, -13] // South v [ 130, 2, 26, 28, -16, -18] // South-West [ 160, 2, 36, 28, -18, -22] // West <== [ 200, 2, 26, 28, -8, -18] // North-West } template template_L7A(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // North ^ [ 16, 2, 26, 28, -16, -18] // North-East -16 -18 [ 46, 2, 36, 28, -19, -22] // East ==> [ 86, 2, 26, 28, -8, -18] // South-East [ 116, 2, 10, 28, -4, -13] // South v [ 130, 2, 26, 28, -16, -18] // South-West [ 160, 2, 36, 28, -18, -22] // West <== [ 200, 2, 26, 28, -8, -18] // North-West } template template_L6A(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // North ^ [ 16, 2, 26, 28, -16, -18] // North-East -16 -18 [ 46, 2, 36, 28, -23, -22] // East ==> [ 86, 2, 26, 28, -8, -18] // South-East [ 116, 2, 10, 28, -4, -13] // South v [ 130, 2, 26, 28, -16, -18] // South-West [ 160, 2, 36, 28, -22, -22] // West <== [ 200, 2, 26, 28, -8, -18] // North-West } // Vehicle Templates (SECOND / B-UNIT // ================================================================================================ template template_L8B (x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 32, 10, 28, -4, -13] // North ^ [ 16, 32, 26, 28, -16, -18] // North-East [ 46, 32, 36, 28, -19, -22] // East ==> [ 86, 32, 26, 28, -10, -19] // South-East [ 116, 32, 10, 28, -4, -13] // South v [ 130, 32, 26, 28, -16, -18] // South-West [ 160, 32, 36, 28, -18, -22] // West <== [ 200, 32, 26, 28, -8, -18] // North-West } template template_L7B(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 32, 10, 28, -4, -13] // North ^ [ 16, 32, 26, 28, -16, -18] // North-East -16 -18 [ 46, 32, 36, 28, -19, -22] // East ==> [ 86, 32, 26, 28, -8, -18] // South-East [ 116, 32, 10, 28, -4, -13] // South v [ 130, 32, 26, 28, -16, -18] // South-West [ 160, 32, 36, 28, -18, -22] // West <== [ 200, 32, 26, 28, -8, -18] // North-West } template template_L6B(x, y) { // [left_x, upper_y, width, height, offset_x, offset_y] [ 2, 2, 10, 28, -4, -13] // North ^ [ 16, 2, 26, 28, -16, -18] // North-East -16 -18 [ 46, 2, 36, 28, -23, -22] // East ==> [ 86, 2, 26, 28, -8, -18] // South-East [ 116, 2, 10, 28, -4, -13] // South v [ 130, 2, 26, 28, -16, -18] // South-West [ 160, 2, 36, 28, -22, -22] // West <== [ 200, 2, 26, 28, -8, -18] // North-West # 13 "NARS_ADDON_SET.pnml" 2 # 1 "src/vehicleID.pnml" 1 // Steam (1000) // ============================================================================ // Diesel (2000) // ============================================================================ item(FEAT_TRAINS, item_EMD_E7, 2001) {} // 1945 item(FEAT_TRAINS, item_EMD_E8, 2002) {} // 1949 item(FEAT_TRAINS, item_EMD_E9, 2003) {} // 1954 item(FEAT_TRAINS, item_EMD_FP45, 2004) {} // 1967 item(FEAT_TRAINS, item_EMD_F40C, 2005) {} // 1973 item(FEAT_TRAINS, item_EMD_F40PH2D, 2006) {} // 2007 item(FEAT_TRAINS, item_EMD_GP402P, 2007) {} // 1974 item(FEAT_TRAINS, item_FM_ERIEBUILT, 2008) {} // 1945 item(FEAT_TRAINS, item_GE_U30CG, 2009) {} // 1967 item(FEAT_TRAINS, item_MLW_FPA4, 2010) {} // 1958 // ... item(FEAT_TRAINS, item_EMD_F3, 2501) {} // 1945 item(FEAT_TRAINS, item_EMD_F7, 2502) {} // 1949 item(FEAT_TRAINS, item_EMD_F9, 2503) {} // 1953 item(FEAT_TRAINS, item_EMD_F45, 2504) {} // 1968 item(FEAT_TRAINS, item_EMD_GP9U, 2505) {} // 1990 item(FEAT_TRAINS, item_EMD_GP30, 2506) {} // 1961 item(FEAT_TRAINS, item_EMD_GP35, 2507) {} // 1963 item(FEAT_TRAINS, item_EMD_GP40, 2508) {} // 1965 item(FEAT_TRAINS, item_EMD_GP402, 2509) {} // 1972 item(FEAT_TRAINS, item_EMD_SD452, 2510) {} // 1972 item(FEAT_TRAINS, item_MLW_RS18, 2511) {} // 1956 // Turbine (3000) // ============================================================================ // Electric (4000) // ============================================================================ item(FEAT_TRAINS, item_CNR_Z1A, 4001) {} // 1916 # 14 "NARS_ADDON_SET.pnml" 2 // STEAM // ============================================================================= // DIESEL // ============================================================================= // ... passenger ... //alco // emd # 1 "src/DIESEL/EMD_E7.PNML" 1 //graphics definition spriteset(spriteset_EMD_E7, "gfx/diesel/EMD_E7.png") { template_L8A(0,0) } spriteset(spriteset_EMD_E7_purchase, "gfx/diesel/EMD_E7.png") { template_purchase_L8(0,0) } spriteset(spriteset_EMD_E7_depot, "gfx/diesel/EMD_E7.png") { template_depot_L8() } //B-unit spriteset(spriteset_EMD_E7b, "gfx/diesel/EMD_E7.png") { template_L8B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_E7_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_E7b; spriteset_EMD_E7; } // item item(FEAT_TRAINS, item_EMD_E7) { property { name: string(STR_NAME_EMD_E7); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1945,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 13; running_cost_factor: 106; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 2000 hp; speed: 157 km/h; weight: 154000 kg; tractive_effort_coefficient: 0.135; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_E7_purchase; additional_text: string(STR_TEXT_EMD_E7); switch_EMD_E7_position; } } # 27 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_E8.PNML" 1 //graphics definition spriteset(spriteset_EMD_E8, "gfx/diesel/EMD_E8.png") { template_L8A(0,0) } spriteset(spriteset_EMD_E8_purchase, "gfx/diesel/EMD_E8.png") { template_purchase_L8(0,0) } spriteset(spriteset_EMD_E8_depot, "gfx/diesel/EMD_E8.png") { template_depot_L8() } //B-unit spriteset(spriteset_EMD_E8b, "gfx/diesel/EMD_E8.png") { template_L8B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_E8_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_E8b; spriteset_EMD_E8; } // item item(FEAT_TRAINS, item_EMD_E8) { property { name: string(STR_NAME_EMD_E8); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1949,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 14; running_cost_factor: 110; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 2250 hp; speed: 157 km/h; weight: 154000 kg; tractive_effort_coefficient: 0.140; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_E8_purchase; additional_text: string(STR_TEXT_EMD_E8); switch_EMD_E8_position; } } # 28 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_E9.PNML" 1 //graphics definition (Locomotive with Booster B Unit) spriteset(spriteset_EMD_E9, "gfx/diesel/EMD_E9.png") { template_L8A(0,0) } spriteset(spriteset_EMD_E9_purchase, "gfx/diesel/EMD_E9.png") { template_purchase_L8(0,0) } spriteset(spriteset_EMD_E9_depot, "gfx/diesel/EMD_E9.png") { template_depot_L8() } //B-unit spriteset(spriteset_EMD_E9b, "gfx/diesel/EMD_E9.png") { template_L8B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_E9_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_E9b; spriteset_EMD_E9; } // item item(FEAT_TRAINS, item_EMD_E9) { property { name: string(STR_NAME_EMD_E9); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1954,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 15; running_cost_factor: 116; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 2400 hp; speed: 157 km/h; weight: 154000 kg; tractive_effort_coefficient: 0.145; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_E9_purchase; additional_text: string(STR_TEXT_EMD_E9); switch_EMD_E9_position; } } # 29 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_FP45.PNML" 1 //graphics definition spriteset(spriteset_EMD_FP45, "gfx/diesel/EMD_FP45.png") { template_L8A(0,0) } spriteset(spriteset_EMD_FP45_depot, "gfx/diesel/EMD_FP45.png") { template_depot_L8(0,0) } spriteset(spriteset_EMD_FP45_purchase, "gfx/diesel/EMD_FP45.png") { template_purchase_L8(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_FP45_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_FP45_depot; // Depot view 0x12: spriteset_EMD_FP45_depot; // Vehicle List view spriteset_EMD_FP45; // Default } // item item(FEAT_TRAINS, item_EMD_FP45) { property { name: string(STR_NAME_EMD_FP45); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1967,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 22; running_cost_factor: 154; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 3000 hp; speed: 152 km/h; weight: 180000 kg; tractive_effort_coefficient: 0.171; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_FP45_default; purchase: spriteset_EMD_FP45_purchase; additional_text: string(STR_TEXT_EMD_FP45); } } # 30 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_F40C.PNML" 1 //graphics definition spriteset(spriteset_EMD_F40C, "gfx/diesel/EMD_F40C.png") { template_L8A(0,0) } spriteset(spriteset_EMD_F40C_depot, "gfx/diesel/EMD_F40C.png") { template_depot_L8(0,0) } spriteset(spriteset_EMD_F40C_purchase, "gfx/diesel/EMD_F40C.png") { template_purchase_L8(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_F40C_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_F40C_depot; // Depot view 0x12: spriteset_EMD_F40C_depot; // Vehicle List view spriteset_EMD_F40C; // Default } // item item(FEAT_TRAINS, item_EMD_F40C) { property { name: string(STR_NAME_EMD_F40C); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1973,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 21; running_cost_factor: 148; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 3200 hp; speed: 152 km/h; weight: 167000 kg; tractive_effort_coefficient: 0.160; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_F40C_default; purchase: spriteset_EMD_F40C_purchase; additional_text: string(STR_TEXT_EMD_F40C); } } # 31 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_F40PH2D.PNML" 1 //graphics definition spriteset(spriteset_EMD_F40PH2D, "gfx/diesel/EMD_F40PH2D.png") { template_L7A(0,0) } spriteset(spriteset_EMD_F40PH2D_depot, "gfx/diesel/EMD_F40PH2D.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_F40PH2D_purchase, "gfx/diesel/EMD_F40PH2D.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_F40PH2D_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_F40PH2D_depot; // Depot view 0x12: spriteset_EMD_F40PH2D_depot; // Vehicle List view spriteset_EMD_F40PH2D; // Default } // item item(FEAT_TRAINS, item_EMD_F40PH2D) { property { name: string(STR_NAME_EMD_F40PH2D); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(2007,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 18; running_cost_factor: 126; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 3000 hp; speed: 160 km/h; weight: 118000 kg; tractive_effort_coefficient: 0.195; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_F40PH2D_default; purchase: spriteset_EMD_F40PH2D_purchase; additional_text: string(STR_TEXT_EMD_F40PH2D); } } # 32 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP402P.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP402P, "gfx/diesel/EMD_GP402P.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP402P_depot, "gfx/diesel/EMD_GP402P.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP402P_purchase, "gfx/diesel/EMD_GP402P.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP402P_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP402P_depot; // Depot view 0x12: spriteset_EMD_GP402P_depot; // Vehicle List view spriteset_EMD_GP402P; // Default } // item item(FEAT_TRAINS, item_EMD_GP402P) { property { name: string(STR_NAME_EMD_GP402P); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1972,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 18; running_cost_factor: 120; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 3000 hp; speed: 128 km/h; weight: 119000 kg; tractive_effort_coefficient: 0.205; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP402P_default; purchase: spriteset_EMD_GP402P_purchase; additional_text: string(STR_TEXT_EMD_GP402P); } } # 33 "NARS_ADDON_SET.pnml" 2 // fairbanks morse # 1 "src/DIESEL/FM_ERIEBUILT.PNML" 1 //graphics definition spriteset(spriteset_FM_ERIEBUILT, "gfx/diesel/FM_ERIEBUILT.png") { template_L8A(0,0) } spriteset(spriteset_FM_ERIEBUILT_purchase, "gfx/diesel/FM_ERIEBUILT.png") { template_purchase_L8(0,0) } spriteset(spriteset_FM_ERIEBUILT_depot, "gfx/diesel/FM_ERIEBUILT.png") { template_depot_L8() } //B-unit spriteset(spriteset_FM_ERIEBUILTb, "gfx/diesel/FM_ERIEBUILT.png") { template_L8B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_FM_ERIEBUILT_position, position_in_vehid_chain % 2) { 1: spriteset_FM_ERIEBUILTb; spriteset_FM_ERIEBUILT; } // item item(FEAT_TRAINS, item_FM_ERIEBUILT) { property { name: string(STR_NAME_FM_ERIEBUILT); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1945,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 14; running_cost_factor: 108; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 2000 hp; speed: 165 km/h; weight: 130000 kg; tractive_effort_coefficient: 0.140; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_FM_ERIEBUILT_purchase; additional_text: string(STR_TEXT_FM_ERIEBUILT); switch_FM_ERIEBUILT_position; } } # 37 "NARS_ADDON_SET.pnml" 2 // ge # 1 "src/DIESEL/GE_U30CG.PNML" 1 //graphics definition spriteset(spriteset_GE_U30CG, "gfx/diesel/GE_U30CG.png") { template_L8A(0,0) } spriteset(spriteset_GE_U30CG_depot, "gfx/diesel/GE_U30CG.png") { template_depot_L8(0,0) } spriteset(spriteset_GE_U30CG_purchase, "gfx/diesel/GE_U30CG.png") { template_purchase_L8(0,0) } switch(FEAT_TRAINS, SELF, spriteset_GE_U30CG_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_GE_U30CG_depot; // Depot view 0x12: spriteset_GE_U30CG_depot; // Vehicle List view spriteset_GE_U30CG; // Default } // item item(FEAT_TRAINS, item_GE_U30CG) { property { name: string(STR_NAME_GE_U30CG); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1967,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 18; running_cost_factor: 145; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 3000 hp; speed: 128 km/h; weight: 175000 kg; tractive_effort_coefficient: 0.170; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_GE_U30CG_default; purchase: spriteset_GE_U30CG_purchase; additional_text: string(STR_TEXT_GE_U30CG); } } # 40 "NARS_ADDON_SET.pnml" 2 //mlw # 1 "src/DIESEL/MLW_FPA4.PNML" 1 //graphics definition spriteset(spriteset_MLW_FPA4, "gfx/diesel/MLW_FPA4.png") { template_L7A(0,0) } spriteset(spriteset_MLW_FPA4_purchase, "gfx/diesel/MLW_FPA4.png") { template_purchase_L7(0,0) } spriteset(spriteset_MLW_FPA4_depot, "gfx/diesel/MLW_FPA4.png") { template_depot_L7() } //B-unit spriteset(spriteset_MLW_FPA4b, "gfx/diesel/MLW_FPA4.png") { template_L7B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_MLW_FPA4_position, position_in_vehid_chain % 2) { 1: spriteset_MLW_FPA4b; spriteset_MLW_FPA4; } // item item(FEAT_TRAINS, item_MLW_FPA4) { property { name: string(STR_NAME_MLW_FPA4); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1958,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 12; running_cost_factor: 96; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1800 hp; speed: 148 km/h; weight: 107000 kg; tractive_effort_coefficient: 0.225; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_MLW_FPA4_purchase; additional_text: string(STR_TEXT_MLW_FPA4); switch_MLW_FPA4_position; } } # 43 "NARS_ADDON_SET.pnml" 2 //... cargo ... // emd # 1 "src/DIESEL/EMD_F3.PNML" 1 //graphics definition spriteset(spriteset_EMD_F3, "gfx/diesel/EMD_F3.png") { template_L7A(0,0) } spriteset(spriteset_EMD_F3_purchase, "gfx/diesel/EMD_F3.png") { template_purchase_L7(0,0) } spriteset(spriteset_EMD_F3_depot, "gfx/diesel/EMD_F3.png") { template_depot_L7() } //B-unit spriteset(spriteset_EMD_F3b, "gfx/diesel/EMD_F3.png") { template_L7B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_F3_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_F3b; spriteset_EMD_F3; } // item item(FEAT_TRAINS, item_EMD_F3) { property { name: string(STR_NAME_EMD_F3); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1945,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 10; running_cost_factor: 78; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1500 hp; speed: 120 km/h; weight: 105000 kg; tractive_effort_coefficient: 0.185; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_F3_purchase; additional_text: string(STR_TEXT_EMD_F3); switch_EMD_F3_position; } } # 48 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_F7.PNML" 1 //graphics definition spriteset(spriteset_EMD_F7, "gfx/diesel/EMD_F7.png") { template_L7A(0,0) } spriteset(spriteset_EMD_F7_purchase, "gfx/diesel/EMD_F7.png") { template_purchase_L7(0,0) } spriteset(spriteset_EMD_F7_depot, "gfx/diesel/EMD_F7.png") { template_depot_L7() } //B-unit spriteset(spriteset_EMD_F7b, "gfx/diesel/EMD_F7.png") { template_L7B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_F7_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_F7b; spriteset_EMD_F7; } // item item(FEAT_TRAINS, item_EMD_F7) { property { name: string(STR_NAME_EMD_F7); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1949,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 11; running_cost_factor: 81; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1500 hp; speed: 120 km/h; weight: 105000 kg; tractive_effort_coefficient: 0.190; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_F7_purchase; additional_text: string(STR_TEXT_EMD_F7); switch_EMD_F7_position; } } # 49 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_F9.PNML" 1 //graphics definition spriteset(spriteset_EMD_F9, "gfx/diesel/EMD_F9.png") { template_L7A(0,0) } spriteset(spriteset_EMD_F9_purchase, "gfx/diesel/EMD_F9.png") { template_purchase_L7(0,0) } spriteset(spriteset_EMD_F9_depot, "gfx/diesel/EMD_F9.png") { template_depot_L7() } //B-unit spriteset(spriteset_EMD_F9b, "gfx/diesel/EMD_F9.png") { template_L7B(0,0) } //Switch for B-unit switch(FEAT_TRAINS, SELF, switch_EMD_F9_position, position_in_vehid_chain % 2) { 1: spriteset_EMD_F9b; spriteset_EMD_F9; } // item item(FEAT_TRAINS, item_EMD_F9) { property { name: string(STR_NAME_EMD_F9); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1953,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 12; running_cost_factor: 83; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1750 hp; speed: 120 km/h; weight: 105000 kg; tractive_effort_coefficient: 0.195; // reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { purchase: spriteset_EMD_F9_purchase; additional_text: string(STR_TEXT_EMD_F9); switch_EMD_F9_position; } } # 50 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_F45.PNML" 1 //graphics definition spriteset(spriteset_EMD_F45, "gfx/diesel/EMD_F45.png") { template_L8A(0,0) } spriteset(spriteset_EMD_F45_depot, "gfx/diesel/EMD_F45.png") { template_depot_L8(0,0) } spriteset(spriteset_EMD_F45_purchase, "gfx/diesel/EMD_F45.png") { template_purchase_L8(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_F45_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_F45_depot; // Depot view 0x12: spriteset_EMD_F45_depot; // Vehicle List view spriteset_EMD_F45; // Default } // item item(FEAT_TRAINS, item_EMD_F45) { property { name: string(STR_NAME_EMD_F45); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1968,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 21; running_cost_factor: 148; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 3000 hp; speed: 128 km/h; weight: 178000 kg; tractive_effort_coefficient: 0.195; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_F45_default; purchase: spriteset_EMD_F45_purchase; additional_text: string(STR_TEXT_EMD_F45); } } # 51 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP9U.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP9U, "gfx/diesel/EMD_GP9U.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP9U_depot, "gfx/diesel/EMD_GP9U.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP9U_purchase, "gfx/diesel/EMD_GP9U.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP9U_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP9U_depot; // Depot view 0x12: spriteset_EMD_GP9U_depot; // Vehicle List view spriteset_EMD_GP9U; // Default } // item item(FEAT_TRAINS, item_EMD_GP9U) { property { name: string(STR_NAME_EMD_GP9U); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1990,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 11; running_cost_factor: 88; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1900 hp; speed: 120 km/h; weight: 108000 kg; tractive_effort_coefficient: 0.205; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP9U_default; purchase: spriteset_EMD_GP9U_purchase; additional_text: string(STR_TEXT_EMD_GP9U); } } # 52 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP30.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP30, "gfx/diesel/EMD_GP30.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP30_depot, "gfx/diesel/EMD_GP30.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP30_purchase, "gfx/diesel/EMD_GP30.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP30_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP30_depot; // Depot view 0x12: spriteset_EMD_GP30_depot; // Vehicle List view spriteset_EMD_GP30; // Default } // item item(FEAT_TRAINS, item_EMD_GP30) { property { name: string(STR_NAME_EMD_GP30); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1961,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 12; running_cost_factor: 108; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 2250 hp; speed: 112 km/h; weight: 117000 kg; tractive_effort_coefficient: 0.200; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP30_default; purchase: spriteset_EMD_GP30_purchase; additional_text: string(STR_TEXT_EMD_GP30); } } # 53 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP35.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP35, "gfx/diesel/EMD_GP35.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP35_depot, "gfx/diesel/EMD_GP35.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP35_purchase, "gfx/diesel/EMD_GP35.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP35_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP35_depot; // Depot view 0x12: spriteset_EMD_GP35_depot; // Vehicle List view spriteset_EMD_GP35; // Default } // item item(FEAT_TRAINS, item_EMD_GP35) { property { name: string(STR_NAME_EMD_GP35); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1963,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 14; running_cost_factor: 112; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 2500 hp; speed: 112 km/h; weight: 117000 kg; tractive_effort_coefficient: 0.205; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP35_default; purchase: spriteset_EMD_GP35_purchase; additional_text: string(STR_TEXT_EMD_GP35); } } # 54 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP40.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP40, "gfx/diesel/EMD_GP40.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP40_depot, "gfx/diesel/EMD_GP40.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP40_purchase, "gfx/diesel/EMD_GP40.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP40_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP40_depot; // Depot view 0x12: spriteset_EMD_GP40_depot; // Vehicle List view spriteset_EMD_GP40; // Default } // item item(FEAT_TRAINS, item_EMD_GP40) { property { name: string(STR_NAME_EMD_GP40); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1965,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 15; running_cost_factor: 118; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 3000 hp; speed: 120 km/h; weight: 118000 kg; tractive_effort_coefficient: 0.2100; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP40_default; purchase: spriteset_EMD_GP40_purchase; additional_text: string(STR_TEXT_EMD_GP40); } } # 55 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_GP402.PNML" 1 //graphics definition spriteset(spriteset_EMD_GP402, "gfx/diesel/EMD_GP402.png") { template_L7A(0,0) } spriteset(spriteset_EMD_GP402_depot, "gfx/diesel/EMD_GP402.png") { template_depot_L7(0,0) } spriteset(spriteset_EMD_GP402_purchase, "gfx/diesel/EMD_GP402.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_GP402_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_GP402_depot; // Depot view 0x12: spriteset_EMD_GP402_depot; // Vehicle List view spriteset_EMD_GP402; // Default } // item item(FEAT_TRAINS, item_EMD_GP402) { property { name: string(STR_NAME_EMD_GP402); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1972,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 16; running_cost_factor: 114; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 3000 hp; speed: 120 km/h; weight: 117000 kg; tractive_effort_coefficient: 0.2307; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_GP402_default; purchase: spriteset_EMD_GP402_purchase; additional_text: string(STR_TEXT_EMD_GP402); } } # 56 "NARS_ADDON_SET.pnml" 2 # 1 "src/DIESEL/EMD_SD452.PNML" 1 //graphics definition spriteset(spriteset_EMD_SD452, "gfx/diesel/EMD_SD452.png") { template_L8A(0,0) } spriteset(spriteset_EMD_SD452_depot, "gfx/diesel/EMD_SD452.png") { template_depot_L8(0,0) } spriteset(spriteset_EMD_SD452_purchase, "gfx/diesel/EMD_SD452.png") { template_purchase_L8(0,0) } switch(FEAT_TRAINS, SELF, spriteset_EMD_SD452_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_EMD_SD452_depot; // Depot view 0x12: spriteset_EMD_SD452_depot; // Vehicle List view spriteset_EMD_SD452; // Default } // item item(FEAT_TRAINS, item_EMD_SD452) { property { name: string(STR_NAME_EMD_SD452); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1972,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 20; running_cost_factor: 139; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 8; power: 3000 hp; speed: 112 km/h; weight: 172000 kg; tractive_effort_coefficient: 0.225; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_CARGO; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_EMD_SD452_default; purchase: spriteset_EMD_SD452_purchase; additional_text: string(STR_TEXT_EMD_SD452); } } # 57 "NARS_ADDON_SET.pnml" 2 // mlw # 1 "src/DIESEL/MLW_RS18.PNML" 1 //graphics definition spriteset(spriteset_MLW_RS18, "gfx/diesel/MLW_RS18.png") { template_L7A(0,0) } spriteset(spriteset_MLW_RS18_depot, "gfx/diesel/MLW_RS18.png") { template_depot_L7(0,0) } spriteset(spriteset_MLW_RS18_purchase, "gfx/diesel/MLW_RS18.png") { template_purchase_L7(0,0) } switch(FEAT_TRAINS, SELF, spriteset_MLW_RS18_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_MLW_RS18_depot; // Depot view 0x12: spriteset_MLW_RS18_depot; // Vehicle List view spriteset_MLW_RS18; // Default } // item item(FEAT_TRAINS, item_MLW_RS18) { property { name: string(STR_NAME_MLW_RS18); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_DIESEL; introduction_date: date(1972,01,01); model_life: 40; vehicle_life: 30; retire_early: 0; track_type: RAIL; cost_factor: 12; running_cost_factor: 86; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1800 hp; speed: 120 km/h; weight: 113000 kg; tractive_effort_coefficient: 0.200; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_DIESEL, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_MLW_RS18_default; purchase: spriteset_MLW_RS18_purchase; additional_text: string(STR_TEXT_MLW_RS18); } } # 60 "NARS_ADDON_SET.pnml" 2 // TURBINE // ============================================================================= // ELECTRIC // ============================================================================= # 1 "src/ELECTRIC/CNR_Z1A.PNML" 1 //graphics definition spriteset(spriteset_CNR_Z1A, "gfx/electric/CNR_Z1A.png") { template_L6A(0,0) } spriteset(spriteset_CNR_Z1A_depot, "gfx/electric/CNR_Z1A.png") { template_depot_L6(0,0) } spriteset(spriteset_CNR_Z1A_purchase, "gfx/electric/CNR_Z1A.png") { template_purchase_L6(0,0) } switch(FEAT_TRAINS, SELF, spriteset_CNR_Z1A_default, getbits(extra_callback_info1, 0, 8)) { 0x10: spriteset_CNR_Z1A_depot; // Depot view 0x12: spriteset_CNR_Z1A_depot; // Vehicle List view spriteset_CNR_Z1A; // Default } // item item(FEAT_TRAINS, item_CNR_Z1A) { property { name: string(STR_NAME_CNR_Z1A); climates_available: ALL_CLIMATES; engine_class: ENGINE_CLASS_ELECTRIC; introduction_date: date(1916,01,01); model_life: 40; vehicle_life: 75; retire_early: 0; track_type: ELRL; cost_factor: 12; running_cost_factor: 86; running_cost_base: RUNNING_COST_STEAM; refit_cost: 0; // Refitting is free sprite_id: SPRITE_ID_NEW_TRAIN; //enable new graphics length: 7; power: 1100 hp; speed: 120 km/h; weight: 71000 kg; tractive_effort_coefficient: 0.150; // 365 kN OpenTTD 1.6.1 reliability_decay: 0; cargo_age_period: 65535; cargo_capacity: 0; ai_special_flag: AI_FLAG_PASSENGER; misc_flags: bitmask(TRAIN_FLAG_2CC, TRAIN_FLAG_FLIP); visual_effect_and_powered: visual_effect_and_powered(VISUAL_EFFECT_ELECTRIC, 0, DISABLE_WAGON_POWER); } // define graphics and callbacks graphics { default: spriteset_CNR_Z1A_default; purchase: spriteset_CNR_Z1A_purchase; additional_text: string(STR_TEXT_CNR_Z1A); } } # 70 "NARS_ADDON_SET.pnml" 2 // ============================================================================= // ============================================================================= # 1 "src/vehicleSort.pnml" 1 // Steam // ========================================================= // Diesel // ========================================================= sort(FEAT_TRAINS, [item_EMD_E7]); // 1945 sort(FEAT_TRAINS, [item_EMD_E8]); // 1949 sort(FEAT_TRAINS, [item_EMD_E9]); // 1954 sort(FEAT_TRAINS, [item_EMD_FP45]); // 1967 sort(FEAT_TRAINS, [item_EMD_F40C]); // 1973 sort(FEAT_TRAINS, [item_EMD_F40PH2D]); // 2007 sort(FEAT_TRAINS, [item_EMD_GP402P]); // 1974 sort(FEAT_TRAINS, [item_FM_ERIEBUILT]); // 1945 sort(FEAT_TRAINS, [item_GE_U30CG]); // 1967 sort(FEAT_TRAINS, [item_MLW_FPA4]); // 1958 // ... sort(FEAT_TRAINS, [item_EMD_F3]); // 1945 sort(FEAT_TRAINS, [item_EMD_F7]); // 1949 sort(FEAT_TRAINS, [item_EMD_F9]); // 1953 sort(FEAT_TRAINS, [item_EMD_F45]); // 1968 sort(FEAT_TRAINS, [item_EMD_GP9U]); // 1990 sort(FEAT_TRAINS, [item_EMD_GP30]); // 1961 sort(FEAT_TRAINS, [item_EMD_GP35]); // 1963 sort(FEAT_TRAINS, [item_EMD_GP40]); // 1965 sort(FEAT_TRAINS, [item_EMD_GP402]); // 1972 sort(FEAT_TRAINS, [item_EMD_SD452]); // 1972 sort(FEAT_TRAINS, [item_MLW_RS18]); // 1956 // TURBINE // ========================================================= // ELECTRIC // ========================================================= sort(FEAT_TRAINS, [item_CNR_Z1A]); // 1916 # 74 "NARS_ADDON_SET.pnml" 2