Hi, Nano,
Glad you're enjoying SwitchList, and thanks for sharing your switchlist template - it's always fun to see what other folks do! I liked seeing the spanish terms in the switchlist.
> My question is: how can I add Caboose and engine operation for each train?.
SwitchList currently doesn't have a way to handle engine operation and caboose assignments. There's a couple reasons for this:
* For my era (1930's), switchlists were a handwritten cheat-sheet created by the train crews themselves. The switchlists were only concerned with the cars being switched.
* On the model railroads I've visited, cabooses and engines are usually assigned for non-random reasons - a particular locomotive may be the usual power for a job, locomotives get switched because one is broken. It's hard to keep track of any of this in SwitchList.
It would be neat to have caboose assignments done in switchlist - in North America, specific cabooses were often assigned to particular conductors, so it would make sense to be random here. "Oh, that train probably has Conductor Smith, so we need caboose 199."
Adding support for choosing cabooses would be non-trivial work in SwitchList. You might consider just implementing something in your switchlist template - perhaps assigning a particular caboose to a specific train, or choosing a caboose randomly. I think the "randomValue" variable might come up the same each time the switchlist is generated, so you could use that variable to decide on which caboose a train gets. If that value changed each time the switchlist is drawn, then you might be able to generate a random value by hashing the train name and switchlist date and turning that into a 1-100 number.
Robert
> On Jan 18, 2025, at 11:02 AM, Nano García <
cry...@gmail.com> wrote:
>
> Hello. I'm Nano from Argentina, owner of Montecastro cajon pass (a small point to point layout) . I'm a new user of Switch list and need to congrats with developers. its great!!!!!.
>
>
> --
> You received this message because you are subscribed to the Google Groups "SwitchList" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
switchlist+...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/switchlist/ec641850-181c-4a8b-bc04-fb2ea4e74952n%40googlegroups.com.