UnCouplezFrom vehicle limit

ElStoko

Well-known member
Smileyman's 'UnCouplezFrom' script <kuid:66277:80005> allows the user in Surveyor > 'Edit Session' > 'Driver Setup' to choose a consist's vehicle number to mark the decouple point from a fixed list of numbers 0 to 20.
I cannot discover a way to allow the choice of a vehicle number beyond 20 - the list does not scroll.
Does anyone know if a choice beyond 20 can be made, and if so, how?
If the current script does not allow choice beyond 20, would Smileyman be prepared to edit his script to allow a choice up to ,say, 50? Alternatively, would Smileyman be prepared to send me his script so that I can edit it and return it to him for release?
 
Beyond UnCouplezFrom

No one so far has suggested a way to extend the UnCouplezFrom vehicle limit beyond 20, so let's take it that this is not possible.
Does anyone know of a command script that performs a similar function to UnCouplezFrom but allows the user to specify vehicle numbers to at least 40?
I can't locate an alternative on the Trainz DLS but perhaps I've overlooked something, or another website may hold the answer.
 
The script
Decouple number #,<kuid2:147570:80008:1>
is set to allow uncoupling any car number between 1 and 40. If you want it to have a larger range you can open the kuid for Edit in Explorer and edit the decouplephysicscommand.gs file to change the end car number to whatever you want. I've have mine set to 51. Here is the area I edited in the .gs file:

if (train or !driver) {
int k;
for(k = 1; k < 51;k++) {
itemMenu.AddItem((string)k,me,"decouplephysics",k);}

then save and commit

Bob
 
Uncouple / Decouple

My error was to search the DLS only on keyword 'uncouple' and failed to consider 'decouple'.
Thank you, Bob, for pointing to Ed's script and giving some handy edit advice.

Leigh
 
Back
Top