Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

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 the Forum Rules.
User avatar
xyzan
Posts: 2449
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3111 Post by xyzan » 26 May 2025 21:26

how did you enter your city names manualy? With the capital letter? I've just noticed, that it compares directly.
Lincoln;Nebraska - when I will enter this to dict. file, it will add another instance of Linconl city, but with lower letters. It does not compare names, but strings. So,
lincoln;Nebraska - will work, while
Lincoln;Nebraska = will Not.
maybe this is the problem with your manually entered cities?
RBWelsh
Posts: 18
Joined: 09 Jun 2022 21:17

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3112 Post by RBWelsh » 26 May 2025 21:32

So it just occurred to me. As the country_dict.csv file has entries with Countries in it for ETS2, and States for ATS, both separated from the cities by an ';' but there are entries for places that aren't in the official base game and DLCs you must be making some decision about which ones to populate. Is that hardcoded or controlled by some other input file? I can't see a file that could serve this purpose so I'm guessing it must be hard coded. In which case it is no wonder that not all the States and cities are showing up despite them being in the csv file if you haven't updated the code.
I just tested the theory that you are deciding which entries to show depending on whether it seems it is an ATS or an ETS2 save file by loading my save game from ETS2. There are States showing up in the list of Countries - Alabama, Montana, New Hampshire and Virginia! Of these, only Montana is an SCS released DLC. So there is definitely some work to do in deciding how to populate the Country, Source and Destination lists.
RBWelsh
Posts: 18
Joined: 09 Jun 2022 21:17

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3113 Post by RBWelsh » 26 May 2025 22:43

xyzan wrote: 26 May 2025 21:26 how did you enter your city names manualy? With the capital letter? I've just noticed, that it compares directly.
Lincoln;Nebraska - when I will enter this to dict. file, it will add another instance of Linconl city, but with lower letters. It does not compare names, but strings. So,
lincoln;Nebraska - will work, while
Lincoln;Nebraska = will Not.
maybe this is the problem with your manually entered cities?
No, I followed your convention of adding the cities in lower case and with an _ if there are two words in it. Please see my later post about how the dropdowns are being populated as if there is hardcoded logic to it I think that is where the problem lies. I can't think of how else you are deciding which entries are for ATS and which ones are ETS2. You have to be checking each of the strings after the ';' to decide whether to include them in the dropdown and that seems to be the area that needs fixing.
User avatar
xyzan
Posts: 2449
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3114 Post by xyzan » 27 May 2025 11:11

There is no logic behind it - it is simple filter. It loads first pair, and then ignore the rest. It also adds at the end of the file cities, that Speditor knows, but did not find initially. So, if you have more than 1 entry with same city name - only first pair is loaded. Extra states like Alabama etc comes from some mods, and that file was provided to me by someone from the community. To cover coast to coast, and probably a lot more maps.
RBWelsh
Posts: 18
Joined: 09 Jun 2022 21:17

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3115 Post by RBWelsh » 27 May 2025 11:57

xyzan wrote: 27 May 2025 11:11 There is no logic behind it - it is simple filter. It loads first pair, and then ignore the rest. It also adds at the end of the file cities, that Speditor knows, but did not find initially. So, if you have more than 1 entry with same city name - only first pair is loaded. Extra states like Alabama etc comes from some mods, and that file was provided to me by someone from the community. To cover coast to coast, and probably a lot more maps.
But how does it decide which entries are Cities and Countries to fill the list for ETS2, instead of Cities and States for ATS? There has to be some logic within the code, surely? It is so frustrating, knowing that the Cities and States are in the file yet not showing up in the dropdown. Can you see Lincoln in Nebraska for instance, because I can't.
User avatar
xyzan
Posts: 2449
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3116 Post by xyzan » 27 May 2025 17:19

here you have, lincoln filtered with Nebraska
pic1.PNG
The system is very simple. It does not distinguish ATS from ETS.
In general, it works like that:
It loads cities from your save file
then it loads country_dict.csv, and goes through all the cities loaded earlier - if it finds city in .csv file, it adds country, and remove city from the searching list.

Another idea that came today to my mind. I've noticed, that if you have duplicates entries, it loads first ONLY, so I've checked what if I have first entry without a country, like here:
pic2.PNG
and then, indeed lincoln disappears from the list.
Check your dict file for duplicate entries, especially, if you have first entry empty, and second with country. Then it will not show your city in given country.

I don't think I will try to fix it, as I haven't look into Speditor for ages, and I'm afraid to broke something more. And I'm not even using this option - it was added only on request. In general Speditor was suppose to NOT have any offline data - which unfortunately, it has to have because of owned trailer.
You do not have the required permissions to view the files attached to this post.
RBWelsh
Posts: 18
Joined: 09 Jun 2022 21:17

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3117 Post by RBWelsh » 27 May 2025 18:50

Well now I understand that it is checking the cities it finds in my save file (or more accurately, the cities where in the Companies section) I get why it isn't showing any of the ones from the recent DLCs. There aren't any companies in those recent DLC cities in the save file. Despite me explicitly saving my game, then disconnecting from the Steam Cloud so I get a save file in the profile directory instead of Steam Profiles. I've even saved again for good measure the exited the game, but I must be doing something in the wrong order for it not to have updated the file (despite the date modified having changed) to include the companies in those cities that I have done jobs for, nor does it include teh most recent garage I bought. Maybe if you can spot what I'm doing wrong I can get it to work and stop pestering you :-)
User avatar
Kaog
Posts: 248
Joined: 19 Apr 2023 21:51

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3118 Post by Kaog » 28 May 2025 15:21

I don't know if this has already been asked, but:
Can I generate jobs like packaged glass, glass sheets, wall panels, or paving slabs?
Can I change the language of the tool? And if so, can you give me an example of how. I've already tried changing the "0" in the settings, but it doesn't work.
User avatar
xyzan
Posts: 2449
Joined: 30 Jan 2015 19:36
Location: Warsaw, Poland

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3119 Post by xyzan » 28 May 2025 16:24

@Kaog Yes, you can, if it is available. you need to change in config line: Language:0 set it to proper language, using proper localisation code. some of the codes are available in readme.txt file. Yuo can also look into directories inside the Speditor, their names are respective language code. If you will tell me the language, I can post you the proper code (if there is available translation).

@RBWelsh I'm not sure what you are asking about.
If you will look into your save file (after docoding - you can drag and drop game.sii file on the SII_Decrypt.exe file in Speditor folder to decode it to text format.
on the begining of the file there are lines:
companies: 1869
companies[0]: company.volatile.trameri.esbjerg
companies[1]: company.volatile.itcc.liege
companies[2]: company.volatile.tree_et.geneve
companies[3]: company.volatile.itcc.jonkoping

those are all companies I'm taking from. So, everything that is in game, is here. I'm adding all of them to Speditor.
Then, I''m checking the jobs. If company does not have any jobs on it, I'm removing it from dropdown list. Why? Because it may not have any loading/unloading point and creating such a job may result in a game glitch, that you do not have icon or place to finish your job - and you have to cancel.
If you want to remove this filter - there is an option "exclude companies" - just remove checkbox - it will show you all companies from the save file, that were ever there. So, if you removed mod, it is still there...

Unless you are asking me about something different... :/
if you have however this message in Speditor:
"You cannot load in this company, it does not exist in map file for owned trailer: "
it means, company is missing from the mapSet file...

You know, there are a lot of possibilities, that is why I'm asking a lot of questions - and expect answers to help me determine what may be wrong.
User avatar
Kaog
Posts: 248
Joined: 19 Apr 2023 21:51

Re: Virtual Speditor Program - Job scheduler program (Upd. 08.04.2025)

#3120 Post by Kaog » 28 May 2025 17:06

Spanish, the first question has no answer?

Return to “Others”

Who is online

Users browsing this forum: Bing [Bot], CCBot [Bot], YandexBot [Bot]