Too Many Triggers?

nicky9499

SSoTW Bot
Hi guys,

I'm looking for a Wait For Trackmark driver command. Because I'm using sound trigger frogs across the entire route, it appears there are now so many that Trainz doesn't bother trying to display all of them. I tried Wait for trackmark,<kuid2:400260:423249:1> by tram but it doesn't work - AI trains simply don't respond. There are no other such scripts/commands on the DLS.

Wait For Trigger on left (impossible) and Wait For Trackmark on right (needs working driver command).

9792838292f05d82956f9f7b49cfcd2e.jpg


The crux of the issue is having sound triggers show up in driver lists. I doubt N3V is interested in fixing the menus that go off the bottom of the screen, so right now I can either avoid triggers altogether (as above) or find some way to hide the triggers in Driver.

If anyone can advise how best to proceed that would be excellent.
 
This is a known bug with the menus which has been brought up more than once and fairly recently as well in the Trainz Dev. The crux is there was no interest, at least at the moment, to fix this, however, suggestions have been taken into consideration. In the mean time, Brian Kennilworth has a session script to fix this for track marks because there's a limit to the number of lines that appear in the menus.

I'm not sure how you use these, Nicky so this may or may not work.

In the even that Brian's add-on doesn't work, is there a way to name them so they appear at the very bottom of a list let's say by beginning their name to zzz? This would move them out of the way and leave the rest of the stuff that's supposed to be seen visible.

I know it's a pain since it looks like you have a gazillion triggers.

John
 
Hi John, I've thought of the renaming workaround, but the triggers I want begin with "AI..." so it appears there's so many that Trainz doesn't even display it in the A submenus. I can see alot of other A triggers including a whole bunch of ATLS save-to-map ones but no AI.
 
Hi John/Nicky

It was p-dehnert who modified the Drive/Navigate to/via commands for which I'm extremely grateful. This was in response to the ECML route failing to list half of the trackmarks so the ones between A and H were missing. See post 20 in this thread http://forums.auran.com/trainz/showthread.php?121847-rules/page2&highlight=ECML+Trackmarks for the link to download them.

The script change was just one line added to create an extra menu level so you could perhaps check through the script and try adding a similar line into the trigger script. I found the added line by comparing the standard Drive to driver command script with the new version. Please note, I'm not a scripter so I have no idea if this will work or not.

Regards

Brian
 
Yes, it works.

In command Wait for trigger, edit script waitfortriggercommand.gs.
search for text triggerMenu.SubdivideItems(); found at line 93.
Copy the line and paste a duplicate directly underneath.
Script should now look like:

}
triggerMenu.SubdivideItems();
triggerMenu.SubdivideItems();

Optionally, edit the config trainz build to 2.9 or 3.5 for TANE.
Commit the command.

Fixes the menu issue in TS12 ECML and groups menu items into four sub-groups.

Best Regards - Trevor
 
Last edited:
Hi Trevor and Brian,

It's 2am here and I need to be up at 6 for work tomorrow. But I just wanted to express my sincere thanks for helping resolve a most troublesome issue.

d30575b73a0babb785c2c8fe35dc7a0d.jpg


Cheerio,
Nicholas
 
Glad to be of assistance, Nicky. Credit should also go to Peter Dehnert for pioneering the fix.

This method ought to work on any other driver command that shows the same type of issue. There might be some commands where multiple instances of the subdivide instruction occur. In that case it is probably the last one that needs to be duplicated, but this can only be determined by experiment.

Best Regards - Trevor
 
Back
Top