Author Topic: Track laying change  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

Offline Asdfe

Track laying change
« on: October 23, 2016, 08:38:45 PM »
As it stands, track (and other waytype) laying works something like this:

Mode 1: Click and drag without control button. This makes the cheapest path, and does nothing if no path is available.

Mode 2: Click and drag with control button. This makes a direct path, and does nothing if no direct path is available.

This works ok, but can be improved without too much coding (I say with my limited coding knowledge).

My suggestion: Clicking and dragging by default makes a direct path (ie /w Crtl button currently) unless the is no direct path, in which case it swaps over to the cheapest path (ie w/o Crtl button currently).
Go download pakUSA!

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 8561
  • Total likes: 253
  • Helpful: 226
  • Languages: De,EN,JP
Re: Track laying change
« Reply #1 on: October 24, 2016, 08:44:39 PM »
You can enable this in the CHange to line with "straight_way_without_control" to 1:
straight_way_without_control = 1

However, what you want is "read my mind". The shortest path is a straight path. Hence the function will built a direct path without control, unless it is not possible. The idea with control is to avoid building unwanted paths.

Offline Asdfe

Re: Track laying change
« Reply #2 on: October 24, 2016, 11:56:01 PM »
I see. Mind reading would be nice, but I can see that it's probably a few decades down the road ;D.
Go download pakUSA!