Transport Fever 2

Transport Fever 2

225 lượt đánh giá
Distance meter
2
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Nhãn: script
Kích cỡ file
Đã đăng
256.033 KB
10 Thg01, 2020 @ 10:25am
1 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Distance meter

Mô tả
Use

As soon as you have built something, the distance to your last work is shown in the status bar. It works as far as I know for everything:

  • Assets
  • Stations
  • Depots
  • Bus stops
  • Tracks
  • Signals
  • Streets
  • Waypoints
  • Stops

Attention

  • For roads and tracks, the node closest to the mouse position at the time of construction is used. Unfortunately I can't do it any better, because building crossings etc. creates an inscrutable amount of new nodes and I don't know which was the last one.
  • For signals, waypoints and stops the cursor position is simply used. You don't get any clues in the script where exactly the thing was placed.

So...

  • Keep these restrictions in mind
  • Hold the mouse still for a short time until the street etc. is really visible. You will get a feeling for it very quickly.
29 bình luận
mmcomes2u 6 Thg06, 2024 @ 7:22am 
coole Sache , vielen Dank
cst1992 30 Thg05, 2024 @ 10:40am 
This'll come in quite handy for signals! Thank you!
Neidmare 15 Thg12, 2023 @ 12:57pm 
Works perfectly, many thanks!
810-venca 12 Thg03, 2023 @ 6:05am 
Please update the mod to a newer version of the game. Thank you
cpu | skully  [tác giả] 14 Thg06, 2020 @ 12:23pm 
You can jump back all the time - just make a hard copy of your savegames.
theSeb 14 Thg06, 2020 @ 12:20pm 
Great, thanks. I’ve been too worried to jump into the testing branch after reading the issues with common api. I’ll check it out though and see what UG have given us.
cpu | skully  [tác giả] 14 Thg06, 2020 @ 12:14pm 
I give you the permission to mod anything you want :) In case you publish it, please make sure that it doesn't cause any problems together with this mod.

Besides - there's an incredible set of debug features in the new beta branch. At least I know, there's a coordinate display and distance meter there. (Seem's like my mods are always some sort of inspiration to them...) Maybe there's also a slope meter, check it out :)
theSeb 14 Thg06, 2020 @ 3:02am 
Hey. Love your mods and especially this one, but I would ask you to consider adding a slope measurement. You have the distance and you read Z in your coordinates mod. So you could work out the change in Z over the distance by taking the absolute value of the difference between Z at the beginning and Z at the end of the distance measurement

Slope percentage = (rise / run ) * 100

In other words slope = (change in Z / distance) * 100

You already work out nearly everything you need and then you could add it into the GUI next to the D measurement. This would be really great for idiots such as myself who care about realistic slopes and railway lines. If you don't feel like adding this into this mod, then could I ask permission to use your code and do it myself?
(F.S).Moriarty 15 Thg04, 2020 @ 2:56am 
Very muy muchas, das! Nutze ich immer wieder gerne, danke für die Mod :-)
reiden555 10 Thg04, 2020 @ 11:38am 
I ran into a problem with your mod. When buidling a construction, which consists only from edges, like, for example, default roundabout, but with setting skipCollision = true, it crashes the game, with sdout saying:
PANIC: unprotected error in call to Lua API ([string "H:/Games/SteamLibrary/steamapps/workshop/cont..."]:56: attempt to index a nil value)
Adding any model, deactivating your mod or setting skipCollision to false resolves the issue, however, my construction has other modes, where this setting is mandatory. I can fix this in my mod by adding empty model, but i decided to report it here anyway.