Problem with AJS Superscript

tylermaster2

New member
When I get AJS Superscript Code Library I get this Error: mbss.gs(130) : function GetTimeElapsed not declared in class World or derivative, line 130.
Error: mbss.gs(130) : cannot cast from to string, line 130.
Error: mbss.gs(130) : cannot cast from to string, line 130.
Can someone help me with this. I tried reinstalling it but it doesn't work.
 
Yes, the library should have been up-versioned to TS2012.

However there is an easy fix.

1. Open <kuid2:122285:508:19> for editing
2. Open mbss.gs in notepad
3. Delete these lines (nothing else)
Code:
    public string Time(void) {
        string t = (string)World.GetTimeElapsed();
        return t[0,t.size() - 3] + ": ";
    }
4. Save the file and re-commit the asset.
 
Andi

I have been using WENs Class 477 DMSOs in TS2009 Version 41844 for some time. However after being in touch with Karl Lambert (Berkshire Trains) who is looking after WENs site while it is down, he sent me an upgrade for the DMSO cab, but after installing I now get a script error (even if I revert to the original). This happened to be at the same time as you introduced version 19 of your superscript. The details are:
superstub thread exception ER_NullReference, line 60, file superstub.gs(1)
Unable to load code library <kuid:122285:508>
Stack Dump
<kuid:30051:100021>”Class 477 DMSO”

function $void@superstub::Init(), line –1
function $void@MeshObject:Init(Asset), line 316

I am still waiting to hear back from Karl, But if you could shed some light, I would be grateful.

Tony Howard
 
Shane
Thanks for the reply. I changed it to kuid2 but now get a dependency error for <Kuid2:122285:508:127>

Any thoughts ?

Tony
 
You didn't need to change the dependency entry, so change that back.

Then download the Superscript library, which should be listed as a missing dependency.

Shane
 
That's concerning. Only thing I can suggest is to try an earlier version of the AJS Superscript Library and delete any later versions of it you have installed.

Shane
 
Andi

I have done as you said above but to no avail. I have downloaded version 19 several times but there is no difference.

Shane

I have deleted version 19 (18 is in situ) but I get a dependency error saying 19 is missing.

Any further thoughts ?

Tony
 
Might be worth seeing if there's an older version of the asset that is causing the script error available (not the AJS Superscript library, but rather the asset that calls the library).

Shane
 
Shane

The current asset is version 3, but even though they are listed, if you try to download, it states that versions 1 & 2 cannot be found on the DLS.

Tony
 
I have deleted version 19 (18 is in situ) but I get a dependency error saying 19 is missing.
Are you able to identify the asset that is asking for version 19?

As a general rule assets using the script shouldn't be specifying the version number unless they are using features that aren't available in earlier versions. So all references in child assets should normally be to <kuid:122285:508>
 
Andi

If I delete version 19 (18 is in situ) then those below have a dependency fault asking for 19.
Of all my locos I have found 3 that have the problem.

1) WENs Class 477 DMSOs eg Kuid2:688183:100351:3 etc.
2) Class 150/2 Kuid2:179051:150003:1
3) Your own AEC Railcars eg Kuid2:122285:502/4 etc

Everything else is OK

If I attempt to load any of these I get the script error:



superstub thread exception ER_NullReference, line 60, file superstub.gs(1)
Unable to load code library <kuid:122285:508>
Stack Dump
<kuid:30051:100021>”Class 477 DMSO”

function $void@superstub::Init(), line –1
function $void@MeshObject:Init(Asset), line 316

Hope you can help

Tony
 
Back
Top