Hello James!
I'm sitting here trying to get the constraints to work, but this seems rather odd.....
As I understood it, the line:
constraint[next][0]=any would forbid the car in particular to be the last one in the train, without specifying which car should be after.
I would think that as almost everything else, every thing would have a counterpart and therefore the syntax: "
constraint[prev][0]=any" would be legal. The result would be that the car in particular could not be the first in the train. This is what I cannot get to work. The locos just shows up with green lines in the depot, being able to put first in a convoy.
You could ask why I would want this feature, while it seems rather odd why I would point out that a car would NOT go first in the train. The reason is I want to put it on a Loco. I have two locos, one is obviously going to be first in the train, but the second loco, I want to be last in the train. The second loco has a different name than the first one and has the line "
can_lead_from_rear=1" so it can drag the train when it gets into a sack-station (which is common practice at least in Sweden). If you put
can_lead_from_rear=1 on a loco going FIRST in the train, you get som very strange results, but I guess that this would be harder to code....?
I want that loco to remain invincible because otherwise all the locos would get double up in the depot, and this would be achieved if I could get the line "
constraint[prevt][0]=any" to work properly

The only other sollution as it is now, is 'constraiting' every single car that might be the last one before the rear loco

Is this done like this for a reason, or is it just a mis, or am i just stupid for not understanding something?

If it is programmed this way, is it too much to ask for a solution?
