ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Dec 12, 2018 11:06 pm

All times are UTC




Post new topic  Reply to topic  [ 18 posts ] 
Author Message
PostPosted: Fri Nov 23, 2018 9:09 pm 

Joined: Fri Nov 23, 2018 9:06 pm
Posts: 2
Hi,

i tried to open the GAR Files of FarmingSim 2019 with the old Script. Dosnt work anymore like FS2017.

"- the script needs to load a pre-compiled function from the dll or code
MEMORY_FILE3
do you want to continue with this and any other requested dll/code (y/N)?
y
- library MEMORY_FILE3 loaded at address 17C8FE18
- function found at offset 6FA4B695
Error: unknown key, contact me "

Any Solution?

Greetings
JG


Top
   
PostPosted: Sat Nov 24, 2018 6:15 pm 

Joined: Sat Nov 24, 2018 6:10 pm
Posts: 4
Hi,

To add some more noise to your post.
I'm also interested in being able to unpack the new GAR files.

Kind Regards
Haverdaden


Top
   
PostPosted: Sat Nov 24, 2018 8:22 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
Just tried with the gar file of the FS19 patch and it works correctly.

Upload the gar file.


Top
   
PostPosted: Sat Nov 24, 2018 8:53 pm 

Joined: Sat Nov 24, 2018 6:10 pm
Posts: 4
Strange, using Steam version btw, if that could affect it somehow.

Two files: dataS.gar and dataS2.gar
https://ufile.io/dvbn5
https://ufile.io/6rd5q

On the dataS.gar for example:
- the script needs to load a pre-compiled function from the dll or code
MEMORY_FILE3
do you want to continue with this and any other requested dll/code (y/N)?
y
- library MEMORY_FILE3 loaded at address 14E5E9E0
- function found at offset 6FA4B695
Error: unknown key, contact me

- 0 files found in 3 seconds
coverage file 0 0% 53 21659648 . offset 00000070
coverage file -1 50% 8 16 . offset 00000008
coverage file -3 0% 0 317952 . offset 00000000

Press ENTER or close the window to quit


Top
   
PostPosted: Sat Nov 24, 2018 9:49 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
Apparently it's a bug of quickbms 0.9.1 because 0.9.0 works well, I will investigate.
0.9.0 is still available here:
http://aluigi.org/papers/quickbms_0.9.0.zip


Top
   
PostPosted: Sat Nov 24, 2018 9:55 pm 

Joined: Sat Nov 24, 2018 6:10 pm
Posts: 4
Awesome, now it works just fine. Thanks!


Top
   
PostPosted: Sun Nov 25, 2018 9:23 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
Thanks to you for the feedback.
This bug in 0.9.1 was difficult to spot because it required a rare combo of instructions used only in few scripts... yeah really very lucky to fall on it just now that I planned to release a new version today :)


Top
   
PostPosted: Sun Nov 25, 2018 10:46 am 

Joined: Sat Nov 24, 2018 6:10 pm
Posts: 4
Haha, Glad our problem was of use. Thanks for the useful tool.


Top
   
PostPosted: Sun Nov 25, 2018 10:59 am 

Joined: Fri Nov 23, 2018 9:06 pm
Posts: 2
Okay!

Worked fine with the older version!

Thanks


Top
   
PostPosted: Wed Dec 05, 2018 10:49 am 

Joined: Wed Dec 05, 2018 10:48 am
Posts: 2
Hi all!

I've also tried, but I cannot get it to work. I'm on a Mac so using QuickBMS via command line, but when I run it I keep getting an error. Please see the log file attached below.

What am I doing wrong?

Code:
- the script needs to load a pre-compiled function from the dll or code
  MEMORY_FILE3
  do you want to continue with this and any other requested dll/code (y/N)?
  y
- library MEMORY_FILE3 loaded at address 0x10f45a000

Error: the input library is handled as raw data so can't have a function name

Last script line before the error or that produced the error:
  76  calldll MEMORY_FILE3 defarm cdecl RET "#INPUT#" XSIZE "#INPUT#" KEY KEY2 KEY3 KEY4


Top
   
PostPosted: Wed Dec 05, 2018 12:55 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
The code works only on Windows because it's precompiled code dumped directly from the game.


Top
   
PostPosted: Wed Dec 05, 2018 4:03 pm 

Joined: Wed Dec 05, 2018 10:48 am
Posts: 2
aluigi wrote:
The code works only on Windows because it's precompiled code dumped directly from the game.


Clear! Thank you for your very swift response.


Top
   
PostPosted: Thu Dec 06, 2018 2:24 pm 

Joined: Thu Dec 06, 2018 2:21 pm
Posts: 6
There seems to be another issue with extracted files: the last few bytes are staying as extended ASCII. I extracted dataS.gar and I've noticed several ASCII files (XML, I3D) having their closing tags partially replaced like this: </mo¥LZ1­Ȉ


Top
   
PostPosted: Fri Dec 07, 2018 9:13 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
Interesting. It's confirmed and it seems a bug in quickbms or in the script that I have to investigate.
Quickbms 0.7.7 is the only version that gives a correct output. Those after 0.7.7 gives the same corrupted ending.

I will check it when I will have some time (and desire).


Top
   
PostPosted: Fri Dec 07, 2018 11:54 pm 

Joined: Thu Dec 06, 2018 2:21 pm
Posts: 6
OK, thanks. Farming Simulator 19 gives an error when starting with the extracted GAR files vs. the dataS.gar and dataS2.gar and I really don't want to have to go through 2500 files to fix their closing tags. Also, because the L32/L64 files are encrypted(?), I don't know if they're getting corrupted too (and won't be able to fix them if so). If I use QuickBMS 0.7.7 will that have other issues since it's an old version?


Top
   
PostPosted: Sun Dec 09, 2018 5:10 am 

Joined: Thu Dec 06, 2018 2:21 pm
Posts: 6
OK, I went through all ASCII files and fixed their closing tags but if I remove/rename dataS.gar and/or dataS2.gar (so the game uses the directories instead), I get this:
Code:
Error: Data files corrupt. Please reinstall application.


Using Process Monitor, I see this:
Code:
8:51:33.2198097 PM   FarmingSimulator2019Game.exe   CloseFile   C:\Users\EEP\Documents\My Games\FarmingSimulator2019\LOG.TXT      SUCCESS   File System   
8:51:33.2198843 PM   FarmingSimulator2019Game.exe   CreateFile   I:\      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2199141 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games.gar   Read Metadata   NO SUCH FILE   File System   Filter: games.gar
8:51:33.2199381 PM   FarmingSimulator2019Game.exe   CloseFile   I:\      SUCCESS   File System   
8:51:33.2199686 PM   FarmingSimulator2019Game.exe   CreateFile   I:\      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2199931 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games.dlc   Read Metadata   NO SUCH FILE   File System   Filter: games.dlc
8:51:33.2200119 PM   FarmingSimulator2019Game.exe   CloseFile   I:\      SUCCESS   File System   
8:51:33.2200493 PM   FarmingSimulator2019Game.exe   CreateFile   I:\      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2200830 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games.zip   Read Metadata   NO SUCH FILE   File System   Filter: games.zip
8:51:33.2201011 PM   FarmingSimulator2019Game.exe   CloseFile   I:\      SUCCESS   File System   
8:51:33.2201274 PM   FarmingSimulator2019Game.exe   CreateFile   I:\      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2201491 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games.pak   Read Metadata   NO SUCH FILE   File System   Filter: games.pak
8:51:33.2201663 PM   FarmingSimulator2019Game.exe   CloseFile   I:\      SUCCESS   File System   
8:51:33.2202123 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2202377 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19.gar   Read Metadata   NO SUCH FILE   File System   Filter: Farming Simulator 19.gar
8:51:33.2202582 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games      SUCCESS   File System   
8:51:33.2203038 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2203270 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19.dlc   Read Metadata   NO SUCH FILE   File System   Filter: Farming Simulator 19.dlc
8:51:33.2203454 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games      SUCCESS   File System   
8:51:33.2203890 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2204118 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19.zip   Read Metadata   NO SUCH FILE   File System   Filter: Farming Simulator 19.zip
8:51:33.2204302 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games      SUCCESS   File System   
8:51:33.2204732 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2204958 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19.pak   Read Metadata   NO SUCH FILE   File System   Filter: Farming Simulator 19.pak
8:51:33.2205136 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games      SUCCESS   File System   
8:51:33.2205578 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2205815 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19\dataS.gar   Read Metadata   NO SUCH FILE   File System   Filter: dataS.gar
8:51:33.2206008 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19      SUCCESS   File System   
8:51:33.2206456 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2206684 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19\dataS.dlc   Read Metadata   NO SUCH FILE   File System   Filter: dataS.dlc
8:51:33.2206856 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19      SUCCESS   File System   
8:51:33.2207295 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2207523 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19\dataS.zip   Read Metadata   NO SUCH FILE   File System   Filter: dataS.zip
8:51:33.2207696 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19      SUCCESS   File System   
8:51:33.2208132 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19      SUCCESS   File System   Desired Access: Read Data/List Directory, Synchronize, Disposition: Open, Options: Directory, Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened
8:51:33.2208357 PM   FarmingSimulator2019Game.exe   QueryDirectory   I:\games\Farming Simulator 19\dataS.pak   Read Metadata   NO SUCH FILE   File System   Filter: dataS.pak
8:51:33.2208527 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19      SUCCESS   File System   
8:51:33.2208992 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19\dataS\settings.xml      SUCCESS   File System   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
8:51:33.2209396 PM   FarmingSimulator2019Game.exe   FileSystemControl   I:\games\Farming Simulator 19\dataS\settings.xml   Read Metadata   SUCCESS   File System   Control: FSCTL_READ_FILE_USN_DATA
8:51:33.2209583 PM   FarmingSimulator2019Game.exe   QueryStandardInformationFile   I:\games\Farming Simulator 19\dataS\settings.xml   Read Metadata   SUCCESS   File System   AllocationSize: 4,096, EndOfFile: 1,124, NumberOfLinks: 1, DeletePending: False, Directory: False
8:51:33.2209662 PM   FarmingSimulator2019Game.exe   ReadFile   I:\games\Farming Simulator 19\dataS\settings.xml   Read   SUCCESS   File System   Offset: 0, Length: 1,124, Priority: Normal
8:51:33.2209963 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19\dataS\settings.xml      SUCCESS   File System   
8:51:33.2210876 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19\dataS.gar      NAME NOT FOUND   File System   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a
8:51:33.2211388 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19\crc_files.xml      SUCCESS   File System   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a, OpenResult: Opened
8:51:33.2211777 PM   FarmingSimulator2019Game.exe   FileSystemControl   I:\games\Farming Simulator 19\CRC_FILES.XML   Read Metadata   SUCCESS   File System   Control: FSCTL_READ_FILE_USN_DATA
8:51:33.2211965 PM   FarmingSimulator2019Game.exe   QueryStandardInformationFile   I:\games\Farming Simulator 19\CRC_FILES.XML   Read Metadata   SUCCESS   File System   AllocationSize: 192, EndOfFile: 186, NumberOfLinks: 1, DeletePending: False, Directory: False
8:51:33.2212035 PM   FarmingSimulator2019Game.exe   ReadFile   I:\games\Farming Simulator 19\CRC_FILES.XML   Read   SUCCESS   File System   Offset: 0, Length: 186, Priority: Normal
8:51:33.2212219 PM   FarmingSimulator2019Game.exe   CloseFile   I:\games\Farming Simulator 19\CRC_FILES.XML      SUCCESS   File System   
8:51:33.2212655 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19\data\maps\map01.i3d      NAME NOT FOUND   File System   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a
8:51:33.2213302 PM   FarmingSimulator2019Game.exe   CreateFile   I:\games\Farming Simulator 19\data\maps\map01\map01_dem.png      PATH NOT FOUND   File System   Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Read, AllocationSize: n/a
8:51:33.2217099 PM   FarmingSimulator2019Game.exe   CreateFile   C:\Users\EEP\Documents\My Games\FarmingSimulator2019\log.txt      SUCCESS   File System   Desired Access: Generic Write, Read Attributes, Disposition: OpenIf, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: N, ShareMode: Write, AllocationSize: 0, OpenResult: Opened
8:51:33.2217398 PM   FarmingSimulator2019Game.exe   QueryStandardInformationFile   C:\Users\EEP\Documents\My Games\FarmingSimulator2019\LOG.TXT   Read Metadata   SUCCESS   File System   AllocationSize: 114,688, EndOfFile: 112,105, NumberOfLinks: 1, DeletePending: False, Directory: False


It doesn't find dataS.gar but then finds crc_files.xml which lists 2 non-existant files:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<files>
   <file filename="data/maps/map01.i3d" crc64="" />
   <file filename="data/maps/map01/map01_dem.png" crc64="" />
</files>


If I manually create them (copied/renamed from other maps), the game gives a CRC error:
Code:
Error: CRC64 files check failed. Data files are changed. Please reinstall application. Continue anyway?


I do but then it gives the first error again:
Code:
Error: Data files corrupt. Please reinstall application.


The log.txt just says
Code:
Error: CRC64 files check failed 'data/maps/map01.i3d'


Or this if it can't find map01.i3d (accidentally put it in data/maps/map01):
Code:
Error: CRC64 files check failed 'data/maps/map01/map01_dem.png'


Not sure if it's some other file causing the problem or what.


Top
   
PostPosted: Sun Dec 09, 2018 10:04 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9459
Quickbms 0.7.7 was a stable version and you have no problems to use it for the files of this game:
http://aluigi.org/papers/quickbms_0.7.7.zip


Top
   
PostPosted: Mon Dec 10, 2018 10:48 am 

Joined: Thu Dec 06, 2018 2:21 pm
Posts: 6
Thanks. The extracted files look OK but I still get the same errors so something else is getting corrupt or the game doesn't like the dataS.gar files extracted for some reason.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 18 posts ] 

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited