Farming Simulator17 L32/L64 data

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Bruse
Posts: 4
Joined: Sun Apr 16, 2017 11:40 am

Farming Simulator17 L32/L64 data

Post by Bruse »

Hello community

I am looking for a tool or program which can open with L32 / l64 file which is only lua sciprte included for the game Farming Simulator 17 you have an idea or even a tool for it

Many thanks for your crates

Mfg
Bruse
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Farming Simulator17 L32/L64 data

Post by aluigi »

Upload the files although I highly suspect they are precompiled dlls by judging their names.
Bruse
Posts: 4
Joined: Sun Apr 16, 2017 11:40 am

Re: Farming Simulator17 L32/L64 data

Post by Bruse »

Sorry i will upload you a file tonight
If that is ok it could tell me how to decrypt this
When they get it

Many thanks already times for their effort
Bruse
Posts: 4
Joined: Sun Apr 16, 2017 11:40 am

Re: Farming Simulator17 L32/L64 data

Post by Bruse »

Be the first
The date

Mfg
Bruse
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Farming Simulator17 L32/L64 data

Post by aluigi »

Ok it's Lua 2.0 ("\x1bLJ"): http://wiki.luajit.org/Bytecode-2.0

I don't know what's the best decompiler for it, I hope other users with such knowledge can help you.
unnamed
Posts: 1
Joined: Fri May 12, 2017 7:41 am

Re: Farming Simulator17 L32/L64 data

Post by unnamed »

Hey there,
I think this thread must be pushed up, because its very interesting how to read the *SPAM**** buggi scripts from Giants.

I hope here is a user who knows how to decombile the scripts legibly
chrisu12
Posts: 2
Joined: Thu Jan 18, 2018 11:29 am

Re: Farming Simulator17 L32/L64 data

Post by chrisu12 »

Hello

are the .l32 files not encrypted as in ls13?
I have two different .l32 versions here, one version is encrypted and the other is not.
This would only have to be decompiled with LuaJit. grins
I've ever looked at the descriptions to make a BMS script, but then my calcified brain never gets through. :)

It would be really cool if that could look at the programmers one time.

Thank you!!

MfG Chrisu
tywony
Posts: 6
Joined: Fri Oct 03, 2014 3:36 pm

Re: Farming Simulator17 L32/L64 data

Post by tywony »

bump...if anyone can help please
Brundavo
Posts: 2
Joined: Sun Dec 09, 2018 3:56 pm

demande d aide pour farming simulator 19 . convertion des fichiers L32/L64 au format lua

Post by Brundavo »

bonjour a tous le monde . je recherche de l aide pour modifier le script bms pour farming simulator . pour que ce scripot puisse convertir les fichiers L32/L64 au format . Lua contenu dans les 2 fichiers .gar de farming simulator 19 . merci a tous pour l aide
Eep
Posts: 7
Joined: Thu Dec 06, 2018 2:21 pm

Re: demande d aide pour farming simulator 19 . convertion des fichiers L32/L64 au format lua

Post by Eep »

Translation:
Hello everybody . I'm looking for help editing the bms script for farming simulator. so that this script can convert L32 / L64 files to. Lua content in the 2 .gar files of farming simulator 19. Thanks for the help everyone

You're not the only one:
viewtopic.php?f=9&t=8942
https://github.com/jjdredd/ljd/issues/7
kenny2801
Posts: 2
Joined: Wed Jul 15, 2015 3:05 am

Re: Farming Simulator17 L32/L64 data

Post by kenny2801 »

Any update on this and progress towards reading FS19's L32/L64 files?

If it helps I have one encoded (l64) and one working (lua) file here.

Maybe someone can figure our how to read/convert the L64 files.
Gerys
Posts: 9
Joined: Sun Feb 09, 2020 7:27 am

Re: Farming Simulator17 L32/L64 data

Post by Gerys »

just like FS13 luc
Mmtrx
Posts: 3
Joined: Wed May 13, 2020 6:56 pm

Re: Farming Simulator17 L32/L64 data

Post by Mmtrx »

Seems that the .l64 luajit byte code files have been encrypted, after being dumped with luajit. If somebody could find the decrypt algorithm, I could use a luajit-decompiler to get (close to) the original Lua source. Based on the 2 files by kenny2801, I attach a sample of the plain and encrypted .l64 files.

Ok, solved. The l64 files are obfuscated by a 64-bit key that gets decreased by 8 for each consecutive 8-byte block. After de-obfuscating, you can feed the l64 files to luajit-decompiler to get readable Lua sources.

Since I was interested in the field mission system, I attach AbstractFieldMission.lua, AbstractMission.lua as an example.
zenarius
Posts: 2
Joined: Fri Jul 24, 2020 7:04 pm

Re: Farming Simulator17 L32/L64 data

Post by zenarius »

Mmtrx wrote:Seems that the .l64 luajit byte code files have been encrypted, after being dumped with luajit. If somebody could find the decrypt algorithm, I could use a luajit-decompiler to get (close to) the original Lua source. Based on the 2 files by kenny2801, I attach a sample of the plain and encrypted .l64 files.

Ok, solved. The l64 files are obfuscated by a 64-bit key that gets decreased by 8 for each consecutive 8-byte block. After de-obfuscating, you can feed the l64 files to luajit-decompiler to get readable Lua sources.

Since I was interested in the field mission system, I attach AbstractFieldMission.lua, AbstractMission.lua as an example.


Can you possibly convert these files I've attached to be readable in Notepad++ for example. I've used this https://github.com/chill1Penguin/l64decode l64 decoder but the LuaJit decompiler, you provided a link for, is only able to do 2 files out of bunch, the rest just end up with IO error.
Mmtrx
Posts: 3
Joined: Wed May 13, 2020 6:56 pm

Re: Farming Simulator17 L32/L64 data

Post by Mmtrx »

Thanks for the link to l64decode on git. That program does exactly the same as mine. I think your original .l64 files are corrupted: the decoded .lua files do not end with x00. Maybe you should repeat the quickBMS extraction from dataS.gar (https://zenhax.com/viewtopic.php?f=13&t=12491&hilit=datas.gar)
zenarius
Posts: 2
Joined: Fri Jul 24, 2020 7:04 pm

Re: Farming Simulator17 L32/L64 data

Post by zenarius »

Mmtrx wrote:Thanks for the link to l64decode on git. That program does exactly the same as mine. I think your original .l64 files are corrupted: the decoded .lua files do not end with x00. Maybe you should repeat the quickBMS extraction from dataS.gar (https://zenhax.com/viewtopic.php?f=13&t=12491&hilit=datas.gar)


Thanks much, appreciate it! I'll try to extract again. I ended up just switching economy to 'easy' for now. Good enough.
pepevargas
Posts: 1
Joined: Tue Aug 04, 2020 6:22 am

Re: Farming Simulator17 L32/L64 data

Post by pepevargas »

Hello,
I'm trying to see .l64 content with this script but I think I have the same issue than other people with corrupted l64 files.
I noticed that some xml / i3d files were truncated on the last line after quickbms extraction. It's difficult to tell for binary files like l64 but it might be the case.
Do you use 0.3.3 bms file for the extraction ?
I'm really interested in lua extraction since lua doc is old and a lot of classes are missing.
Thx for your help

Edit:
I understood my error. I missed this part
After de-obfuscating, you can feed the l64 files to luajit-decompiler to get readable Lua sources.

It works perfect now.
Thanks guys it's awesome
lubr97
Posts: 2
Joined: Sun Sep 06, 2020 6:49 pm

Re: Farming Simulator17 L32/L64 data

Post by lubr97 »

hello, I'm new and I'm not the best expert of these things, someone can help me, I got the lua files, but I don't know how to make work luajit decomplier
Gerys
Posts: 9
Joined: Sun Feb 09, 2020 7:27 am

Re: Farming Simulator17 L32/L64 data

Post by Gerys »

Нow about decrypting the file .shapes? ))
Gerys
Posts: 9
Joined: Sun Feb 09, 2020 7:27 am

Re: Farming Simulator17 L32/L64 data

Post by Gerys »

Quickbms (l32/l64).

see below
Last edited by Gerys on Sun Nov 29, 2020 1:54 pm, edited 2 times in total.