Error Thread Exception: ER_NullReference, line 1366, file train.gs

belgian46

Active member
Hello,

I installed the I10 classic new, classic old, memling, b3 and b4 passenger wagon by Scarol.

Using those wagons in my test-route, I received a red-button in the right corner of my screen.

By clicking on it, I saw Train : Thread Exception: ER_NullReference, line 1366, file train.gs

By clicking on more - I saw this screen

belgian46_20120904_0000.jpg



Does anyone know what this means and what influence it can have to my route? Is there a solution for this phenomena?

Ps : I have no knowledge of scripting. I contacted the builder of this wagon ( several weeks ago ), but up to now, I didn't receive a reply.


Best regards

Kurt :wave:
 
Hi belgian46,

This error is usually caused by assets that are not compatible with Native mode, or in the case of TS12, in it's only mode.

Shane
 
Hello Shane,

I'm using these wagons in Trainz2010. Could those wagons influence the functioning of my route?

Best regards

Kurt :wave:
 
Hello Shane,

Ok, I had a look in the Jetlog file. Info within this jetlog file is rather cryptic.

Best regards

Kurt :wave:
 
Hello Shane,

Thank you for the assistance.

I find it strange, that I can't find any information about I10 within the jetlog file.

However, I do find all sorts of other info about locomotive ( HLE11,12,22,27 etc ... ) within the jetlog file. These locomotives are also used within my test-route.

A PM is coming your way.

Best regards

Kurt :wave:
 
File received OK - looking at it so far, it appears that either Hle11 1 or Hle11 2 may be the issue, as these crop up at the start of each thread exception shown.

Shane
 
Hello Shane,

Thank you for checking the file.

This is very odd - There is only one HLE11 locomotive. There are no HLE 11 1 and HLE 11 2.

I created a simple route with 1 track and placed the locomotives on it. No script exceptions were received.

When I'm placing the I10 wagons, I'm getting script exceptions.


Best regards

Kurt :wave:
 
If that's the case, you need to contact the creator of said wagons, and get them to check their scripts.

The numbers at the end of the HLE 11 items are vehicle numbers.

Shane
 
Hello Shane,

Several weeks ago, I already tried to contact the creator of the I10 wagons, but then for his HLD77.

Up to now, no reply received from him.

Best regards

Kurt :wave:
 
"HLE 11 1 and HLE 11 2" is simply the numbers assigned by the AI dispatcher, unless you click on a loco with the question mark and assign it a different name, it will be given a number automatically. Same with any train spawned from a portal. If I have a portal set up to spawn a train headed by PO&N RS11 7617, the first one will be PO&N RS11 7617 1, the second PO&N RS11 7617 2, then PO&N RS11 7617 3 and so on. That's just so the game can keep track of which engine is which, and if PO&N RS11 7617 has a script error, the log will report the script error for every instance of PO&N RS11 7617 on the route.

Script errors are very hard to track down, but if you're getting the script errors only when the I10 wagons are coupled on, try coupling those to a different loco and try coupling different cars to the HLE 11 locos to see if there's some kind of conflict between the loco script and the wagon script.
 
In the past some coaches have thrown up a script error because their .gs file contains the reference isclass locomotive, eg nexusdj's first version of his pendolinos. There are threads detailing the changes but briefly the way to correct the coaches is:

This reference in the .gs file should be changed to isclass vehicle or deleted if isclass vehicle is already present.

Also if the line "include locomotive.gs" is also present it should be deleted.
 
I'm planning at some point to do a thread regarding script errors and how to fix them, so any information like that will come in useful.

Shane
 
"HLE 11 1 and HLE 11 2" is simply the numbers assigned by the AI dispatcher, unless you click on a loco with the question mark and assign it a different name, it will be given a number automatically. Same with any train spawned from a portal. If I have a portal set up to spawn a train headed by PO&N RS11 7617, the first one will be PO&N RS11 7617 1, the second PO&N RS11 7617 2, then PO&N RS11 7617 3 and so on. That's just so the game can keep track of which engine is which, and if PO&N RS11 7617 has a script error, the log will report the script error for every instance of PO&N RS11 7617 on the route.

Script errors are very hard to track down, but if you're getting the script errors only when the I10 wagons are coupled on, try coupling those to a different loco and try coupling different cars to the HLE 11 locos to see if there's some kind of conflict between the loco script and the wagon script.

Hello Sniper297,

Thank you for the extra info.

On the test-route I placed several locomotives, without connecting the I10 wagons to anyone of them. This will be a test to do and see if I still have those scripting exceptions.

Best regards

Kurt :wave:
 
In the past some coaches have thrown up a script error because their .gs file contains the reference isclass locomotive, eg nexusdj's first version of his pendolinos. There are threads detailing the changes but briefly the way to correct the coaches is:

This reference in the .gs file should be changed to isclass vehicle or deleted if isclass vehicle is already present.

Also if the line "include locomotive.gs" is also present it should be deleted.

Hello dnevans8,

Thank you for your information.

In my case, I was able to open the I10 wagons scripts. Could their also be a problem within the I10 wagon scripts?

Best regards

Kurt :wave:
 
If the I10 wagon scripts contains isclass locomotive then this could be changed as I mentioned in my earlier post. To be on the safe side it might be best to do this on a clone of the asset in case it does not work, that way you still have the original asset.
 
If the I10 wagon scripts contains isclass locomotive then this could be changed as I mentioned in my earlier post. To be on the safe side it might be best to do this on a clone of the asset in case it does not work, that way you still have the original asset.

Hello dnevans8,

Ok - I checked the script and this script is called lms_460.gs

When opening the scripted, I only found the following about isclass - locomotive

include "locomotive.gs"
class LMS_4P460 isclass Locomotive
{
public define int CAR_DERAILED = -1;
public define int CAR_CENTER = 0;
public define int CAR_FRONT = 1;
public define int CAR_BACK = 2;
public define int CAR_SINGLE = 3;


Best regards


Kurt :wave:
 
Back
Top