Transport Fever 2

Transport Fever 2

308 oy
Advanced Statistics
3
3
5
3
2
2
2
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Misc: Script Mod
Dosya Boyutu
Gönderilme
Güncellenme
1.137 MB
11 Nis 2021 @ 22:02
19 Oca 2024 @ 6:21
19 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Advanced Statistics

Açıklama
This mod will show you additional statistics and extensive information in the game.
It can be added/removed every time.

[Description also available in game]

Did you ever wanted to know...
  • How long you played on a savegame (real/game time)?
  • More summarized information about towns (Reachability, Cargo Supply)?
  • More summarized information about industries (Levels, Production)?
  • How many persons there are really simulated?
  • Which people are walking, driving or using lines?
  • For how long people have been waiting at a station?
  • How much cargo is on its way or waiting at stations?
  • The employment rate of town buildings?
  • How many person capacities there are at a certain area (incl. person magnets)?
  • How many vehicles are waiting or stopped?
  • How long the (player owned) street network is?
  • What percentage of the tracks are electrified?
  • Which track types you used and where?
  • Information about street/track speed, curve radius and slope?
  • How many traffic lights there are in a town?
  • How many trees there are on the map?
  • How many additional street/track/bridge types, models, etc. there are with mods?
  • Financial total statistics?
If you like statistics, this mod is right for you.

Also useful as tool to find out filenames of objects and for modders.


Structure
The statistics are contained in a window that is displayed at startup.
They are read from the game sorted by entity types, evaluated and displayed in a tabwidget. Additionally there is general information about the game and application.

For each tab/datatype, a short info can be displayed in the game bar. A click opens the corresponding tab directly. In addition, there is a button in the game bar on the far right to open the window.

Eventually, the mass of information may seem overwhelming at first. I tried to present all relevant and interesting data as compactly and clearly as possible. Nevertheless, you have to deal with it a bit and try it out to understand the different values.
Some elements have tooltips (hold cursor on them) with additional explanations.
For experienced users there is a setting for even more data.


Selection
There are 3 ways to specify which items are included in the statistics (for most types):
  • Global - All objects of this type on the whole map
  • View - All objects in the current view (white circle)
  • Radius - All objects in the white circle (radius changeable)

Calculations
Because of the numerous calculations and iteration over all objects in the game, the calculation time is significant. Therefore, the runtimes are displayed to keep track of them.
Normally the statistics are only updated when the corresponding tab is selected/visible.
To keep the values in the gamebar up to date, you can also activate the permanent background execution in the settings. However, this is only possible to a limited extent, depending on data type and savegame progress.
If the total runtime exceeds 200ms, this leads to lagging in the simulation. This can also be controlled with the debug window (debug mode on, 2x AltGr+i, the lower one).


Problems/Bugs
I have tested the mod extensively, but I can't exclude possible bugs. That's why I included an error handler to prevent the game from crashing. In such a case, a window will be displayed. But all information is also written into the stdout txt[www.transportfever2.com].
If an error occurs, please do the following:
  1. In the mod settings, set Log Level to 2
  2. Reproduce the error
  3. Send me stdout file


Background
This project is by far the biggest and most elaborate mod I have created for Transport Fever 2.
The first ideas started already a year ago. The statistics available in the game were just not sufficient enough for me. So it started with graphically displaying single values like game time, total population and other data about towns and industries.
With the time the project became bigger and bigger, because I also wanted to include information of the other entity types (vehicles, assets, people, tracks...). Also, with the modding update last summer, even more possibilities were available.
With time I learned a lot about the game, the (gui) modding interface and programming with Lua. So the next step always remained small and made it possible to add even more information in a compact and flexible way. The finished result always seemed close, but due to the volume (to extract everything interesting from the game what's possible) and many details, the project dragged on very long, which I underestimated in the beginning.
To get an impression of the size of the project: It consists of 87 script files.


Acknowledgements
Although I encountered some technical issues during development, I would like to thank Urban Games for the support and the modding possibilities.
A big thanks goes to eis_os and CommonAPI2, whose console and inspector tools were very useful during development.
Furthermore, I would like to thank the beta testers for the useful comments.


Code and future development
The source code of this mod is available on GitHub: https://github.com/Vacuum-Tube/Advanced_Statistics_1
I have some ideas for the future. Anyway, I need a break from programming now.


If you like to support my mod development, you can donate here:
[paypal.me] Thank You!

If you have feedback, suggestions, bugs, crashes or questions about the stats itself, please use the appropriate subforum below.
Popüler Tartışmalar Tümünü Görüntüle (4)
83
22 Eki 2024 @ 10:27
SABİT: Bug/Crash Reports
VacuumTube
26
9 May 2024 @ 11:40
SABİT: Feedback/Suggestions/Improvements
VacuumTube
3
21 May 2021 @ 4:36
Hang when quitting to desktop.
wellover-50
80 Yorum
JPN Shiro 20 Kas 2024 @ 7:48 
Apple Island xD
PhazezGova 9 Nis 2024 @ 13:01 
Super mod, works perfectly for me. Thank you very much
Superklez 29 Mar 2024 @ 11:03 
I’m using this mod on the Steam Deck. Every time the welcome tab opens, the virtual keyboard is brought up for the Notes. Is there a way to disable this automatic prompt?
LuinCLXXX 4 Eki 2023 @ 19:05 
Hello! I'm from China and I really love your mod. I made a Chinese localization file and posted it on Google drive. It's my honor that you use it in the future updates!
汉化文件链接: https://drive.google.com/file/d/1AolkToXHiJRQmf6ETQyWS3wkGlkHrsIH/view?usp=drive_link
VacuumTube  [yaratıcı] 23 Eyl 2023 @ 3:04 
this mod is only about reading values. There are other mods for that. (search for upgrader)
Oninaig 22 Eyl 2023 @ 3:15 
Is there a way to manually reset a value? For example, when playing on maps from the workshop it starts off with a huge construction cost because it assumes you paid for all of the buildings that were in the map you downloaded which skews your finance chart.
tsilaicosneknurd 13 May 2023 @ 3:14 
I get this error (while loading, around 72%) even after having advanced statistics deactivated?? :-(
VacuumTube  [yaratıcı] 13 May 2023 @ 0:48 
There is a unknown error left, that mostly occured on Linux and Mac. Please send me the stdout on transportfever.net
tsilaicosneknurd 13 May 2023 @ 0:08 
is it possible, that this mod produces a crash, if I remove vehicle mods (after they became available, but none bought). In this case I get this nothing saying error:
MinidumpCallback: dumpPath "~/.local/share/Transport Fever 2/crash_dump/", minidumpId "7151f331-61f0-41cf-315e3593-f1732505", succeeded 1
local time is Fri May 12 11:08:22 2023

Calling thread crashtrace handlers
thread: 140689614521920
advanced_statistics.lua - game/res/gameScript/advanced_statistics.lua_update() - mod: "!2454731512" version 1

All thread handlers called
Minidump Callback

I will try to increase the Log Level and report back, if it happens again
Vimes 7 May 2023 @ 6:14 
Thanks. I followed, with translation, your advice here...

https://www.transportfever.net/lexicon/index.php?entry/350-platzhalter-w%C3%BCrfel-entfernen-remove-dummy-models/

it worked fine. Strange thing was I deleted and replaced all the cube bus stops on the map, 30 something. It still came up with the same message as it did before I removed any....

https://gtm.you1.cn/sharedfiles/filedetails/?id=2972710655

but they were dealt with by following the suggestion linked above using the console.

BTW enjoy a cup of coffee :)

Thanks for your work and sharing.