Renfe 252 from STR issue

Jaykob8

Member
I've downloaded an engine from the STR site, but it is faulty due to a script error. It says there is a syntax error (197) which results in a compilation error (220).

class STRScript isclass strscript_locomotoraselectricas {

thread void luceslocomotoras() {strscript_vehiculos.luceslocomotorautomaticas(me,me);} //Luces Funcionales (de Locomotoras)
thread void calefaccion() {strscript_vehiculos.calefaccion(me);} //Mangas de Calefacción Funcionales

//************************I N I T*************************
//--------------------------------------------------------
public void Init(void) { //Funcion principal de cabecera del script.

inherited(); //Hereda
luceslocomotoras();
calefaccion();
}
//--------------------------------------------------------
//********************************************************
};

I'm starting to think that isclass is an extend function, if I'm right. Anyone encounter this?
 
// ----------------------------------------------------------------------------------------
//
// SSSSSSSSSSSS TTTTTTTTTTTT RRRRRRRRRRRR
// SSSSSSSSSSSS TTTTTTTTTTTT RRRRRRRRRRRR
// SSSS TTTT RRRR RRRR
// SSSS TTTT RRRR RRRR
// SSSSSSSSSSSS TTTT RRRRRRRRRRRR
// SSSSSSSSSSSS TTTT RRRRRRRRRRRR
// SSSS TTTT RRRRRRRR
// SSSS TTTT RRRR RRRR
// SSSSSSSSSSSS TTTT RRRR RRRR
// SSSSSSSSSSSS TTTT RRRR RRRR
//
// SPAIN TRAINZ RUTAS
//
// ***************** S C R I P T L O C A L D E L S T R S C R I P T: *****************
// * *
// * *
// * L O C O M O T O R A D I E S E L *
// * *
// * *
// * Script Local genérico del STRScript para Locomotoras Diesel. *
// * Adrián Guerrero Guerrero - Septiembre de 2014 - SpainTrainzRutas. *
// ****************************************************************************************
// ----------------------------------------------------------------------------------------

// NO ROBES CÓDIGO, SI QUIERES APRENDER: http://online.ts2009.com/mediaWiki/index.php/Scripting

//******Librerías:*****/
include "strscript_locomotoras.gs"
include "strscript_vehiculos.gs"
//******Librerías:*****/

class STRScript isclass strscript_locomotoraselectricas {

thread void luceslocomotoras() {strscript_vehiculos.luceslocomotorautomaticas(me,me);} //Luces Funcionales (de Locomotoras)
thread void calefaccion() {strscript_vehiculos.calefaccion(me);} //Mangas de Calefacción Funcionales

//************************I N I T*************************
//--------------------------------------------------------
public void Init(void) { //Funcion principal de cabecera del script.

inherited(); //Hereda
luceslocomotoras();
calefaccion();
}
//--------------------------------------------------------
//********************************************************
};


This is the full code.
 
The Str script cannot be opened or modified. Only allows to another secondary scripts works.
But I have tested these 252 on Trainz+ and the CMP doesn't return an error. Only warnings about the outdated version of the scripts.
I suggest you to reinstall again the pack
 
Back
Top