Simple Tachograph for ETS2/ATS, v1.7


  CHANGES IN VERSION 1.6
------------------------------
Sound alerts are made differently. Now the event and its playing time are embedded in the file name itself.

There are three types of sound files:
sound_driving_*. wav - this is for "daily driving time" (instead of an asterisk - the number of minutes)
sound_speed_*. wav - this is for speed limits (instead of an asterisk - speed in km/h)
sound_tacho_*. wav - this is for the "remaining driving time" (instead of an asterisk - the number of minutes)

Examples:
sound_driving_240.wav - when the "daily driving time" becomes equal to 240 minutes (4 hours), this file will be played;
sound_driving_270.wav - when the "daily driving time" becomes equal to 270 minutes (4 hours 30 minutes), this file will be played;
sound_speed_50.wav - when the speed limit becomes "50" (km/h), this file will be played;
sound_speed_80.wav - when the speed limit becomes "80" (km/h), this file will be played;
sound_tacho_40.wav - when driving remains 40 minutes, this file will be played;
sound_tacho_90.wav - when driving remains 1 hour 30 minutes (90 minutes), this file will be played;
etc.

Of course, the sound file itself can contain anything - a simple "beep", a melody, a voice notification.
And these files can be arbitrarily many. For example, if we need an alert when the driving time is 3 hours (180 minutes),
then in the folder with the program create the file sound_tacho_180.wav. If, for example, we do NOT want alerts at the speed limit 
of "70", then delete the sound_speed_70.wav file from the program folder. After adding or removing wav-files, you must restart
the program!

Note! For the sounds of the speed limit to work, you need to have both checkboxes on the "Use speed warning" in the program!


  INSTALL
-----------
1. Copy entire "Simple Tachograph EN" folder somewhere on your computer.
2. Install the plugins:
from "Plugins" folder copy entire "bin" folder into the folder where game is installed:
...\Euro Truck Simulator 2\ or ...\American Truck Simulator\.

It should be like this (as an example):
g:\Games\Euro Truck Simulator 2\bin\win_x64\plugins\telemetry_tedit_x64.dll

ATTENTION! If the game can not load plugin and say in the log...
00:00:12.215 : loading 'telemetry_tedit_x64' 'G:/Games/Euro Truck Simulator 2/bin/win_x64/plugins/telemetry_tedit_x64.dll'
00:00:12.218 : <ERROR> unable to load: 0000007E
... install "MS VC++ Redistributable 2012 x86/x64" from "vcredist" folder!

ATTENTION! For its work, the program must be running. If you close the program,
tachograph will not work!


  DESCRIPTION
--------------
A simple tachograph that considers "driving time" (daily, weekly and two-weeks) and "rest time".
If the speed is more than 1 km/h, then driving time is considered, otherwise rest time is considered.
During the game, you can press the hotkey to display the tachograph information in the game console
(the default is the F12 key).

In the program settings you can set the following parameters (in minutes):
  - the maximum total daily driving time;
  - the maximum total weekly driving time;
  - the maximum total two-week driving time;
  - the minimum continuous rest time per day;
  - the minimum continuous rest time per week.
In addition, you can assign a hotkey to display tachograph information in the game console.

After a week's rest, the time of driving for a week is first copied into the driving for the second week,
and then resets. In addition, the current playing time is remembered - this is the time of the beginning 
of a new working week (it is shown in the console as "New week time").

Over 1 hour and 20 minutes before the end of driving time (daily, weekly or two-weeks), the player is 
notified (sound and in the game console) at intervals of every 20 game minutes.

"Rest time", if it is more than 20 minutes, can be interrupted by "driving", amounting to no more 
than 60 minutes. If the "driving" exceeds these 60 minutes, then the "rest time" and the "driving after a pause" 
counter will be reset. The amount of driving time after a pause of 20 minutes is indicated in square brackets 
after the "Full day drive time". This interruption of the "rest time" was done in order not to lose 
the "rest time" spent on the ferry.

The remaining time for work, displayed in quotes in the line Full day drive time, is calculated for all indicators:
daily, weekly and two-week driving time, as well as the start time of the new shift and/or new week.
Then the minimum is taken and it is displayed on the screen. In brackets indicates what it refers to:
 - (Full day DT) - for daily driving time
 - (One week DT) - for weekly driving time
 - (Two weeks DT) - for a two-week driving time
 - (End of shift) - for the end of shift (working day)
 - (End of week) - for the end of working week

If the "Show remaining time" checkbox is checked, the "driving time" shown in the console has the following 
format: <remaining> (<passed>/<total>). If the checkbox is not checked, then everything remains as it was 
before: <passed> (<total>). For the new shift, the new week and the "rest time" in the brackets is always 
indicated the remaining time. 
 

  RECOMMENDATIONS
-------------------  
 * I recommend disabling the default fatigue emulation.
 * The program can be minimized to the system tray, so as not to interfere on the screen.


I express special thanks to Sergey(Supric) for the telemetry plugin and to Andrey(погранец) for the advices!

Best regards,
Alex (Knox_xss)