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

Forum rules
SCS as a company do not wish to have paid mods on this forum. While we understand that not all paid mods use the Intellectual Property of other companies/people, it is very hard to moderate what is and isn't acceptable when money is involved. There are also concerns that it could look unfavorable to potential work partners going forward if SCS allow mods that may potentially use unlicensed branding.
Posting in the Mods forum (ATS and ETS2) is restricted to sharing free-to-the-public mods and providing support for mods. For more details, please check chapters [4] and [5] of Forum Rules.
Post Reply
Bluscream
Posts: 58
Joined: 07 Jun 2016 02:37

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

#1 Post by Bluscream » 23 Oct 2018 09:13

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

User avatar
Rene-Gad
Posts: 917
Joined: 09 Nov 2014 09:49
Location: Nowa Sol (PL), Berlin (D).

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

#2 Post by Rene-Gad » 23 Oct 2018 11:20

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.

Image
1.36 ETS 2 + DLC + PM + PR + RM + SR + DAF XF105 by Vad&K
1.37 ATS + DLC + C2C + CanaDream + Mexico + US Expansion + Kenworth K100-E by overfloater

Bluscream
Posts: 58
Joined: 07 Jun 2016 02:37

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

#3 Post by Bluscream » 23 Oct 2018 13:09

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

User avatar
Kirrou
Posts: 63
Joined: 19 Sep 2017 17:23

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

#4 Post by Kirrou » 25 Oct 2018 05:46

Very interesting as a program. I'll test it right now!

Andhar
Posts: 50
Joined: 25 Jul 2013 12:36
Location: Essen, Germany

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

#5 Post by Andhar » 02 Jan 2019 15:47

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.

User avatar
Ficfic
Posts: 278
Joined: 22 Dec 2014 07:19

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

#6 Post by Ficfic » 08 May 2019 16:25

Very interesting!!
Member of FSG Map viewtopic.php?f=32&t=259280

User avatar
Farmers
Posts: 151
Joined: 15 Apr 2018 19:26
Location: France
Contact:

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

#7 Post by Farmers » 08 May 2019 18:18

Very intersting, but i have a problem, the Season Changer.exe, the program don't open when i click on... You have an issues ?
Don't mind my English, i'm a French guy.

User avatar
Vossie1000
Posts: 670
Joined: 11 Dec 2013 14:46
Location: Westerbork, The Netherlands

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

#8 Post by Vossie1000 » 12 May 2019 12:14

This is indeed a topic i would like to follow as the mod develops further :D.
Keep up the good work.

Cheers
Vossie1000
World of Trucks | Vossie1000
in memoriam my first car,
Image

Bluscream
Posts: 58
Joined: 07 Jun 2016 02:37

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

#9 Post by Bluscream » 19 May 2019 09:24

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

User avatar
komar
Posts: 54
Joined: 31 Jul 2014 14:47
Location: Szczecin Poland

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

#10 Post by komar » 19 May 2019 14:37

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

Post Reply

Return to “Others”

Who is online

Users browsing this forum: No registered users and 13 guests