Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Help zlua files

Featured Replies

  • Author
  • Localization

mmmniple, posted Fri Apr 03, 2020 10:40 pm (55506)


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

SC 1-luascripts.rar

  • Author
  • Localization

mmmniple, posted Thu Apr 09, 2020 9:48 pm (55715)


Hi again, does someone knows if it is used on other games?
  • Author
  • Localization

aluigi, posted Sat Apr 11, 2020 8:47 pm (55770)


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
  • Author
  • Localization

mmmniple, posted Sun Apr 12, 2020 2:42 pm (55824)


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!
  • Author
  • Localization

spiritovod, posted Tue Apr 14, 2020 3:15 pm (55927)


@mmmniple: Those lua just has additional header (probably game specific). Simply remove all before LuaQ (0x1B4C756151 in hex) and unluac will work fine.
  • Author
  • Localization

mmmniple, posted Tue Apr 14, 2020 5:44 pm (55935)


Ok, a lot of thanks!
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.