[TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE December 24, 2023)

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.
Post Reply
User avatar
Drive Safely
Posts: 2844
Joined: 20 Jun 2015 06:17
Contact:

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#61 Post by Drive Safely » 29 Mar 2020 05:13

I'd really like a tool that would let me only extract the sound folder from base.scs. It takes so long to extract the whole contents of base.scs and I don't need the other folders.
Is this possible with this tool? @madman271
madman271
Posts: 36
Joined: 18 May 2019 11:25

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#62 Post by madman271 » 29 Mar 2020 10:59

eshvos wrote: 28 Mar 2020 18:00 (very barebones, you could add variables for the paths, etc.; everyone is welcome to freely use this batch script snippet)
Thank you for the batch snippet. Consider to add menus with prompt to handle various tasks. ;)

eshvos wrote: 28 Mar 2020 18:00 Btw.: Is it possible to disable the output of currently processed files to the command line? I've tried -q, but it still displays every single file. I think this causes a considerable slowdown, since printing text is usually a very time-consuming operation.
You can redirect the output to null device if you want to suppress any outputs, for example:

Code: Select all

sxc def.scs -d def/vehicle/truck -o .\extract -qe > nul
Catch the batch ERRORLEVEL var, when returns other than 0 indicates errors.

Drive Safely wrote: 29 Mar 2020 05:13 I'd really like a tool that would let me only extract the sound folder from base.scs. It takes so long to extract the whole contents of base.scs and I don't need the other folders.
Is this possible with this tool? @madman271
You can do that with the following command:

Code: Select all

sxc base.scs -d sound -o .\extract
If you want to extract JUST the OggVorbis audio files, use the following command:

Code: Select all

sxc base.scs -d sound -f *.ogg -o .\extract
If you want to extract JUST the OggVorbis audio files of truck internal sound, use the following command:

Code: Select all

sxc base.scs -d sound/truck -f */int/*.ogg -o .\extract
traveler
Posts: 2
Joined: 10 Apr 2020 08:40

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#66 Post by traveler » 10 Apr 2020 08:46

Has anyone figured out how to extract RusMap with this tool? Seems like I have to add every single missing file to namelist_stuff.txt manually.

I used the script from @eshvos, extracted the ETS game files and the RusMap definition file first to have enough input for the hash database. I also used your pathfinder tool to find missing paths, but there are still more than 70 000 unresolved files left and it is impossible to extract all the paths manually.

If you try to extract these unresolved files with D.A.R.T. you receive CITY... files, which have exactly the same size as the *.scs archive (-> zip bomb behaviour).

RusMap-model_v2.0.scs
RusMap-model2_v2.0.scs
Sklander
Posts: 1
Joined: 14 Apr 2020 12:19

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 10, 2019)

#67 Post by Sklander » 14 Apr 2020 12:24

madman271 wrote: 11 Dec 2019 02:25 @Kobalt Make sure to save the dblist.txt as ASCII or ANSI encoding. Unicode or UTF8/UTF16 won't work. Simply open that dblist.txt file again with Windows Notepad, choose File -> Save As, and next to "Encoding" dropdown list, choose ANSI. If still doesn't work, PM me along with the attached dblist.txt file.
I'm having the same problem and it won't work for me. Can you help me please?

EDIT: I've found the issue. It was failing because I was using a foreign character in the directory's name where my SXC folder was located. Weird error, but I'm glad I got it to work now.
Last edited by Sklander on 14 Apr 2020 12:35, edited 1 time in total.
User avatar
salessio2
Posts: 1201
Joined: 26 May 2015 23:24
Location: Italy
Contact:

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#68 Post by salessio2 » 26 Apr 2020 22:51

very nice work.

I have some problem, I use the installer bat, I run not in Admin mod, and I followed the guide:

Code: Select all

Is this your Euro Truck Simulator 2 installation directory?
C:\Program Files (x86)\Steam\steamapps\common\Euro Truck Simulator 2
Press Enter to confirm, or type n and press enter to select a different directory:n


---- CHECKING FILES ----

1/5 "base.scs" - Passed
2/5 "core.scs" - Passed
3/5 "def.scs" - Passed
4/5 "effect.scs" - Passed
5/5 "locale.scs" - Passed
All checks successfully passed!


---- LOADING FILES ----

SXC Extractor (x86), version 1.19.12.30
Created (c) 2019, by Madman
See 'readme.html' and 'license.txt' for details.

automat/00/00031641c206744b.mat
automat/00/000aeb74f1fbbb0c.mat
automat/00/0012c747649c6737.mat
automat/00/0014c4014d0e46f8.mat
automat/00/001b2f00ce0a0bf6.mat
automat/00/001d27fea3ae6f72.mat
automat/00/001e83885c23999b.mat
automat/00/002314ba6e497a3e.mat
**************
cale/uk_uk/local.override.sii
locale/uk_uk/local.sii
locale/uk_uk/mails.sii
locale/vi_vn/local.override.sii
locale/vi_vn/local.sii
locale/vi_vn/mails.sii
locale/zh_cn/local.override.sii
locale/zh_cn/local.sii
locale/zh_cn/mails.sii
locale/zh_tw/local.override.sii
locale/zh_tw/local.sii
locale/zh_tw/mails.sii
locale/autodetect.conf
locale/locale.rev


Total 129 items listed. Took 0,011 seconds.
All files loaded successfully!


---- CREATING DATABASE ----

Database index created successfully!
SXC Extractor (x86), version 1.19.12.30
Created (c) 2019, by Madman
See 'readme.html' and 'license.txt' for details.

Error: File not found -> D:\Program   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Which file?
Hash database created successfully!


---- INSTALLED SUCCESSFULLY ----

SXC is installed successfully!
Please run extract.bat in order to unpack an .scs file.
Thank you for using this installer!

Copyright (c) 2019 Luuk Faasse (luukf8)
Premere un tasto per continuare . . .

When I launch Extract bat I've got this error:

Code: Select all

SXC is not correctly installed!
Please run install.bat first!
Premere un tasto per continuare . . .
How can I solve this problem?


EDIT: it was a problem from folder name
User avatar
salessio2
Posts: 1201
Joined: 26 May 2015 23:24
Location: Italy
Contact:

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#69 Post by salessio2 » 28 Apr 2020 14:45

Hi all,

I've got some problem with extract the mod with this command:

PS D:\we\sxc-01191230> .\sxc giuseppino.scs -lq -af

PS D:\we\sxc-01191230> .\sxc giuseppino.scs -x -f *.pmd -cc D:\we\sxc-01191230\giuseppino

Code: Select all

SXC Extractor (x86), version 1.19.12.30
Created (c) 2019, by Madman
See 'readme.html' and 'license.txt' for details.

01B5AEBC98E0BA14.pmd     0,8 kb (comp: 58%, 0,6 kb)
086024DD248AC1A2.pmd     1,4 kb (comp: 28%, 0,8 kb)
0BEE9BD889E2F366.pmd     0,8 kb (comp: 69%, 0,7 kb)
0CCABC55687DB661.pmd     1,4 kb (comp: 28%, 0,8 kb)
0DD3219D408FF687.pmd     0,7 kb (comp: 69%, 0,6 kb)
10EE8B57B05EC1DF.pmd     0,9 kb (comp: 48%, 0,7 kb)
10F3309434808A4F.pmd     0,7 kb (comp: 69%, 0,6 kb)
1DEC3B43935308D6.pmd     0,9 kb (comp: 40%, 0,7 kb)
1FF774FF2A12A93C.pmd     0,9 kb (comp: 45%, 0,7 kb)
25444D621A5BE5CE.pmd     0,7 kb (comp: 69%, 0,6 kb)
2C2D233E7DDCC802.pmd     0,8 kb (comp: 47%, 0,6 kb)
2D888A97041E00AF.pmd     0,7 kb (comp: 69%, 0,6 kb)
3221596F1AAEABD9.pmd     0,7 kb (comp: 56%, 0,6 kb)
36545816222036C0.pmd     0,7 kb (comp: 58%, 0,6 kb)
38204BC8DE7648FE.pmd     0,7 kb (comp: 62%, 0,6 kb)
397B8BD4110EFAEF.pmd     0,7 kb (comp: 66%, 0,6 kb)
3B3A4424B8DD6709.pmd     1,3 kb (comp: 30%, 0,7 kb)
3BA71F367D94605E.pmd     0,9 kb (comp: 44%, 0,7 kb)
3DCB628D4AD4EADB.pmd     0,7 kb (comp: 57%, 0,6 kb)
4005310DA3AA81B8.pmd     1,3 kb (comp: 30%, 0,7 kb)
4305FA3EA97EBF39.pmd     1,3 kb (comp: 25%, 0,7 kb)
469F1BD464E389F9.pmd     2,9 kb (comp: 16%, 0,9 kb)
47425C20410B07C1.pmd     3,6 kb (comp: 20%, 1,1 kb)
4D8667024C76CFC5.pmd     0,7 kb (comp: 62%, 0,6 kb)
50261F3BE6ACBD04.pmd     0,7 kb (comp: 61%, 0,6 kb)
52B45549696EC948.pmd     0,7 kb (comp: 68%, 0,6 kb)
547A8D3F4595E441.pmd     0,7 kb (comp: 68%, 0,6 kb)
5B906AD0C9B11E48.pmd     0,7 kb (comp: 68%, 0,6 kb)
5CAFB59A770BC31E.pmd     0,9 kb (comp: 46%, 0,7 kb)
628178331B6BF322.pmd     0,9 kb (comp: 39%, 0,7 kb)
62CE918D014E7083.pmd     0,8 kb (comp: 58%, 0,6 kb)
6891CBC2C1A3B246.pmd     0,7 kb (comp: 69%, 0,6 kb)
68F07295BCD59D22.pmd     0,9 kb (comp: 40%, 0,7 kb)
6B8C59B0D813DC9C.pmd     7,7 kb (comp: 12%, 1,4 kb)
6DAF1A7513A7AA0E.pmd     1,5 kb (comp: 29%, 0,8 kb)
6E77B4A02F05C4B2.pmd     0,9 kb (comp: 44%, 0,7 kb)
76AD55473AB0020A.pmd     1,2 kb (comp: 34%, 0,7 kb)
79A2904020DACF09.pmd     0,7 kb (comp: 68%, 0,6 kb)
7B9D192A288D6A2C.pmd     0,9 kb (comp: 45%, 0,7 kb)
7C047E2115195795.pmd     0,7 kb (comp: 68%, 0,6 kb)
80DE3A7FEF78D22E.pmd     1,4 kb (comp: 25%, 0,7 kb)
8390E16E143417FD.pmd     0,9 kb (comp: 46%, 0,7 kb)
85A15D15FDC0ACD8.pmd     1,2 kb (comp: 33%, 0,7 kb)
87895E558A370D32.pmd     0,7 kb (comp: 67%, 0,6 kb)
8950B39783D01FFD.pmd     0,8 kb (comp: 47%, 0,6 kb)
8A9E073AAA14F30E.pmd     0,8 kb (comp: 44%, 0,7 kb)
902EA3E5F44F0C7E.pmd     0,7 kb (comp: 65%, 0,6 kb)
9559F21337963FB4.pmd     0,9 kb (comp: 43%, 0,7 kb)
9D2CA26C9320EEDE.pmd     0,7 kb (comp: 56%, 0,6 kb)
9FCA5118BF7DFD33.pmd     0,7 kb (comp: 62%, 0,6 kb)
A0E784BC9704F3D4.pmd     0,7 kb (comp: 63%, 0,6 kb)
A249B5CC565C0DD4.pmd     0,7 kb (comp: 66%, 0,6 kb)
AB22F0E4A8CCD7E1.pmd     0,7 kb (comp: 56%, 0,6 kb)
B01611C8051DFBA0.pmd     0,7 kb (comp: 62%, 0,6 kb)
B27FAF58F7EDAD9D.pmd     0,7 kb (comp: 69%, 0,6 kb)
B8A71F166ED8FBCE.pmd     0,7 kb (comp: 62%, 0,6 kb)
B8F11D3BFAEDD3F8.pmd     0,7 kb (comp: 69%, 0,6 kb)
BA972FF2236C4946.pmd     0,9 kb (comp: 45%, 0,7 kb)
BB9C1D51236DD030.pmd     0,7 kb (comp: 69%, 0,6 kb)
BC9B36CE53067478.pmd     0,9 kb (comp: 44%, 0,7 kb)
BDBD09440C68D05C.pmd     0,8 kb (comp: 48%, 0,7 kb)
BE3134F664BF51CB.pmd     0,7 kb (comp: 69%, 0,6 kb)
C0449E70DBF0FED7.pmd     0,8 kb (comp: 44%, 0,6 kb)
C1AA74CB303D5182.pmd     0,7 kb (comp: 64%, 0,7 kb)
C3B4AC53702EAEC9.pmd     1,6 kb (comp: 28%, 0,8 kb)
CD8968FAD1112158.pmd     0,8 kb (comp: 48%, 0,7 kb)
D100E8FFF99227D7.pmd     0,8 kb (comp: 48%, 0,7 kb)
D5DF9D1F393E8FA1.pmd     0,7 kb (comp: 69%, 0,6 kb)
D60E6E4EE9ECFBF5.pmd     0,7 kb (comp: 68%, 0,6 kb)
D6C3FBBE886851E3.pmd     0,9 kb (comp: 44%, 0,7 kb)
D7993619A864A92F.pmd     0,7 kb (comp: 57%, 0,6 kb)
D8E9805CED7AA182.pmd     0,7 kb (comp: 62%, 0,6 kb)
D9E6ABE28195EDD9.pmd     0,9 kb (comp: 44%, 0,7 kb)
DB501259847EF292.pmd     0,7 kb (comp: 62%, 0,6 kb)
DC327DA9FE91CE68.pmd     1,3 kb (comp: 24%, 0,7 kb)
DE2B09901F38BF4C.pmd     0,7 kb (comp: 62%, 0,6 kb)
E449D6CC99D67A75.pmd     0,8 kb (comp: 48%, 0,7 kb)
E69F0FCFBEE86E78.pmd     0,7 kb (comp: 69%, 0,6 kb)
E81B8445312AE9D5.pmd     0,8 kb (comp: 58%, 0,6 kb)
E8E1DD61C05E0AB4.pmd     0,8 kb (comp: 48%, 0,6 kb)
E9138F8F0639D3E2.pmd     0,9 kb (comp: 46%, 0,7 kb)
EBD617520DA941A7.pmd     0,7 kb (comp: 69%, 0,6 kb)
EE21C04BF0D12C41.pmd     0,7 kb (comp: 69%, 0,6 kb)
EF9DB2B114AA3149.pmd     0,9 kb (comp: 44%, 0,7 kb)
F1518F345811090D.pmd     0,7 kb (comp: 57%, 0,6 kb)
F2CCCA477C044399.pmd     0,7 kb (comp: 58%, 0,6 kb)
F333751A00E7D3C5.pmd     1,2 kb (comp: 33%, 0,7 kb)
F3DDACC8E991560E.pmd     0,9 kb (comp: 48%, 0,7 kb)
F43F8A1BE94F51C2.pmd     0,7 kb (comp: 66%, 0,6 kb)
F764080B7E900842.pmd     0,9 kb (comp: 46%, 0,7 kb)
F82F19339106C932.pmd     7,7 kb (comp: 12%, 1,4 kb)
F8D68FB7D543DE7A.pmd     0,7 kb (comp: 66%, 0,6 kb)
FB207A13A3913975.pmd     0,8 kb (comp: 47%, 0,6 kb)
FB3407A541B4A20B.pmd     0,7 kb (comp: 69%, 0,6 kb)
FE406ABFF26863B9.pmd     0,7 kb (comp: 66%, 0,6 kb)
FF697599A15198B1.pmd     3,2 kb (comp: 15%, 0,9 kb)
FFB530D85542EE6E.pmd     1,2 kb (comp: 32%, 0,7 kb)

Total 97 items listed. Took 0,034 seconds.
Press ESC to quit..
but in "D:\we\sxc-01191230\giuseppino" there is nothing, how can i fix it?
madman271
Posts: 36
Joined: 18 May 2019 11:25

Re: [TOOL] SXC Extractor - Flexible Game Data/Mod File Extraction Tool (UPDATE Dec 30, 2019)

#70 Post by madman271 » 29 Apr 2020 15:21

@salessio2:

Code: Select all

Error: File not found -> D:\Program   <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Which file?
The .BAT file should expect for long-filenames then enclosing any argument pointing to path/filename with double-quotes. Unfortunately you didn't provide the batch file so we can fix it, but you can try edit it by yourself and put double-quote in arguments that pointing to filename. For example:

Code: Select all

sxc "%1" -o "%2"

From your last post, you'll get nothing in target directory because the entered command line was working in "list mode" and the -cc parameter is not known. To actually writes all intended files to designated directory, use -o (preserve existing files) or -ov (overwrite existing files). For example:

Code: Select all

PS D:\we\sxc-01191230> .\sxc "giuseppino.scs" -x -f "*.pmd" -o "D:\we\sxc-01191230\giuseppino"
--or--
PS D:\we\sxc-01191230> .\sxc "giuseppino.scs" -x -f "*.pmd" -ov "D:\we\sxc-01191230\giuseppino"

Hope these answering your question.
Post Reply

Return to “Others”

Who is online

Users browsing this forum: No registered users and 13 guests