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.

PopCap Games Compiled Lua Scripts: *.LUC (LUA 5.6 fake header? Lua 5.0.2)

Featured Replies

  • Author
  • Localization

LolHacksRule, posted Thu Jan 24, 2019 4:53 am (42711)


I want to view the LUC files of a game's (Plants VS Zombies) DRM and the two Bookworm Adventures games, they are proper compiled LUA files according to the header, but written in a version (LUA 5.6) no one knows (or is stupidly headered LuaV) any advice on decompiling these or will someone try? Thanks so much. I tried to decompile these with unluac.jar but got nowhere... UPDATE: Ok, turns out the pesky games use LUA 5.0.2, given by executable data and they are definitely headered stupidly. Heck, the game's still read them in the DRM or scripts/common (BWA) if the file extension is LUA. UPDATE2: Bookworm Adventures has a built-in Lua compiler for in scripts/common which compiles Lua files in this form if compiled files aren't present.

Image

Also the plaintext LUAs from BWAVOL2 cannot be compiled, how to fix their data to compile them properly?
  • Author
  • Localization

LolHacksRule, posted Sun Apr 07, 2019 10:23 pm (46597)


Anything? These files are making me furious.
  • Author
  • Localization

LolHacksRule, posted Sun Sep 29, 2019 9:33 pm (50507)


Anything now? I really want to document the data and mod the game and these are the only files in the way. Debug compiling information is also present. The game can compile its own from scripts/common/common.lua.
  • Author
  • Localization

LolHacksRule, posted Mon Oct 21, 2019 5:38 pm (51661)


Hate rebumping but anyone going to work on this? I tried ChunkSpy but that also doesn't help...
  • Author
  • Localization

atom0s, posted Mon Oct 21, 2019 9:21 pm (51669)


These files are not stock Lua at all. They are using a heavily modified version of Lua, so none of the existing decompiler tools are going to work with it. They have changed a lot of the core language features that do not exist in stock Lua.

- Functions have brace-based scope.
- Keywords such as: class, def, super,
- Object creation with sub-classing/inheritance.
- C style comments. (//, /* */, etc.)
- C style bitwise/logic operators.
- C style pointers.

And more. This is a ton of major changes to the core language.
  • Author
  • Localization

LolHacksRule, posted Tue Oct 22, 2019 4:48 am (51673)


Oof, thanks for the advice. And yes I know its their internal modified version of Lua 5.0.2.
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.