Forever England - script errors

TheFlyingElf

New member
I've copied this bit from my other thread about missing dependencies...hopefully someone who knows about scripting will be able to help...

I have a problem with the Forever England AJS Elec route...when I load the passenger session in Driver, I get 2 error messages during loading...a few times this has caused Trainz to terminate...these are the errors...

ERROR 1
--------
[FONT=&quot]Thread Exception ER NullReference, line 355, file

Stack dump:

function$void@ScriptHUD::UpdateContent(), line -1
[/FONT][FONT=&quot]function$void@ScriptHUD::UpdateHTML(), line 136
[/FONT][FONT=&quot]function$void@ScriptHUD::AddVariable(string,string ), line 442
[/FONT][FONT=&quot]function$string@ScriptHUD::LibraryCall(string,string[],GSObject[]), line 476
[/FONT][FONT=&quot]function$void@MaxPermittedSpeed::Pause(bool), line 318

ERROR 2
--------
[/FONT][FONT=&quot]Thread Exception ER NullReference, line 355, file

Stack dump:

function$void@ScriptHUD::UpdateContent(), line -1
[/FONT][FONT=&quot]function$void@ScriptHUD::ThreadMain(), line 397[/FONT]


Any help on this would be great as I haven't a clue what to look at!

Thanks

Nige
 
I'm not certain about this, but a missing script library would do this. It might be worth downloading the entire AJS junction and station kits by Andi06, as these are often missed by CMP.

Paul
 
I'm not certain about this, but a missing script library would do this. It might be worth downloading the entire AJS junction and station kits by Andi06, as these are often missed by CMP.

Paul

Paul/Andy...anyone else please!,

Andy's sure that it isn't his assets/scripts that are causing these errors...so how do I go about troubleshooting to find out what is missing or causing them?

As I said before, I'm new to Trainz (only a few weeks) and have no idea where to look, or what to look for!

Cheers,

Nige
 
Try downloading the MaxPermitedSpeed rule, and the CustomHUD rule - on closer inspection of the errors these look like possibilities. Sorry about the confusion, it's just 95% of these queries are about Andi's content :o

Paul
 
This isn't going to be easy unless someone who knows these particular messages happens to read this thread. The piece of information you need (which object is giving the errors) can't be obtained from the messages which it makes it very difficult for anyone else to help.

Both of the errors are originating from a script which contains the text 'UpdateContent' at or about line 355. If you can find that script then it is probable that the asset which uses (it might be used by more than one asset) has missing dependencies.

If you are using 2006 it will probably be quicker just to use the 'Missing Dependencies' tab in CMP and go from there.
 
The maxpermittedspeed rule is 60850:89000:4 on the DLS. This may or may not be the culprit, but it's the kind of thing that CMP might well miss. Grab the Icon that goes with it (60850:88000:4) while you are there...

Can I assume that the route works OK if you create your own session? This narrows down the likely issues to rolling stock, session rules and driver commands. As you're using '06, check for missing dependencies of the session rather than the route.

Paul
 
Back
Top