Farming Simulator 2019 GAR Game Files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
dangeon
Posts: 1
Joined: Sat Nov 20, 2021 10:27 am

Re: Farming Simulator 2019 GAR Game Files

Post by dangeon »

thediabl0 wrote:
Rockstar94 wrote:Hi, I made a python script that unlocks .shapes files

I have no knowledge of python so please be understanding if I did something wrong.

https://www.youtube.com/watch?v=XXKZ-MGOPOc


Need update for work in FS22, Giants Soft. change the bits for FS22.


In truth, nothing has changed since FS19.
FS22 is openable with same mode of FS19.
thediabl0
Posts: 21
Joined: Wed Nov 18, 2015 4:04 pm

Re: Farming Simulator 2019 GAR Game Files

Post by thediabl0 »

dangeon wrote:
thediabl0 wrote:
Rockstar94 wrote:Hi, I made a python script that unlocks .shapes files

I have no knowledge of python so please be understanding if I did something wrong.

https://www.youtube.com/watch?v=XXKZ-MGOPOc


Need update for work in FS22, Giants Soft. change the bits for FS22.


In truth, nothing has changed since FS19.
FS22 is openable with same mode of FS19.


Well, it doesn't do anything to me when I try ...
Farmer_DD
Posts: 1
Joined: Wed Apr 06, 2022 11:11 am

Re: Farming Simulator 2019 GAR Game Files

Post by Farmer_DD »

Hello
did anyone get it working with the shapesUnlocker for FS22 .shapes? for me the shapesUnlocker works perfectly with FS19 shapes, with FS22 shapes I get an error message "Unknown .shapes file format".
or do i need a newer version of the script.bms? didn't find a newer one, i'm using 0.3.3.
I unpack a FS19.dlc with QuickBMS and load e.g. a Vehicle.i3d in Giants Editor, result empty transformgroups. I unlock the i3d.shapes,load again in GE. i3D is loaded and displayed.
I do the same with FS22.dlc -> "Unknown .shapes file format" in shapesUnlocker. What would have to be adjusted?
greetings Micha
LarryJD8822
Posts: 2
Joined: Fri Apr 08, 2022 2:04 pm

Re: Farming Simulator 2019 GAR Game Files

Post by LarryJD8822 »

That has nothing to do with QuickBMS, U can open FS22 DLC´s with QuickBMS, the only thing is , the python script to unlock the i3d.shapes wont work becouse , they(Giants Software) have changed the encryption for it , is also understandable because decrypted DLC's are available for download and visible to all,I wrote to the CEO(Stefan Geiger) in 2013 and told him that he should refrain from changing the encryption key for every DLC, I shouldn't have done that, since then QuickBMS always works but he now blocks the i3d.shapes , ergo we need an new (python) skript to unlock the new FS22 i3d.shapes , if needed i can send it

it would be nice if someone could help here
thediabl0
Posts: 21
Joined: Wed Nov 18, 2015 4:04 pm

Re: Farming Simulator 2019 GAR Game Files

Post by thediabl0 »

Shape Unlocker for FS22 is not ready yet?
LarryJD8822
Posts: 2
Joined: Fri Apr 08, 2022 2:04 pm

Re: Farming Simulator 2019 GAR Game Files

Post by LarryJD8822 »

exactly , we need someone who can handle it
Rockstar94
Posts: 7
Joined: Sat Nov 14, 2020 9:24 am

Re: Farming Simulator 2019 GAR Game Files

Post by Rockstar94 »

updated
thediabl0
Posts: 21
Joined: Wed Nov 18, 2015 4:04 pm

Re: Farming Simulator 2019 GAR Game Files

Post by thediabl0 »

Rockstar94 wrote:updated


WoW!! Thanks!! :D
Elch97
Posts: 1
Joined: Fri Jul 01, 2022 8:37 am

Re: Farming Simulator 2019 GAR Game Files

Post by Elch97 »

Hi, everyone
Last edited by Elch97 on Tue Nov 22, 2022 7:56 am, edited 1 time in total.
huben
Posts: 1
Joined: Wed Aug 24, 2022 4:02 pm

Re: Farming Simulator 2019 GAR Game Files

Post by huben »

Hi everyone,
I successfully extrcated the files and decompiled the lua bytecode.
I also found a newer branch of luajit-decompiler, wich doesn't produce errors when working with "false" or "null" as arguments (or whatever).
The new branch: https://gitlab.com/DorentuZ/luajit-decompiler

My goal is to modify the lua script, recompile it, encode it with l64 again and repack the GAR file.
To do so i used luajit and a little algorithm to reverse the l64 decoding -> "l64 encoding"
l64-encode can be found on my github: https://github.com/huben1337/l64-encode.
After that i used quickbms to reimport the files into the gar file.
But Farming Simulator, as i expected, finds my gamefiles are corrupted.
I tested if the files where reimported correctly, which they were.

So i have two theories on why that is the case:
1. the luajit compiler is not compatible

More Detail on the luajit compiling i did:
-i hardly know anything about luajit (pls help)
-the compiled files's header contains the path, you put as argument when excuting luajit on this lua file (why?)
-i changed this path in the header to match the original scripts one (e.g "dataS/scripts/...")
-after changing the path in bytecodes' headers were almost the same, expectsome small differences
-to verify if the bytecode (with manually changed header) was valid i tried to run the decompiler on it... errors everywhere
-i also tried to decompiled a file with unchanged header which worked like a charm

The original bytecode vs. mine.
Image Image


2. a checksum is used to verify the data isnt "corrupted"
If anyone has a idea about that, pls comment.
The only things i was able to find using ProcessMonitor were:
-The game writes to the file sometimes (unconsistant)
-it requests file information as can be seen here:
Image

So, if anyone can help, pls do. (u can add me on Discord: huben#8898)
Nonnus
Posts: 2
Joined: Sat Nov 19, 2022 12:36 pm

Re: Farming Simulator 2019 GAR Game Files

Post by Nonnus »

Hi,

There is a way put the unlockshapes.py working on shapes from FS22 DLC´s? Or if anyone knows other script or method to open the shapes please share with us.
knuuud
Posts: 2
Joined: Mon Nov 21, 2022 5:54 am

Re: Farming Simulator 2019 GAR Game Files

Post by knuuud »

The updated unlocker does not work on latest dlc files :) Needs a update :)
Nonnus
Posts: 2
Joined: Sat Nov 19, 2022 12:36 pm

Re: Farming Simulator 2019 GAR Game Files

Post by Nonnus »

The script is not mine a user from this forum pass to me on discord.
knuuud
Posts: 2
Joined: Mon Nov 21, 2022 5:54 am

Re: Farming Simulator 2019 GAR Game Files

Post by knuuud »

Nonnus wrote:The script is not mine a user from this forum pass to me on discord.
That one is the same as this:
Rockstar94 wrote:updated
JTDevil
Posts: 7
Joined: Thu Nov 24, 2022 7:47 am

Re: Farming Simulator 2019 GAR Game Files

Post by JTDevil »

A strange thing - I tried to unlock the shapes-files for the ClaasSaddleTrackPack.
I've managed to unlock the shapes-file for the xerion4000 - but not the shapes-files for the optiject8, saddletracktankers or the semitrailedtrailer.
That's a bit strange?
JTDevil
Posts: 7
Joined: Thu Nov 24, 2022 7:47 am

Re: Farming Simulator 2019 GAR Game Files

Post by JTDevil »

JTDevil wrote:A strange thing - I tried to unlock the shapes-files for the ClaasSaddleTrackPack.
I've managed to unlock the shapes-file for the xerion4000 - but not the shapes-files for the optiject8, saddletracktankers or the semitrailedtrailer.
That's a bit strange?
I did something wrong / there was something wrong with my shapesUnlocker - a new copy of it and it works! :)
https://zenhax.com/viewtopic.php?f=9&t=17684
JTDevil
Posts: 7
Joined: Thu Nov 24, 2022 7:47 am

Re: Farming Simulator 2019 GAR Game Files

Post by JTDevil »

Hi,

I have a bit trouble with the luajit decompiler.

l64 decoding seems to work fine.

My folder structure:
Folder with all my decoded scripts from l64 decoding: L:\ModTemp\DLC_Opener\LUA_works\l64_output\scripts
Folder with luajit decompiler script: L:\ModTemp\DLC_Opener\LUA_works\luajit-decompiler-master
Folder to output the decompiled scripts from luajit decompiler: L:\ModTemp\DLC_Opener\LUA_works\luajit_output\scripts

Here is the string I run and the error message:

Code: Select all

PS L:\ModTemp\DLC_Opener\LUA_works> python3 ./luajit-decompiler-master/main.py --recursive ./l64_output/scripts --dir_out ./luajit_output/scripts --catch_asserts

--; Exception in l64_output\scripts\AdditionalGuiProfiles.lua
'NoneType' object has no attribute 'debug'
I'm using the branch of luajit-decompiler that huben mentions in a post further up here:
huben wrote:Hi everyone,
I successfully extrcated the files and decompiled the lua bytecode.
I also found a newer branch of luajit-decompiler, wich doesn't produce errors when working with "false" or "null" as arguments (or whatever).
The new branch: https://gitlab.com/DorentuZ/luajit-decompiler
Any suggestions on what I'm doing wrong here?
JTDevil
Posts: 7
Joined: Thu Nov 24, 2022 7:47 am

Re: Farming Simulator 2019 GAR Game Files

Post by JTDevil »

JTDevil wrote:Hi,

I have a bit trouble with the luajit decompiler.

l64 decoding seems to work fine.

My folder structure:
Folder with all my decoded scripts from l64 decoding: L:\ModTemp\DLC_Opener\LUA_works\l64_output\scripts
Folder with luajit decompiler script: L:\ModTemp\DLC_Opener\LUA_works\luajit-decompiler-master
Folder to output the decompiled scripts from luajit decompiler: L:\ModTemp\DLC_Opener\LUA_works\luajit_output\scripts

Here is the string I run and the error message:

Code: Select all

PS L:\ModTemp\DLC_Opener\LUA_works> python3 ./luajit-decompiler-master/main.py --recursive ./l64_output/scripts --dir_out ./luajit_output/scripts --catch_asserts

--; Exception in l64_output\scripts\AdditionalGuiProfiles.lua
'NoneType' object has no attribute 'debug'
I'm using the branch of luajit-decompiler that huben mentions in a post further up here:
huben wrote:Hi everyone,
I successfully extrcated the files and decompiled the lua bytecode.
I also found a newer branch of luajit-decompiler, wich doesn't produce errors when working with "false" or "null" as arguments (or whatever).
The new branch: https://gitlab.com/DorentuZ/luajit-decompiler
Any suggestions on what I'm doing wrong here?
The problem was the luajit decompiler.

Huben found this for me, that works like a charm! :)
https://github.com/Aussiemon/ljd/
bosl79
Posts: 1
Joined: Thu Dec 22, 2022 3:48 pm

Farming Simulator 2022 DLC open

Post by bosl79 »

Hello,
can someone help me please to get the right .bmc skript to open ls22 a giants farming simulator 2022 dlc