Skip to content

Commit 8abfaf8

Browse files
committed
Added Blackpool 1924 Standard 147 and Glasgow Wooden Tram (both WIP), updated changelog
1 parent f455129 commit 8abfaf8

File tree

10 files changed

+143
-8
lines changed

10 files changed

+143
-8
lines changed

docs/SpriteIDs.xlsx

58 Bytes
Binary file not shown.

docs/changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# In progress/nightly releases, not yet on BaNaNaS (may require debug mode parameter to be enabled, graphics may not yet be coded etc)
22
- Added Class 321
3+
- Furness Railway Railmotor?
4+
- Added Glasgow Wooden Tram
5+
- Added Blackpool 1924 Standard 147
36

47
# v2.10
58
- Added Class 555

gfx/Tram/Blackpool_Standard147.png

12.8 KB
Loading

gfx/Tram/Glasgow_Wooden.png

14.2 KB
Loading

lang/english.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ STR_DESC_EyeCandy :An invisible locomotive intended for us
7979
STR_EyeCandy_NoAttachedUnit :Cannot start Eye Candy locomotive without an attached unit
8080

8181
# TRAM NAMES
82+
STR_NAME_GlasgowWooden :Glasgow Trams Wooden Double Decker
83+
STR_NAME_BlackpoolStandard147 :Blackpool Trams 1920s "Standard" Double Decker
8284
STR_NAME_CR4000 :London Trams CR4000 (2-car Single Unit)
8385
STR_NAME_LondonVariobahn :London Trams Variobahn (5-car Single Unit)
8486
STR_NAME_BirminghamUrbos :West Midlands Metro Urbos 3 (5-car Single Unit)

src/templates_trams.pnml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ template template_tram20px(x,y){ // Clone to 4view when changed
6161
}
6262
template template_tram20px_tall(x,y){ // Clone to 4view when changed
6363
//left_x, upper_y, width, height, offset_x, offset_y
64-
[ x, y, 8, 25, -3, -13] // n
65-
[ x+9, y, 16, 22, -0, -11] //ne
66-
[ x+26, y, 21, 19, -8, -9] //e
67-
[ x+48, y, 16, 22, -8, -8] //se
68-
[ x+65, y, 8, 25, -3, -13] //s
69-
[ x+74, y, 16, 22, -12, -7] //sw
70-
[ x+91, y, 21, 19, -15, -9] //w
71-
[ x+113, y, 16, 22, -8, -10] //nw
64+
[ x, y, 8, 25, -3, -19] // n
65+
[ x+9, y, 16, 22, -0, -17] //ne
66+
[ x+26, y, 21, 19, -8, -15] //e
67+
[ x+48, y, 16, 22, -8, -14] //se
68+
[ x+65, y, 8, 25, -3, -19] //s
69+
[ x+74, y, 16, 22, -12, -13] //sw
70+
[ x+91, y, 21, 19, -15, -15] //w
71+
[ x+113, y, 16, 22, -8, -16] //nw
7272
}
7373

7474
template template_tram24px(x,y){

src/trams/BlackpoolStandard147.pnml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
switch (FEAT_ROADVEHS, SELF, switch_articulated_TRAM_BlackpoolStandard147, extra_callback_info1) {
2+
return CB_RESULT_NO_MORE_ARTICULATED_PARTS; //stop adding vehicle parts
3+
}
4+
5+
6+
item (FEAT_ROADVEHS, item_TRAM_BlackpoolStandard147, 652) {
7+
property {
8+
misc_flags: bitmask(ROADVEH_FLAG_TRAM);
9+
name: string(STR_NAME_BlackpoolStandard147);
10+
climates_available: ALL_CLIMATES;
11+
introduction_date: date(1924,4,1);
12+
model_life: VEHICLE_NEVER_EXPIRES;
13+
retire_early: 1;
14+
vehicle_life: 50;
15+
reliability_decay: 7;
16+
refittable_cargo_classes: CC_PASSENGERS;
17+
cargo_allow_refit: [PASS, TOUR];
18+
loading_speed: 29;
19+
cost_factor: 20;
20+
running_cost_factor: 18;
21+
sprite_id: SPRITE_ID_NEW_TRAIN;
22+
speed: 35 mph;
23+
refit_cost: 0;
24+
power: 220 hp;
25+
running_cost_base: RUNNING_COST_ROADVEH;
26+
default_cargo_type: PASS;
27+
cargo_capacity: 1;
28+
weight: 1 ton;
29+
tractive_effort_coefficient: 0.08;
30+
air_drag_coefficient: 0.05;
31+
length: 5;
32+
cargo_age_period: 185;
33+
}
34+
graphics {
35+
cargo_subtype_text: sw_TRAM_BlackpoolStandard147_cargo_subtype_text;
36+
articulated_part: switch_articulated_TRAM_BlackpoolStandard147;
37+
default: sw_TRAM_BlackpoolStandard147;
38+
purchase: spriteset_BlackpoolStandard147_purchase;
39+
colour_mapping: return PALETTE_CC_FIRST;
40+
cargo_capacity: return(100 * param_pax);
41+
cost_factor: return(GetAdjustedCostTRAM(9));
42+
running_cost_factor: return(GetAdjustedCostTRAM(9));
43+
weight: 18;
44+
}
45+
}

src/trams/Glasgow_Wooden.pnml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
switch (FEAT_ROADVEHS, SELF, switch_articulated_TRAM_GlasgowWooden, extra_callback_info1) {
2+
return CB_RESULT_NO_MORE_ARTICULATED_PARTS; //stop adding vehicle parts
3+
}
4+
5+
6+
item (FEAT_ROADVEHS, item_TRAM_GlasgowWooden, 651) {
7+
property {
8+
misc_flags: bitmask(ROADVEH_FLAG_TRAM);
9+
name: string(STR_NAME_GlasgowWooden);
10+
climates_available: ALL_CLIMATES;
11+
introduction_date: date(1899,4,1);
12+
model_life: VEHICLE_NEVER_EXPIRES;
13+
retire_early: 1;
14+
vehicle_life: 50;
15+
reliability_decay: 7;
16+
refittable_cargo_classes: CC_PASSENGERS;
17+
cargo_allow_refit: [PASS, TOUR];
18+
loading_speed: 29;
19+
cost_factor: 20;
20+
running_cost_factor: 18;
21+
sprite_id: SPRITE_ID_NEW_TRAIN;
22+
speed: 25 mph;
23+
refit_cost: 0;
24+
power: 150 hp;
25+
running_cost_base: RUNNING_COST_ROADVEH;
26+
default_cargo_type: PASS;
27+
cargo_capacity: 1;
28+
weight: 1 ton;
29+
tractive_effort_coefficient: 0.08;
30+
air_drag_coefficient: 0.05;
31+
length: 5;
32+
cargo_age_period: 185;
33+
}
34+
graphics {
35+
cargo_subtype_text: sw_TRAM_GlasgowWooden_cargo_subtype_text;
36+
articulated_part: switch_articulated_TRAM_GlasgowWooden;
37+
default: sw_TRAM_GlasgowWooden;
38+
purchase: spriteset_GlasgowWooden_purchase;
39+
colour_mapping: return PALETTE_CC_FIRST;
40+
cargo_capacity: return(100 * param_pax);
41+
cost_factor: return(GetAdjustedCostTRAM(4));
42+
running_cost_factor: return(GetAdjustedCostTRAM(4));
43+
weight: 16;
44+
}
45+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
spriteset (spriteset_BlackpoolStandard147_purchase, "gfx/Tram/Blackpool_Standard147.png") {
2+
template_purchase(0,0)
3+
}
4+
5+
spriteset (spriteset_BlackpoolStandard147, "gfx/Tram/Blackpool_Standard147.png") {
6+
template_tram20px_tall(0, 13)
7+
}
8+
9+
switch(FEAT_ROADVEHS,SELF,sw_TRAM_BlackpoolStandard147_cargo_subtype_text,cargo_subtype){
10+
0: return string(str_MetrolinkYellow);
11+
return CB_RESULT_NO_TEXT;
12+
}
13+
14+
switch(FEAT_ROADVEHS,SELF, sw_TRAM_BlackpoolStandard147_Metrolink, position_in_articulated_veh % 1){
15+
0:spriteset_BlackpoolStandard147;
16+
}
17+
18+
switch(FEAT_ROADVEHS,SELF, sw_TRAM_BlackpoolStandard147,cargo_subtype){
19+
0: sw_TRAM_BlackpoolStandard147_Metrolink;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
spriteset (spriteset_GlasgowWooden_purchase, "gfx/Tram/Glasgow_Wooden.png") {
2+
template_purchase(0,0)
3+
}
4+
5+
spriteset (spriteset_GlasgowWooden, "gfx/Tram/Glasgow_Wooden.png") {
6+
template_tram20px_tall(0, 13)
7+
}
8+
9+
switch(FEAT_ROADVEHS,SELF,sw_TRAM_GlasgowWooden_cargo_subtype_text,cargo_subtype){
10+
0: return string(str_MetrolinkYellow);
11+
return CB_RESULT_NO_TEXT;
12+
}
13+
14+
switch(FEAT_ROADVEHS,SELF, sw_TRAM_GlasgowWooden_Metrolink, position_in_articulated_veh % 1){
15+
0:spriteset_GlasgowWooden;
16+
}
17+
18+
switch(FEAT_ROADVEHS,SELF, sw_TRAM_GlasgowWooden,cargo_subtype){
19+
0: sw_TRAM_GlasgowWooden_Metrolink;
20+
}

0 commit comments

Comments
 (0)