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.

Converting lua to LUAQ type

Featured Replies

  • Author
  • Localization

Beastin_Cade, posted Thu Oct 29, 2020 7:40 pm (59841)


trying to convert this normal lua script to this type of luac. the luac i provided has a LUAQ header, and i want to convert my .lua script to a LUAQ header .luac file
  • Author
  • Localization

LolHacksRule, posted Thu Oct 29, 2020 9:40 pm (59842)


Sounds like a compiled Lua 5 file. Try using luac to compile.
  • Author
  • Localization

Beastin_Cade, posted Fri Nov 06, 2020 1:23 am (59858)


so i tried it with lua 5.1 and i get a luaq header, but its not the same type as it is a little different and has a bigger file size when i use luac and convert it to a luac luaq type
  • Author
  • Localization

atom0s, posted Wed Nov 18, 2020 8:10 pm (59990)


You need to make sure your version of Lua and Luac are setup the same as the target expects.

For example, the compiled Lua file you gave us shows that it's compiled with a luac compiler that is:
- Lua 5.1
- Big Endian (Little-Endian is default for Lua which should be 01, but your script is 00 for big.)
- sizeof(lua_Number) == 4 which means lua_Number is defined as a float and not a double.
- The debug information is stripped from the script. (Use flag '-s' with luac when compiling scripts to get that same result.)
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.