AJS invisible stations - too old and broken?

b9k9kiwi

Member
I've used AJS invisible stations since their inception - they've functioned wherever, until now.

I am now getting random behaviour (using DriveTo and Load commands) - such as the train slowing but not stopping and proceeding to stop outside of the station, or the train stops but the doors don't open, or they open on the wrong side.

Loading and unloading, when the train deigns to stop, is unaffected.

Any hints of what I might use in their place would be appreciated.
 
I am now getting random behaviour (using DriveTo and Load commands)
Those problems are not new and have been around for some years now. Unfortunately the original creator passed away some years ago.

I currently have no suggestions for their replacement.
 
It really shouldn't be difficult to design sessions that can reliably pick up / drop off passengers - but it is.
 
Its not so much the stations have changed its the fact that Trainz has. I use quite a few on my routes and most work however when they stop working I place a track marker where I want the train to stop and use that to drive/navigate to. I then use the 'load' command, and assuming the train is over the invisible station track the animation appears to work as usual. Peter
 
I use these and have not encountered any problems in TRS22
<kuid2:122285:3499:23> AJS Station Library
<kuid2:122285:508:24> AJS Superscript Code Library
<kuid2:122285:3401:22> AJS Invisible Station 1T 3.5
 
I had been considering making some simpler replacements for these, as I always suspected that they were problematic. Unfortunately, I've been unable to get my head round the scripts required for stations. I was thinking of just making a limited number for a small number of fixed platform heights and passenger offsets, rather than trying to replicate what Andi did.

Does anyone know of a basic script that can be used, or even a tutorial?

Thanks,

Paul
 
I've used AJS invisible stations since their inception - they've functioned wherever, until now.

I am now getting random behaviour (using DriveTo and Load commands) - such as the train slowing but not stopping and proceeding to stop outside of the station, or the train stops but the doors don't open, or they open on the wrong side.

Loading and unloading, when the train deigns to stop, is unaffected.

Any hints of what I might use in their place would be appreciated.
I sometimes get this in TRS19, I find it can be mostly fixed by increasing the deceleration number of the train in the engine spec file.
 
I had been considering making some simpler replacements for these, as I always suspected that they were problematic. Unfortunately, I've been unable to get my head round the scripts required for stations. I was thinking of just making a limited number for a small number of fixed platform heights and passenger offsets, rather than trying to replicate what Andi did.

Does anyone know of a basic script that can be used, or even a tial?
Check out my station basic (<kuid:75377:100524> Station Basic 60m) for basic station script or my St Davids station for a more complicated script.
 
Last edited:
I've used AJS invisible stations since their inception - they've functioned wherever, until now.

I am now getting random behaviour (using DriveTo and Load commands) - such as the train slowing but not stopping and proceeding to stop outside of the station, or the train stops but the doors don't open, or they open on the wrong side.

Loading and unloading, when the train deigns to stop, is unaffected.

Any hints of what I might use in their place would be appreciated.
Have you updated to SP4? I was having issues with AJS station 1x50s is TS22, but in my testing so far those issues seem to have been corrected in the latest service pack, although I have had to update and resave the station properties for each station.
 
Have you updated to SP4? I was having issues with AJS station 1x50s is TS22, but in my testing so far those issues seem to have been corrected in the latest service pack, although I have had to update and resave the station properties for each station.
Station properties are saved in the session, so you'll need to open that session.
 
Station properties are saved in the session, so you'll need to open that session.
Yes. If you save the session and the route it will also update them in the route, although the changed properties only become effective for a new session created for that route. Any existing sessions have to be updated individually.
 
I had been considering making some simpler replacements for these, as I always suspected that they were problematic. Unfortunately, I've been unable to get my head round the scripts required for stations. I was thinking of just making a limited number for a small number of fixed platform heights and passenger offsets, rather than trying to replicate what Andi did.

Does anyone know of a basic script that can be used, or even a tutorial?

Thanks,

Paul
I think that is the way to go. Unless your new stations have some unique functionality you don't really need to do anything special with a script. Just start with Genericpassengerstation.gs that defines class GenericPassengerStation. You subclass that and just add the overridden functions that are identified in the comments of genericpassenterstation.gs.

If I were making a new station I'd start with that given that N3V have been updating it recently perhaps because of TLR.

Andi's stations and many of those other related assets are in my "in tray" for CRG repairs. I sometimes wonder if repairing them are more trouble than they are worth.
 
I think that is the way to go. Unless your new stations have some unique functionality you don't really need to do anything special with a script. Just start with Genericpassengerstation.gs that defines class GenericPassengerStation. You subclass that and just add the overridden functions that are identified in the comments of genericpassenterstation.gs.

If I were making a new station I'd start with that given that N3V have been updating it recently perhaps because of TLR.

Andi's stations and many of those other related assets are in my "in tray" for CRG repairs. I sometimes wonder if repairing them are more trouble than they are worth.

Thanks Paul. I am building some Tube stations and was wondering how to make them passenger-enabled so I will try that script. I'm still at the modelling stage so not ready to export from Blender yet.

Kind regards,

Gary
 
Something I realised whilst browsing through the various AJS station versions: some of them have been updated since Andi's death (presumably by N3V or the content repair group), and are packaged in the latest releases. Some, however, have not been updated in a long time. I'm wondering if some of the inconsistency I'm having is because the trains on my route are largely running between updated AJS and VSR stations, but my trams are using the tram stops that have older scripts? Has anyone looked at this, and how involved would the update be? One of the tram stops is my own modified clone of Andi's Tram Stop 3 - I'm more than happy to update if someone can have a look at the scripts. I know just about enough TrainzScript to be dangerous, so I'm at risk of making things worse.

Paul
 
Something I realised whilst browsing through the various AJS station versions: some of them have been updated since Andi's death (presumably by N3V or the content repair group), and are packaged in the latest releases. Some, however, have not been updated in a long time. I'm wondering if some of the inconsistency I'm having is because the trains on my route are largely running between updated AJS and VSR stations, but my trams are using the tram stops that have older scripts? Has anyone looked at this, and how involved would the update be? One of the tram stops is my own modified clone of Andi's Tram Stop 3 - I'm more than happy to update if someone can have a look at the scripts. I know just about enough TrainzScript to be dangerous, so I'm at risk of making things worse.

Paul

I've had a quick look at this. To the best of my knowledge, the CRG hasn't been involved with Andi's stations. But I can see that N3V have added some code to the AJS Station Library asset <kuid2:122285:3499:23> AJS Station Library. The comments in the code state that the original code didn't implement some animation (frame) code correctly when implementing some properties. I haven't worked this out completely but it has something to do with the shaping of passengers and platform heights - probably on asset load.

Curiously, <kuid2:122285:3499:23> AJS Station Library remains on the CRG's repair list but at this point I haven't worked out whether it needs repair or not.

The original versions of this asset were on the DLS but versions 22 and 23 were packaged so that might make life difficult for those wanting to use those libraries.

I'll try and have a longer look at this over the next few days.
 
I've had a quick look at this. To the best of my knowledge, the CRG hasn't been involved with Andi's stations. But I can see that N3V have added some code to the AJS Station Library asset <kuid2:122285:3499:23> AJS Station Library. The comments in the code state that the original code didn't implement some animation (frame) code correctly when implementing some properties. I haven't worked this out completely but it has something to do with the shaping of passengers and platform heights - probably on asset load.

Curiously, <kuid2:122285:3499:23> AJS Station Library remains on the CRG's repair list but at this point I haven't worked out whether it needs repair or not.

The original versions of this asset were on the DLS but versions 22 and 23 were packaged so that might make life difficult for those wanting to use those libraries.

I'll try and have a longer look at this over the next few days.
Some time back you had a look at AJS station 1x50s when I reported issues I was having with it. At that time you said that it wasn't something the CRG could fix, and you suggested I raise a bug report, which I did. NV3 must have done something because it now appears to be working in SP4.
 
@pcas1986 - thanks for having a look at this. I just realised that one of the AJS stations I've been using is actually <kuid:67585:28001>. Apparently this was created by Andi, but uploaded by robin_hoods (who I think was working on a Nottingham tram route a few years ago). I'm pretty sure that this also has an early version of the script.

Paul
 
Some time back you had a look at AJS station 1x50s when I reported issues I was having with it. At that time you said that it wasn't something the CRG could fix, and you suggested I raise a bug report, which I did. NV3 must have done something because it now appears to be working in SP4.
I'm pleased to hear that. Right now I need some good news regarding fixing old assets.
 
Back
Top