Oh and here’s the code vehicle as it stands right now for any one who might find it helpful, doubtful but you never know.
Code: Select all
//----------------------------------------------------------
// E231-Kinkou Type (5 Car)
//----------------------------------------------------------
715 * 79 00 00 20 01 A4 //As far as vehicle ID
00 7C 77 // First property to change 00 date of introduction days after 1920 read 7D 78 hex (30660)
02 05 // reliability decay speed
03 28 // Vehicle life in years (40)
04 FF // Model life in years FF (255) always?
05 00 // track type
06 03 // Cimate availablility
07 \b16 // Load speed (16) [16 units every 40 ticks] *Unused set by callback
08 01 // AI thing
09 78 00 // Speed 120
0B FC 03 // Power 1020
0D 3B // Running cost factor
0E 3C 4C 00 00 // Running cost base
12 FD // Sprite ID FD= new grf
13 00 // dual head flag
14 96 // Cargo capacity *Unused set by callback
15 00 // cargo type (00 passengers)
16 87 // Weight (135)
17 21 // Cost factor
18 00 // Engine rank AI thing ttd
19 31 // traction type
1A 1B // sort purchase list?
1B 00 00 // power added by each wagon
1C 00 // Refit cost
1D 01 00 00 00 // cargo refitting types?
1E 17 // Callback flags. Enable callbacks 10,11,12 and 16
1F 1E // Tractive Effort
20 02 // air drag
21 01 // make vegicle shorter *Unused set by callback
22 00 // visual effect *Unused set by callback
23 00 // Powered wagon weight
24 00 // weight high byte
27 04 // misc flags 04=mu
//
//Front
716 * 4 01 00 01 08
717 f:\mps\ttwin95\sprites/EME231mh.pcx 2 40 01 21 8 -3 -13
718 f:\mps\ttwin95\sprites/EME231mh.pcx 18 40 01 17 19 -12 -9
719 f:\mps\ttwin95\sprites/EME231mh.pcx 50 40 01 12 28 -13 -8
720 f:\mps\ttwin95\sprites/EME231mh.pcx 98 40 01 17 19 -6 -10
721 f:\mps\ttwin95\sprites/EME231mh.pcx 130 40 01 21 8 -3 -13
722 f:\mps\ttwin95\sprites/EME231mh.pcx 146 40 01 17 19 -12 -9
723 f:\mps\ttwin95\sprites/EME231mh.pcx 178 40 01 12 28 -13 -8
724 f:\mps\ttwin95\sprites/EME231mh.pcx 226 40 01 17 19 -6 -10
725 * 9 02 00 00 01 01 00 00 00 00
//Back
726 * 4 01 00 01 08
727 f:\mps\ttwin95\sprites/EME231mh.pcx 2 72 01 21 8 -3 -13
728 f:\mps\ttwin95\sprites/EME231mh.pcx 18 72 01 17 19 -12 -9
729 f:\mps\ttwin95\sprites/EME231mh.pcx 50 72 01 12 28 -13 -8
730 f:\mps\ttwin95\sprites/EME231mh.pcx 98 72 01 17 19 -6 -10
731 f:\mps\ttwin95\sprites/EME231mh.pcx 130 72 01 21 8 -3 -13
732 f:\mps\ttwin95\sprites/EME231mh.pcx 146 72 01 17 19 -12 -9
733 f:\mps\ttwin95\sprites/EME231mh.pcx 178 72 01 12 28 -13 -8
734 f:\mps\ttwin95\sprites/EME231mh.pcx 226 72 01 17 19 -6 -10
735 * 9 02 00 01 01 01 00 00 00 00
//Coach
736 * 4 01 00 01 04
737 f:\mps\ttwin95\sprites/EME231mh.pcx 2 104 01 21 8 -3 -13
738 f:\mps\ttwin95\sprites/EME231mh.pcx 18 104 01 17 19 -12 -9
739 f:\mps\ttwin95\sprites/EME231mh.pcx 50 104 01 12 28 -13 -8
740 f:\mps\ttwin95\sprites/EME231mh.pcx 98 104 01 17 19 -6 -10
741 * 9 02 00 02 01 01 00 00 00 00
//Panto 1
742 * 4 01 00 01 08
743 f:\mps\ttwin95\sprites/EME231mh.pcx 2 136 01 21 8 -3 -13
744 f:\mps\ttwin95\sprites/EME231mh.pcx 18 136 01 17 19 -12 -9
745 f:\mps\ttwin95\sprites/EME231mh.pcx 50 136 01 15 28 -13 -11
746 f:\mps\ttwin95\sprites/EME231mh.pcx 98 136 01 19 19 -6 -12
747 f:\mps\ttwin95\sprites/EME231mh.pcx 130 136 01 21 8 -3 -13
748 f:\mps\ttwin95\sprites/EME231mh.pcx 146 136 01 19 19 -12 -11
749 f:\mps\ttwin95\sprites/EME231mh.pcx 178 136 01 15 28 -13 -11
750 f:\mps\ttwin95\sprites/EME231mh.pcx 226 136 01 17 19 -6 -10
751 * 9 02 00 04 01 01 00 00 00 00
//Panto 2
752 * 4 01 00 01 08
753 f:\mps\ttwin95\sprites/EME231mh.pcx 2 168 01 21 8 -3 -13
754 f:\mps\ttwin95\sprites/EME231mh.pcx 18 168 01 19 19 -12 -11
755 f:\mps\ttwin95\sprites/EME231mh.pcx 50 168 01 15 28 -13 -11
756 f:\mps\ttwin95\sprites/EME231mh.pcx 98 168 01 17 19 -6 -10
757 f:\mps\ttwin95\sprites/EME231mh.pcx 130 168 01 21 8 -3 -13
758 f:\mps\ttwin95\sprites/EME231mh.pcx 146 168 01 17 19 -12 -9
759 f:\mps\ttwin95\sprites/EME231mh.pcx 178 168 01 15 28 -13 -11
760 f:\mps\ttwin95\sprites/EME231mh.pcx 226 168 01 19 19 -6 -12
761 * 9 02 00 05 01 01 00 00 00 00
//
//D0
762 * 28 02 00 10 81 40 80 FF 00 \b5 \b4
00 00 00 00 // Front F//C//P//C//B
02 00 01 01 //
04 00 02 02 //
02 00 03 03 //
01 00
//D1
763 * 28 02 00 20 81 40 80 FF 00 \b5 \b4
00 00 00 00 // Front F//C//P//C//B
02 00 01 01 //
05 00 02 02 //
02 00 03 03 //
01 00
//
//check direction (D0 or D1):
764 * 14 02 00 30 82 FF 00 01 01 10 00 00 00 20 00
//
// set CB 16 (articulated vehicle)
765 * 14 02 00 11 81 10 00 FF 01
7E 80 01 04 // 4 additional parts of veh-ID 7E (base articulated car NG)
FF 80 // end articulated vehicle
// set CB 1D (engine attach)
//
766 * 14 02 00 12 81 40 10 FF 01
FE 80 00 0F //
20 80 // error: "wrong number of cars"
//
767 * 18 02 00 13 81 C6 00 FF 02
12 00 A4 A4 //IDs of vehicles aloud to attach
12 00 7E 7E
21 80 // error: "wrong type of car"
//
//process callback 10 (powered wagon) D0
768 * 14 02 00 15 81 40 00 0F 01
34 80 02 02
40 80
//
//process callback 10 (powered wagon) D1
769 * 14 02 00 16 81 40 00 0F 01
3C 80 02 02
40 80
//check direction for callback 10:
770 * 14 02 00 17 82 FF 00 01 01 16 00 00 00 15 00
//
771 * 14 02 00 18 81 10 00 FF 01
\b140 80 14 14
30 00
// switch between callback and graphics branch
772 * 34 02 00 19 81 0C 00 FF 06
\b32 80 12 12 // CB 12 Loading Speed
01 80 11 11 // CB 11 Shorten to 7/8
17 00 10 10 // CB 10 Callback for powered wagons, used for graphical purposes here.
11 00 16 16 // CB 16 Enable callback 16 articulated vehicle.
13 00 1D 1D // CB 1D Enables callback 1D, Can wagon be attached.
18 00 36 36 // CB 36 Enable capacity change
30 00 // graphics
//
//----------------------------------------------------------
// menu entry
//----------------------------------------------------------
773 * 6 01 00 01 FF 01 00
774 f:\mps\ttwin95\sprites/EME231mh.pcx 18 8 01 16 54 -25 -10
775 * 9 02 00 00 01 01 00 00 00 00
//
776 * 11 02 00 A1 85 1A 00 \w700 00 00 80 //Total capacity
//
777 * 14 02 00 A2 81 10 00 FF 01
A1 00 14 14
00 00
//
778 * 18 02 00 01 81 0C 00 FF 02
22 80 23 23
A2 00 36 36
00 00
//
779 * 30 04 00 01 01 A4 "E231-Kinkou Type (5 car)" 00
//
780 * 10 03 00 01 A4 01 FF 01 00 19 00
//
781 * 7 03 00 81 7E 00 19 00