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.

Trine 2 Complete Story *.lub (Text file)

Featured Replies

  • Author
  • Localization

shadow_lonely, posted Fri Mar 06, 2015 8:32 am (3629)


Hi! Could anyone make a quickbms script to unpack and reimport text for Trine 2 Complete Story?
Example file:
Thanks!
  • Author
  • Localization

puggsoy, posted Fri Mar 06, 2015 10:28 am (3630)


It's zlib compressed, however the file format is a bit strange. I'm not sure how I'd extract it. You could just use Offzip (offset 0) and edit the files by hand, since the text is easily viewable and editable. However, if you want to do something like a full translation that would be tedious.
  • Author
  • Localization

shadow_lonely, posted Fri Mar 06, 2015 11:45 am (3631)


puggsoy wrote:
It's zlib compressed, however the file format is a bit strange. I'm not sure how I'd extract it. You could just use Offzip (offset 0) and edit the files by hand, since the text is easily viewable and editable. However, if you want to do something like a full translation that would be tedious.


Thanks! :(
  • Author
  • Localization

shadow_lonely, posted Sat Mar 07, 2015 10:20 am (3639)


puggsoy wrote:
It's zlib compressed, however the file format is a bit strange. I'm not sure how I'd extract it. You could just use Offzip (offset 0) and edit the files by hand, since the text is easily viewable and editable. However, if you want to do something like a full translation that would be tedious.


I reupload other format text (PC version), could you take and look? Thanks

Here is exmaple:
  • Author
  • Localization

puggsoy, posted Sat Mar 07, 2015 10:32 am (3640)


These are uncompressed, but otherwise they're exactly the same. Sorry :?
  • Author
  • Localization

shadow_lonely, posted Mon Mar 09, 2015 1:13 am (3673)


puggsoy wrote:
These are uncompressed, but otherwise they're exactly the same. Sorry :?


At 0x00000081 have 15 bytes, maybe size limit: 400300078005000100060007C005 (en-111833bytes)| C005000780050001400400070006 (es-114065bytes)
  • Author
  • Localization

swuforce, posted Mon Mar 09, 2015 4:50 pm (3680)


If you change a byte at 0xA to 8, luadec will decompile the file.
Download from here: http://hercules.ws/board/topic/2473-lua ... ecompiler/
Unpack the attached file to it's folder.
Drag the lub file to convert.bat, an editable lua file should appear.
Drag the lub again, a new lub should appear form the lua.

convert.7z

  • Author
  • Localization

shadow_lonely, posted Tue Mar 10, 2015 1:11 pm (3709)


swuforce wrote:
If you change a byte at 0xA to 8, luadec will decompile the file.
Download from here: http://hercules.ws/board/topic/2473-lua ... ecompiler/
Unpack the attached file to it's folder.
Drag the lub file to convert.bat, an editable lua file should appear.
Drag the lub again, a new lub should appear form the lua.


Nice! Thanks! ;)
  • Author
  • Localization

qabRieL, posted Sun Oct 13, 2019 9:56 pm (51502)


swuforce wrote:
If you change a byte at 0xA to 8, luadec will decompile the file.
Download from here: http://hercules.ws/board/topic/2473-lua ... ecompiler/
Unpack the attached file to it's folder.
Drag the lub file to convert.bat, an editable lua file should appear.
Drag the lub again, a new lub should appear form the lua.

Everything for Trine 4 works fine except for the lub files. Apparently there are two copies of the same file, and the game reads the strings from the locale.x64.lua file, which, the files for converting don't work. Can you give them a look?
  • Author
  • Localization

swuforce, posted Mon Oct 14, 2019 3:35 pm (51523)


Decompile the x86 file then replace the luac.exe with the 64 bit lua compiler.
  • Author
  • Localization

EBOOTextend, posted Mon Jan 25, 2021 3:35 am (61829)


@swuforce
Im sorry if I address my problem to wrong person, but I see you make some scripts and tools for .lub decompiling.
Im having issues with Trine 4 dlc_keys.lub file for ps4 game version.
After unpacking the patch1.fbq file from game update, I cant get the lub file to readable state.
I need the keys inside, obviously.

I cant get it to work, keep getting error "unexpected symbol near X" when trying to decompile the lub file.
Im new to the forum, hope no rules broken.



Please have a look anyone and help me to decompile, please.
Thanks.
  • Author
  • Localization

swuforce, posted Mon Jan 25, 2021 4:43 pm (61833)


Open the files with hex editor and see the difference.
These files are probably encrypted.
  • Author
  • Localization

EBOOTextend, posted Mon Jan 25, 2021 9:13 pm (61835)


swuforce wrote:
Open the files with hex editor and see the difference.
These files are probably encrypted.


I did already, and yes, I cant see luaQ header or anything resembling in ASCII.
All .lub files in the ps4 game are like this, first 5 bytes are the same.

So, without decrypting first there is no chance to decompile the files?

Thanks for taking a look, appreciate it.
  • Author
  • Localization

jonastraducoes, posted Mon Feb 01, 2021 2:12 pm (61961)


shadow_lonely wrote:
Hi! Could anyone make a quickbms script to unpack and reimport text for Trine 2 Complete Story?
Example file: Trine 2 Complete.rar
Thanks!


Buying the game Trine 3 steam has all the tools to translate the game!

To convert the .lub files to .lua, use this site and it's very good!

You change the .lua files in notepad

http://prntscr.com/xz8h9k

https://www.decompiler.com/

Attention: you need to have the original steam game that has the right tools!

I tested with generic games and it doesn't work!
  • Author
  • Localization

alanmugiwara, posted Tue Mar 23, 2021 2:35 pm (62983)


jonastraducoes wrote:
shadow_lonely wrote:
Hi! Could anyone make a quickbms script to unpack and reimport text for Trine 2 Complete Story?
Example file: Trine 2 Complete.rar
Thanks!


Buying the game Trine 3 steam has all the tools to translate the game!

To convert the .lub files to .lua, use this site and it's very good!

You change the .lua files in notepad

http://prntscr.com/xz8h9k

https://www.decompiler.com/

Attention: you need to have the original steam game that has the right tools!

I tested with generic games and it doesn't work!



hank you for this. Works fone! But how converter .lua to .lub after edit files?
  • Author
  • Localization

jonastraducoes, posted Tue Mar 23, 2021 6:37 pm (62987)


alanmugiwara wrote:
jonastraducoes wrote:
shadow_lonely wrote:
Hi! Could anyone make a quickbms script to unpack and reimport text for Trine 2 Complete Story?
Example file: Trine 2 Complete.rar
Thanks!


Buying the game Trine 3 steam has all the tools to translate the game!

To convert the .lub files to .lua, use this site and it's very good!

You change the .lua files in notepad

http://prntscr.com/xz8h9k

https://www.decompiler.com/

Attention: you need to have the original steam game that has the right tools!

I tested with generic games and it doesn't work!



hank you for this. Works fone! But how converter .lua to .lub after edit files?


Buying the game Trine 3 steam has all the tools to translate the game!
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.