Bob... Here's the errors I'm seeing. Like I said earlier,
there's a boat load of them....
Error: tc3steamlocomotive0905.gs(63) : variable p_state not declared, line 63.
Error: tc3steamlocomotive0905.gs(63) : illegal types for operand >, line 63
Error: tc3steamlocomotive0905.gs(64) : variable p_state not declared, line 64.
Error: tc3steamlocomotive0905.gs(64) : cannot cast from int to , line 64.
Error: tc3steamlocomotive0905.gs(67) : variable p_state not declared, line 67.
Error: tc3steamlocomotive0905.gs(67) : illegal types for operand !=, line 67
Error: tc3steamlocomotive0905.gs(67) : illegal types for operand or, line 67
Error: tc3steamlocomotive0905.gs(69) : variable p_state not declared, line 69.
Error: tc3steamlocomotive0905.gs(69) : cannot cast from to int, line 69.
Error: tc3steamlocomotive0905.gs(70) : function SetCoupler not declared, line 70.
Error: tc3steamlocomotive0905.gs(73) : invalid if expression, line 73.
Error: tc3steamlocomotive0905.gs(74) : invalid while expression, line 74.
Error: tc3steamlocomotive0905.gs(78) : variable p_state not declared, line 78.
Error: tc3steamlocomotive0905.gs(78) : illegal types for operand !=, line 78
Error: tc3steamlocomotive0905.gs(78) : illegal types for operand or, line 78
Error: tc3steamlocomotive0905.gs(79) : function SetCoupler not declared, line 79.
Error: tc3steamlocomotive0905.gs(82) : invalid if expression, line 82.
Error: tc3steamlocomotive0905.gs(82) : variable runDM not declared, line 82.
Error: tc3steamlocomotive0905.gs(82) : cannot cast from int to , line 82.
Error: tc3steamlocomotive0905.gs(89) : variable p_state not declared, line 89.
Error: tc3steamlocomotive0905.gs(89) : illegal types for operand !=, line 89
Error: tc3steamlocomotive0905.gs(91) : variable p_state not declared, line 91.
Error: tc3steamlocomotive0905.gs(91) : cannot cast from int to , line 91.
Error: tc3steamlocomotive0905.gs(93) : variable p_state not declared, line 93.
Error: tc3steamlocomotive0905.gs(93) : variable runDM not declared, line 93.
Error: tc3steamlocomotive0905.gs(93) : illegal types for operand and, line 93
Error: tc3steamlocomotive0905.gs(94) : variable runDM not declared, line 94.
Error: tc3steamlocomotive0905.gs(94) : cannot cast from int to , line 94.
Error: tc3steamlocomotive0905.gs(98) : invalid if expression, line 98.
Error: tc3steamlocomotive0905.gs(109) : variable p_state not declared, line 109.
Error: tc3steamlocomotive0905.gs(109) : cannot cast from int to , line 109.
Error: tc3steamlocomotive0905.gs(113) : variable p_state not declared, line 113.
Error: tc3steamlocomotive0905.gs(113) : cannot cast from int to , line 113.
Error: tc3steamlocomotive0905.gs(114) : function SetCoupler not declared, line 114.
Error: tc3steamlocomotive0905.gs(117) : variable p_state not declared, line 117.
Error: tc3steamlocomotive0905.gs(117) : cannot cast from int to , line 117.
Error: tc3steamlocomotive0905.gs(118) : invalid while expression, line 118.
This is a bit overwhelming to say the least... AL