Page 1 of 2

ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 23 Oct 2018 09:13
by Bluscream
Hey, i stumbled accross Season changer in ETS and thought it was a neat idea. I had some problems getting it working and also disliked the idea of opening a batch file everytime i wanted to play the game. So i made my own version of it :)

MOST RECENT VERSION OF THIS README: https://github.com/Bluscream/season_cha ... stallation

Description

This tool allows syncing the day of year and summertime ingame with real-world values.
It also allows you to specify seasons which can by linked for you at certain

Installation
  • Download the latest release from the releases page.
  • Extract

    Code: Select all

    Season.Changer.zip
    to your SCS game folder (Example:

    Code: Select all

    C:\Program Files (x86)\Steam\Steamapps\common\Euro Truck Simulator 2\
    ).
  • Edit the configuration file located at

    Code: Select all

    <Euro Truck Simulator 2>\bin\win_x64\plugins\season_changer\Seasons.ini
    to your needs. (You can add/remove as many seasons as you like as long as the days don't cross)
  • A) Start

    Code: Select all

    <Euro Truck Simulator 2>\bin\win_x64\plugins\season_changer\Season Changer.exe
    manually for it do it's work
  • B) Download and install scs-autostart and add

    Code: Select all

    plugins/season_changer/Season Changer.exe
    to the

    Code: Select all

    after_sdk_warning=
    line.
Example Configuration

Code: Select all

[Spring]
File = SEASON - Spring.scs
Days = 60-149

[Summer]
File = SEASON - Summer.scs
Days = 150-209

[Early Autumn]
File = SEASON - Early Autumn.scs
Days = 210-239

[Late Autumn]
File = SEASON - Late Autumn.scs
Days = 240-329

[Winter]
File = SEASON - Winter.scs
Days = 330-59
Known Issues
  • Currently only works with ETS 2
  • Currently only works on Windows
Notes

Original / Inspiration: https://gist.github.com/Bluscream/b7fa1 ... bbad022ec5

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 23 Oct 2018 11:20
by Rene-Gad
How that work ??
Calculate time from computer data and time ??

----

I hope that I have all correct doing ;)
But at 5am in Germany is too bright.

[ external image ]

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 23 Oct 2018 13:09
by Bluscream
All what you want to know is here https://github.com/Bluscream/season_cha ... cs#L30-L31

And yes, it's all local for now. However i am working on a weather sync mod that will connect to a weather services and set the game weather according to your location

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 25 Oct 2018 05:46
by Kirrou
Very interesting as a program. I'll test it right now!

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 02 Jan 2019 15:47
by Andhar
Wow - this is exactly the tool I had in mind as I thought about a new programming project for my free time. I looked up your program.cs on GitHub and as I understood your source code, the program renames the season files from the ini to a unified scs file (depending what season currently is). That means that this "current season scs" file is the only one I have to activate manually in the mod manager and your tool updates it automagically with the current season. Nice. Will try it immediately :)

Edit: Well, I can't get it to work. I set up my seasons.ini as follows:

Code: Select all

[Winter1]
File = SEASON - Winter.scs
Days = 1-59

[Spring]
File = SEASON - Spring.scs
Days = 60-149

[Summer]
File = SEASON - Summer.scs
Days = 150-209

[Early Autumn]
File = SEASON - Early Autumn.scs
Days = 210-239

[Late Autumn]
File = SEASON - Late Autumn.scs
Days = 240-329

[Winter2]
File = SEASON - Winter.scs
Days = 330-365
I had to split the winter because you seem to have forgotten to take the change at the end of the year into account in your example and the program crashed with the message that there was no valid season for day 2 (today).
I named all seasonal scs files to "SEASON - Winter", "SEASON - Spring" and so on in my mod folder to correspond to the entries in the ini.

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 08 May 2019 16:25
by Ficfic
Very interesting!!

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 08 May 2019 18:18
by Farmers
Very intersting, but i have a problem, the Season Changer.exe, the program don't open when i click on... You have an issues ?

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 12 May 2019 12:14
by Vossie1000
This is indeed a topic i would like to follow as the mod develops further :D.
Keep up the good work.

Cheers
Vossie1000

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 19 May 2019 09:24
by Bluscream
Sorry for not responding for so long, i wasn't really into ETS for some time and now i'm kinda stuck (viewtopic.php?f=109&t=272295) i will pick up development as soon as this is resolved

Re: ETS 2 Auto Season/DayOfYear/Summertime Tool [C#]

Posted: 19 May 2019 14:37
by komar
And then know that the mod is active ? ,I installed it through the autostart plugin exe, but not how to know if the mod is active