XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Sep 21, 2017 4:52 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Thu Oct 25, 2012 1:46 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
Code:
# Euro Truck Simulator 2 / Scania Truck Driving Simulator (SCS format)
#
# Written by Ekey (h4x0r)
# http://www.progamercity.net
#
# script for QuickBMS http://quickbms.aluigi.org
#
# For decrypt files with header 3nK use SCSSIITool

idstring "SCS#"
get VERSION long
idstring "CITY"
get FILES long

goto 0x1000

for i = 0 < FILES
    get HASH1 long
    get HASH2 long
    get OFFSET long
    get NULLS long
    get FLAG long
    get CRC long
    get SIZE long
    get ZSIZE long
    string NAME p= "%08X%08X" HASH1 HASH2
   
    if SIZE == ZSIZE
      log NAME OFFSET SIZE
    else
      clog NAME OFFSET ZSIZE SIZE
    endif
next i


Edited: Attached tool for decrypt files with header 3nK. They contained in base_cfg.scs , def.scs and locale.scs.

Code:
[Usage]
        SCSSIITool <InFILE> <OutFILE>

[Example]
        SCSSIITool 18C69F3DD9D3D2A2 18C69F3DD9D3D2A2.txt


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Last edited by Ekey on Sun Oct 28, 2012 5:16 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Thu Oct 25, 2012 9:42 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Tue Mar 01, 2011 9:34 pm
Posts: 273
Has thanked: 66 times
Have thanks: 179 times
Extractor
Распаковщик давно есть )

_________________
-= GP-team =-
Image


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sat Oct 27, 2012 1:36 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
Haoose wrote:
Extractor
Распаковщик давно есть )


This tool for unpack default ZIP.

Quote:
You may use the provided extractor to unpack the game archive to develop game mods. To repack the archive again use any standard ZIP utility after you've finished your mod.


Haoose wrote:
Распаковщик давно есть )

But there is no utility to decrypt :)

PS: I would appreciate if someone would find a function to generate the hash.


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sat Oct 27, 2012 7:36 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Tue Mar 01, 2011 9:34 pm
Posts: 273
Has thanked: 66 times
Have thanks: 179 times
Ekey wrote:
This tool for unpack default ZIP.

No. This tool for unpack SCS-files from game =)

_________________
-= GP-team =-
Image


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Oct 28, 2012 10:47 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
This extractor not work on Euro Truck Simulator 2. Anyway i found function for generate hash. They is very looooooooooooooong. Tool coded on MASM32 :D.
In Euro Truck Simulator 2 and in Scania Truck Driving Simulator hash algo same. So how found filenames. For Example :

Unpack def.scs. After unpack open any file and search filename path's like this:

Code:
   model_desc: "/model/sign/navigation/3hw_exit_far_d.pmd"
   model_coll: "/model/sign/navigation/3hw_exit_far_d.pmc"


Correct path (remove slash / from begin)

Code:
   model/sign/navigation/3hw_exit_far_d.pmd
   model/sign/navigation/3hw_exit_far_d.pmc


Example Screen

Collect filenames and share here :)


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Mon Oct 29, 2012 7:41 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Tue Mar 01, 2011 9:34 pm
Posts: 273
Has thanked: 66 times
Have thanks: 179 times
Ekey wrote:
This extractor not work on Euro Truck Simulator 2.

This extractor work on Euro Truck Simulator 2. :D
Image Image Image

_________________
-= GP-team =-
Image


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Mon Oct 29, 2012 1:38 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
For example.

Code:
[hashfs] locale.scs: Mounted ok, 90 entries
*** ERROR *** : Root directory not found, can not extract this archive!


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Dec 09, 2012 6:06 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
Download here


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 10, 2013 11:42 am 
Offline
VVIP member
VVIP member
User avatar

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 1925
Location: www.ZENHAX.com
Has thanked: 4 times
Have thanks: 630 times
just for reference, I have made a script supporting both SCS# and ZIP archives of the games developed by SCS Software:
http://aluigi.org/papers/bms/scsgames.bms

Why supporting also the ZIP archives?
Well, because some people modify their mods to look like being password protected and with the shrink compression so this script allows to extract also these "modified" mods.


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Wed Mar 13, 2013 10:51 pm 
Offline
advanced

Joined: Mon Nov 14, 2011 1:13 pm
Posts: 50
Has thanked: 1 time
Have thanks: 2 times
Any chance for script or tool for repacking the damn language .sii files?

I've spent my whole life trying to figure a way to repack one file, but that's too complicated for me, as I have never programmed before and everything was with little help from one my friend that have experience (little) with programming, but not programming like this and he doesn't know how he can do things like modifying game files, because the format of the files and because he doesn't have the game.

I appreciate any given help!

Thanks much. [roll]


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 17, 2013 4:32 pm 
Offline
VVIP member
VVIP member
User avatar

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 1925
Location: www.ZENHAX.com
Has thanked: 4 times
Have thanks: 630 times
the script is valid for repacking so you can do it directly in quickbms.
for more info take a look at section 3 of quickbms.txt
http://aluigi.org/papers/quickbms.txt


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 17, 2013 7:01 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
aluigi wrote:
the script is valid for repacking so you can do it directly in quickbms.
for more info take a look at section 3 of quickbms.txt
http://aluigi.org/papers/quickbms.txt

He was referring - encrypt language files back in SII format :)


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 17, 2013 7:37 pm 
Offline
VVIP member
VVIP member
User avatar

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 1925
Location: www.ZENHAX.com
Has thanked: 4 times
Have thanks: 630 times
ops :)


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 17, 2013 8:16 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 747 times
Well i try reimport unpacked files for test encrypted languages but get error.

Code:
QuickBMS generic files extractor and reimporter 0.5.17b
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org

- REIMPORT mode enabled!
- open input file d:\Euro Truck Simulator 2\locale.scs
- open script Euro Truck Simulator 2.bms
- set output folder d:\Euro Truck Simulator 2\locale

  offset   filesize   filename
------------------------------

Error: CMD_Encryption_func with negative lastcmd

Note that if both the scripts and your files are correct then it's possible
that the script needs a newer version of QuickBMS, in which case download it:

  http://aluigi.org/quickbms


Image


Top
 Profile  
 
 Post subject: Re: Euro Truck Simulator 2 (*.SCS, *.SII 3nK))
PostPosted: Sun Mar 17, 2013 8:38 pm 
Offline
advanced

Joined: Mon Nov 14, 2011 1:13 pm
Posts: 50
Has thanked: 1 time
Have thanks: 2 times
^ I was talking about the same.

Errors everywhere.

SCS Software :wmg:

Sometimes I think why SCS Software has done the files that way, but the answer is floating somewhere in their programmers' heads, and I can't understand what is it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: Doutor Gori and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group