Hello,i go on trying to found more about Sport Championship games.
I have just decrypted the lua files from the first game and i found some weird format i have never listen about : zlua. on the second game they are also on the same format,according the hexeditor.
could someone help me to extract the lua files from it?
Thanks
Help zlua files
-
- Posts: 32
- Joined: Thu Feb 20, 2020 5:39 pm
Re: Help zlua files
Hi again, does someone knows if it is used on other games?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Help zlua files
If you need help for extracting the data from those DAT files you can just rename them as .res and use this script http://aluigi.org/bms/sport_championship_res.bms
The output is probably not what you expect but that's the data as-is
The output is probably not what you expect but that's the data as-is
-
- Posts: 32
- Joined: Thu Feb 20, 2020 5:39 pm
Re: Help zlua files
Hello, a lot of thanks.
The script works wonderful : it extract with the correct names..
Only one file was no extracted and gave this error:
"
open input file E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\extracted\objectscripts.res
- open script E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\sport_championship_res.bms
- set output folder E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\extracted\objects
offset filesize filename
--------------------------------------
Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 2
offset 00008ba0
input size 0x0000f7bd 63421
output size 0x00003383 13187
result 0xffffffff -1
Error: the uncompressed data (-1) is bigger than the allocated buffer (65536)
It usually means that data is not compressed or uses another algorithm
Last script line before the error or that produced the error:
124 clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE
"
Now I must found why unluac is no able to create the Lua source code
Thanks!
The script works wonderful : it extract with the correct names..
Only one file was no extracted and gave this error:
"
open input file E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\extracted\objectscripts.res
- open script E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\sport_championship_res.bms
- set output folder E:\1 Marzo 2000\EXTRACTING\Ps3\SC 1-luascripts\extracted\objects
offset filesize filename
--------------------------------------
Error: the compressed zlib/deflate input is wrong or incomplete (-3)
Info: algorithm 2
offset 00008ba0
input size 0x0000f7bd 63421
output size 0x00003383 13187
result 0xffffffff -1
Error: the uncompressed data (-1) is bigger than the allocated buffer (65536)
It usually means that data is not compressed or uses another algorithm
Last script line before the error or that produced the error:
124 clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE
"
Now I must found why unluac is no able to create the Lua source code
Thanks!
-
- Posts: 719
- Joined: Sat Sep 28, 2019 7:00 pm
Re: Help zlua files
@mmmniple: Those lua just has additional header (probably game specific). Simply remove all before LuaQ (0x1B4C756151 in hex) and unluac will work fine.