[Guide] How to extract base.scs and def.scs - Efficiently

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
NemesysTrans
Posts: 665
Joined: 30 Dec 2019 20:01

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#71 Post by NemesysTrans » 19 Mar 2021 03:54

Just a little comment: don't worry about mentioning other OSes. The extractor only runs under Windows :(

And a little update. I rebooted my MacBook Pro into Windows 10. I set up the shortcuts exactly as you suggested but when I try to apply, the system tells me that the path in the Start box is invalid. I made sure to add "base.scs" at the end of the additional backslash before the double quotes but it will not let me do it.
nkjeetun_12
Posts: 1
Joined: 08 Apr 2020 09:54

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#72 Post by nkjeetun_12 » 24 Mar 2022 06:06

hey, got a small question, i've extracted def. file for ATS, and under def/vehicle/truck/... there's no file about the in-game trucks, there's just 3SUI files and 2 SII files... anyone knows what's wrong with it?
User avatar
Madkine
Global moderator
Posts: 12376
Joined: 08 Oct 2018 16:35
Location: Australia
Contact:

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#73 Post by Madkine » 26 Mar 2022 09:23

Trucks are DLC's, you need to extract the DLC's to find the files.
WoT Profile
ATS Workshop

"never attribute to malice that which is adequately explained by stupidity"
al_batros
Posts: 175
Joined: 05 Jan 2022 16:50

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#74 Post by al_batros » 05 Aug 2022 08:27

Using drag and drop and waiting for a long time for the extraction of base.scs (the others are a bit faster) is boring - and better spent driving a truck ;-)
So I have created a (windows) batch file to do the extraction for all the *.scs files.
  • Place this batch file into the "target" directory (example: "C:\users\al_batros\Documents\ATS-unpack-1.45").
  • Put the scs_extractor.exe into the same directory.
  • Update or modify the "set origin ..." / "rem set origin ..." statements to reflect the location of the .scs files on your PC. (which is on my pc: "C:\Program Files (x86)\Steam\steamapps\common\American Truck Simulator"
  • From a cmd shell in the target directory run the batch file ("C:\Users\al_batros\Documents\ATS-unpack-1.45>unpack-ats.bat")
It will loop over all *.scs files in the origin (i.e. Steam) directory and extract them to the "current" directory.

Code: Select all

@echo off
set mypath=%cd%
set origin="C:\Program Files (x86)\Steam\steamapps\common\American Truck Simulator"
rem set origin="C:\Program Files (x86)\Steam\steamapps\common\Euro Truck Simulator 2"

@echo mypath: %mypath%

for %%f in (%origin%\*.scs) do (
  @echo "------------------------------------------------------------------"
  @echo archive: %%f
  echo scs_extractor "%%f" "%mypath%"
  scs_extractor "%%f" "%mypath%"
)
Sample output:

Code: Select all

"------------------------------------------------------------------"
archive: C:\Program Files (x86)\Steam\steamapps\common\American Truck Simulator\effect.scs
scs_extractor "C:\Program Files (x86)\Steam\steamapps\common\American Truck Simulator\effect.scs" "C:\Users\al_batros\Documents\ATS-unpack-1.45"
[hashfs] effect.scs: Mounted ok, 15749 entries

(update 11.08.2022)
If you only want to extract some files and not everything, here is a batch file for that. Just modify the list of *.scs files you want extracted.
Please note, in comparison to the batch file above, I had to remove the " around the 'set origin='(X) values!

Code: Select all

@echo off
set mypath=%cd%
rem set origin=C:\Program Files (x86)\Steam\steamapps\common\American Truck Simulator
set origin=C:\Program Files (x86)\Steam\steamapps\common\Euro Truck Simulator 2

@echo mypath: %mypath%

for %%f in (
base.scs
core.scs
def.scs
dlc_actros_tuning.scs
dlc_renault_t_tuning.scs
dlc_volvo_construction.scs
dlc_volvo_tuning_pack.scs
) do (
  @echo "------------------------------------------------------------------"
  @echo archive: %%f
  echo scs_extractor "%origin%\%%f" "%mypath%"
  scs_extractor "%origin%\%%f" "%mypath%"
)
Disclaimer: It worked for me. Use at your own risk. Check before running.
User avatar
Mariow12
Posts: 7
Joined: 18 Dec 2022 21:00

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#75 Post by Mariow12 » 06 Jan 2023 11:42

after some trial and error it worked out to get all base trucks in, but not shure now how to get a truck from a mod to unpack in it?
i'm looking to put an extra slot on a truck from a mod, more specific looking to put a slot for roofbar/lightbox on the Scania S NG Low Roof from the Hooklift mod.
Or does someone know about a better way besides doing it with blender?
User avatar
n4viii
Posts: 109
Joined: 28 Jun 2021 13:27

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#76 Post by n4viii » 29 Apr 2023 09:17

very hard for bigginers
User avatar
Noeny
Posts: 91
Joined: 07 Feb 2023 23:51
Contact:

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#77 Post by Noeny » 06 Jun 2023 15:58

Hi, you mentioned something with a macos path, does that mean that the extractor also works on mac? And if so, how do I create shortcuts with it?
Pronunciation of my name: Noo-nea(oo like what a cow says, ea like in the word tea)
BiNgeR482
Posts: 1
Joined: 07 Jun 2023 15:00

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#78 Post by BiNgeR482 » 07 Jun 2023 15:02

how to archive a file back so that the game doesn't swear at it?
User avatar
Madkine
Global moderator
Posts: 12376
Joined: 08 Oct 2018 16:35
Location: Australia
Contact:

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#79 Post by Madkine » 10 Jun 2023 03:11

You don't. You make a mod with just the files you need. That mod can be a .zip file (or just open folders if running locally)
WoT Profile
ATS Workshop

"never attribute to malice that which is adequately explained by stupidity"
chaoyangnz
Posts: 3
Joined: 10 Jun 2023 22:29

Re: [Guide] How to extract base.scs and def.scs - Efficiently

#80 Post by chaoyangnz » 10 Jun 2023 22:37

You can do the same actually by writing a small script to automate it
Post Reply

Return to “Modding Guides”

Who is online

Users browsing this forum: Tunico Ferreira and 5 guests