Set-Driver-Condition-Rule (update)

Ah good feedback Jack,
I see you have quite a long session name, then it moves to the next line and pushes all down
html in Trainz is quite limited, but i will see if i can do something with it.
Maybe i just remove the "Session:" text.

Can indeed check if the default should be the current game time, good tip

<kuid2:39730:61000:2> TrackView Rule, is on the DLS (but broken there),
you have to open it for editting, remove in the config the section "trackview-defaults" then submit
then it works perfect.
greetings GM



In the Track View Rule, remove whole section including the parameters and position container?

I removed the quotes and there are no faults that's why I ask. This is a top-notch rule that really, really is helpful.

Never mind... I removed the complete container. I think that's what you mean.
 
Last edited:
Hi G.M.
Thanks for that rule very helpful!
Where can I download or get that NS Train for download?
Bedankt voor je help.

Lukewc
 
@John, yes, the whole container can go, you can set all parameters in Edit Session, in your session

@Jack, its on the DLS, in ContentManager, filter [All Content], in search box enter [TrackView....]

@Luke the train was made by Micheal, Sander and me on Trainzonline, only an Alfa version (comes before beta) is released sofar'
https://www.mediafire.com/file/ddlbhs6hu6qg530/SLTalfa.zip/file
the zip contains also files to have it working in ts2009, so check what you install.
think i also scripted you can use the "change destination sign" rule
not with texture replacement but with kind name effect

greetings GM
 
Last edited:
Ty Peter, Didn't know his site is still up, I am a big fan of Klaus, is it fixed there?

Todays edit
-Removed the text "Session:"
-gave it a nowrap tag, so it won't push the rest down

Some things don't line up as I like but long names are possible

greetings GM
 
It's still the old unmodified version of the TrackView rule. Sometimes in the past KlausM postet, that the defaults in the config.txt are not required. The script defines the same defaults.

Peter
 
oki Peter TY, well we know how to fix it.


the third screen for this Rule i'm working on, replaces the first (the dials are gone)
It shows:
-the current driver (i miss that in the TRS19 interface) (the head left under should show it)
-the seconds you are in this session (i miss that in the TRS19 interface) we only have hour.min
-the name of the train/vehicle you are watching (i miss that in the TRS19 interface)
-Distance traveled by that train/vehicle
-the current gradient (this is in the TRS19 interface, but not in the trackview rule)


it is (currently)not a thread, so it only updates when you click a button


And a few hours later:
-seconds now called "in Session:" and moved up
-Vehicle now name Consist
-Calculation for total length and weight of the train added
-distance "m." added
-gradient "%" added
sdcrhud2.jpg


Love it when a plan.....(c)????
greetings GM
 
Last edited:
The DCC-mode and Cabin-mode icons were needed in TRS2004,
when it was impossible to switch between those modes in driver.
Now in TRS2019 we have the 3 yellow dots, right lower corner,
so they are a bit redundant.(not using the word obsolete)
I re-used the icons, to switch between the "setting" screen and the "HUD" screen.
All buttons have mouse over tooltips.
The TRS19 interface + Trackview Rule + this rule combined,
gives me all info to fully enjoy Trainz and work on content.


the screen was made expanding Trainz over 2x 27" monitors in my route
i just stared at it with mouth open, lol (click on it)



Updates:
-"Consist" changed to "Train" (it is a Train Simulator after all)
-"Weight" is now "Mass"
-HUD screen updates, whenever you change focus/select another train
-Wrote a routine, if no driver is selected the HUD asks you to select 1 (or it would hang)


Known issues:
-not always a loco is selected in the HUD (FI if you put a wagon before and after a loco)
-language is English only
-Triggers count bad, but some/most are in the scenery(with track) count
-Only metric
-Time dial defaults to night (will try to change that in the future)
-Hud only updates, on camera/focus change or "refresh" button (lighter for the game)
-If you use extreme long names for sessions/drivers/trains it will mess up the interface
-Main screen is 5 pixels too low on start, minimize then reopen.


the various screens and how they route/link to each other:



Download latest version (v3) here: https://www.mediafire.com/file/dydx6pjvn85ahls/Set+Driver+Conditions+Rule_Trs19V3.cdp/file
as always remove the old, install the new
See Trainz in a whole new interface :)
enjoy GM
 
Great stuff keep the update coming.
I have a couple of suggestions and observations

a If you look at the attached image from my session taken at 0512 hours the trigger count does not appear to be correct as I have a lot more than that on this route. I changed Driver and performed a recount and trigger list now indicate 5. So it must be looking in the local area.
b Time control needs to pick up current session time if possible.
c As the script name is known to the user it may be a good idea to remove the name from the screen blocks.

https://www.dropbox.com/t/44eN13VHVMUwGTWt


Keep up the good work
 
Thanks for the good feedback Jack
a. like posted above, the trigger count behaves weird,
only activated(or nearby) triggers seem to be in that count, have the same on my route
but a trigger seems to also be a "scenery with track" item, that's why i added a count for scenery
good chance you have used over 500 triggers, judging by your screeny.
b. yup, on the todo list
c. screen 3 (HUD) will change in the future if i have more to add (FI fuel(remaining), or total passengers)


I have more plans for the Rule in the future, but taking a break on this, waiting for more feedback and..
as you can see in another post, my route is seriously damaged from SP1>>SP2,
so i now first have to repair a few thousand spline points lol,
specially caternary can be horrible to fix.


btw. your route looks very nice, go make an account on a free hosting site, FI imgbb.com
so you can share pictures easier with us.


over 80 downloads, hoping for some more feedback
greetings GM
 
wow Jack, that is a huge map/route, estimate about 2/3 of my entire country.


Working to get info how many passengers are on your train and how many seats
this is made more difficult, cause a bright soul disabled a function i need in vehicle.gs
public ProductQueue GetProductQueue(void) { return GetQueue("name of queue"); }
So have to write workaround nr. 3456 to do this costing many hours.


Moved some things in the HUD screen interface to add the passenger and seat quantities.



Download latest version (v3) here: (not with passenger count yet)
https://www.mediafire.com/file/dydx6pjvn85ahls/Set+Driver+Conditions+Rule_Trs19V3.cdp/file
as always remove the old, install the new
feedback is appreciated :)
enjoy GM
 
And yet...another update:
-The HUD screens shows your playername, why?
If you want to save a screenshot FI for a bug report, the playername and seconds in session are on it
no worry, i won't put your bank account in there :)
-Seats now called Seats free
-"in session" now called "in game"





Known issues(v4):
-sometimes the passenger count is not correct, if people did not make passenger trains as in C.C.G./Wiki
-trains with no passenger doors or passenger queue will not count.
-if your playername is extreme long, it could mess up the interface
-in theory it should work in any version from TRS2009-TRS2019SP2
(today tested in TANE)


Tip: for making a screenshot with interfaces, [Alt]-[Print Scrn], open Paint, do File > paste, then save.


Download latest version (v4) here: (with passenger/seat count and playername)
https://www.mediafire.com/file/2ineyukr0dprf1n/Set+Driver+Conditions+Rule_TRS19V4.cdp/file

as always remove the old, install the new
feedback is appreciated :)
enjoy GM
 
The last update(for now) and a few repairs:
-It starts in driver minimized as icon, left upper corner
So no more being at wrong place at start.


-Timedial, defaults to the Current Gametime (as suggested by Jack)
Sounds so simple but took a lot of time.


-The line with "playername in game ..s." nowrap tags added.


-A few buttons play the standard built-in command sounds
it gets irritating on every count button, so skipped those.


-New button on the HUD screen "V", it opens View-details of the current (frontmost)vehicle.
as I requested in Suggestion Boxcar, opening view-details is too complex. it needs a shortcut key
currently: press [Ctrl] right-click mouse select top option view-details.(needs 2 hands)


It will only display the standard view-details, not custom scripted ones sadly.
My Diesel trains use Locdiesel and sand, so i get info on that.

I can now enjoy Trainz as i want, get almost all info I want, lean back, and just use a mouse.


Download latest version (v5) here:
https://www.mediafire.com/file/rbltd9r5p0x6tsa/Set+Driver+Conditions+Rule_TRS19V5.cdp/file
as always remove the old, install the new
100 downloads sofar, feedback is appreciated :)
enjoy GM
 
Decided not to bother with SP2 anymore on the forum, posted all that is needed.
I'll do my route building only in build 100240 (beforeSP1) so its 4.6
and now concentrate on developing the game for myself and have fun again.





Added priority number on the HUD screen,
not sure how many use this, you can change it on the fly, 1,2 or 3
Added runningnumber on the HUD screen
older trains(using the original runningnumber) you can change it , 1 click is +1


download beta v6 here: (remove old install new)
http://www.mediafire.com/file/niixzo1by1emoy9/Set+Driver+Conditions+Rule_TRS19v6.cdp/file

enjoy GM
 
Yet another update, are we tired yet? I'm not ;-)


Running Number > up and < down, had the +1 working , so added the -1
btw. there is no checking if already used or if its realistic.


Dim Switch
Replaced another icon on the HUD screen, the middle one, now has a light symbol.
It is basicly a dim switch (high/low beam), for the current frontmost vehicle.
In the Trainz interface it is disabled when you drive a train under AI control,
with this rule you have control over that again. For me it looks better dimmed on many trains.
Did you know high/low beam was in trs2009 already? i didn't know till I made this.



Panto Switch
When driving in AI-mode, you can't change the panto state right?,
used the left most button in the HUDscreen for that, has the basic 4 states.
When driving, Trainz makes sure atleast 1 panto is up.


View Details window
Didn't like how i opened view details, how it looked and where it pops on screen,
so made an extra screen(the 4th) in style with this rule.
It shows a pic of the front most vehicle, how many cars it tows (we already see the mass left)
then the products.
Downside, the products text is white.., so added a little darker background.

Why standard passengers are called "prod passengers 2012" and not just "passengers" beats me.
its 2021 right? and they were actually made in 2004 ;-)
Have to work out, how to deal with steam engines with tender, products coal/water.


4 different screens on 2 spots
Wrote routines when opening 1 screen it will not overlap another, and now all can be minimized with 1 click.
Added benefits of this rule, you can see/call all this info, in DCC/CAB/AI mode,



It is real fun getting into scripting and seeing how much is possible.
So far everything my old brain has come up with (though a lot of study) works in the end.
The people(or person) that made trainzscript way back in 2001? were/was really brilliant.


with no further blabla here is beta v7: (remove old install new)
http://www.mediafire.com/file/3ru874a336bqte1/Set+Driver+Conditions+Rule_TRS19_v7.cdp/file
enjoy GM
 
Hello G.M.

Looks like you developed a gem of a rule. Gonna test this out on my Electro Island map (see DLS) and Icarus Shinkansen maps. BTW I am from the Netherlands but I am actively developing Japanese Routes because of my love for Japanese railway (see screenshots Japan Forum). But I do love European and Dutch railway too. :)

This rule looks very useful.

BTW.

A while ago I asked in the general forum if it is possible to develop a simple stop at all stations driver rule. Reason for that is that you don't have to program the whole route or copy schedules for all-stop trains. Is it possible to develop such a rule or is that difficult? I can see difficulties because some of my stations are not interactive and have their stopping positions as track marks.

Anyway. Compliments on your nice rule. :).
 
ty Pagroove, i dream of making a traintrip full length of Japan 1 day.


A stop at all stations rule could be made, though its not easy,
like you said, there are industries(passenger station) and trackmark stations
at industry you will stop and open/close doors, trackmarks will just stop the train
then the pathfinding could be a limitation.


What i do here, is use the "copy commands from" + "schedule library" from Jurgen Schmid
made 2 basic schedules: wait 5s.+open passenger doors(side) + wait 20s.+ close passenger doors(side)+ wait 5s
and that for left and right. named them "stop left" and "stop right".


Then the driver command list: drive to (station name) + stop right + drive to (next station) etc.
When a station is an industry passenger station, i often use Load at = Drive to + load


back to -=SDCR=-
Wrote a routine, for the viewdetail screen, if the 2nd car is a tender,
it shows those products, so coal and water.



Next screen (nr. 5) of Set-Driver-Conditions-rule is for Layers (L)
Not sure if, and how many we all use, so its based on how i build my routes/sessions FI:


-route-layer: track, trackside, industries, textures, key buildings and splines
-basemaps: i build my routes on google-earth templates on a separate locked layer
-temporary: here i put parts of big stations like glass roofs, that i can then turn off
-caternary: 1 click change from electric to diesel/steam
-buildings:
-trees: slowly replacing the old trees into speedtrees and move them to that layer
-passengers: adding more animated people (neoklai) on this layer


-session-layer: all trains used in this session
-ses-extra: all things specific to this session except trains

For now it counts, the Route and Session layers used
then a list (max 10) of 8 route layers and 2 session layers
layers that are "on" show a black square in front,
layers that are "off' show an open square.
on/off is a single click on a name and it updates instantly.


pguy's nice layer rule works along side this, so you can still put that in your driver schedule.
Warning: turning off route-layer or session-layer works but not advised.


btw. this rule will never change anything permanent in your route or session!
A month since i started updating, average 3 hours a day = 84 hours lol.
if it were payware most could not afford it ;-)
All tags etc. conform to build 3.5, now N3v should support it.


here is beta v8 with Layer screen (remove old install new)
http://www.mediafire.com/file/pi4lhfpel7dylqf/Set_Driver_Conditions_Rule_TRS19_v8.cdp/file
enjoy GM
 
Last update for now...


Settings-Screen:
-Removed all text what this rule can do, we know by now (I hope)
besides that everything has tooltips.
-Added a "Season" switch, it searches the current system year/season
it moves time, 3 months ahead, every click and shows the Season name.
so we can easy test/see seasonal things we used in our route/session
Warning: on a big route with many seasonal items this can take a while for trainz to process
so..I provide the tool, not saying you have to use it, it is for testing mainly.



Start/Init:
-Added a routine, that it even works when using Quickdrive (F2)
normally Quickdrive, *cough* forgets to "Init" scripts.
No idea how it behaves with the Unified Driver/Surveyor interface, don't have that here.


(?)(L)(V) buttons:
-Added a 2nd click, closes the extra screen again (user-friendly?)
good against RSI, less mouse movement :)


get the best version v9 here (remove old, install new)
http://www.mediafire.com/file/jynbdgjd3e1b226/Set_Driver_Conditions_Rule_TRS19_v9.cdp/file
enjoy testing GM
 
Back
Top