ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon May 17, 2021 9:23 am

All times are UTC




Post new topic  Reply to topic  [ 17 posts ] 
Author Message
PostPosted: Fri Mar 06, 2015 8:32 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 216
Hi! Could anyone make a quickbms script to unpack and reimport text for Trine 2 Complete Story?
Example file:
Attachment:
Trine 2 Complete.rar [77.03 KiB]
Downloaded 295 times

Thanks!


Last edited by shadow_lonely on Sat Mar 07, 2015 10:18 am, edited 2 times in total.

Top
   
PostPosted: Fri Mar 06, 2015 10:28 am 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
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.


Top
   
PostPosted: Fri Mar 06, 2015 11:45 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 216
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! :(


Top
   
PostPosted: Sat Mar 07, 2015 10:20 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 216
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:
Attachment:
Trine 2 Complete.rar [77.03 KiB]
Downloaded 286 times


Top
   
PostPosted: Sat Mar 07, 2015 10:32 am 
User avatar

Joined: Sat Dec 13, 2014 1:01 am
Posts: 161
These are uncompressed, but otherwise they're exactly the same. Sorry :?


Top
   
PostPosted: Mon Mar 09, 2015 1:13 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 216
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)


Top
   
PostPosted: Mon Mar 09, 2015 4:50 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 226
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.


Attachments:
convert.7z [409.37 KiB]
Downloaded 401 times
Top
   
PostPosted: Tue Mar 10, 2015 1:11 pm 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 216
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! ;)


Top
   
PostPosted: Sun Oct 13, 2019 9:56 pm 

Joined: Fri Feb 12, 2016 11:53 am
Posts: 12
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?


Attachments:
en.rar [69.49 KiB]
Downloaded 153 times
Top
   
PostPosted: Mon Oct 14, 2019 3:35 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 226
Decompile the x86 file then replace the luac.exe with the 64 bit lua compiler.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Mon Jan 25, 2021 3:35 am 

Joined: Mon Jan 25, 2021 2:17 am
Posts: 2
@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.

Attachment:
Trine 4 (ps4) dlc lub files.rar [1.27 KiB]
Downloaded 51 times


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


Top
   
PostPosted: Mon Jan 25, 2021 4:43 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 226
Open the files with hex editor and see the difference.
These files are probably encrypted.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Mon Jan 25, 2021 9:13 pm 

Joined: Mon Jan 25, 2021 2:17 am
Posts: 2
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.


Top
   
PostPosted: Thu Jan 28, 2021 5:19 pm 

Joined: Sun Jan 10, 2021 7:43 am
Posts: 37
puggsoy wrote:
These are uncompressed, but otherwise they're exactly the same. Sorry :?

hey can you help me
viewtopic.php?f=12&t=14714
viewtopic.php?f=12&t=14714


Top
   
PostPosted: Mon Feb 01, 2021 2:12 pm 

Joined: Sun Aug 18, 2019 1:33 am
Posts: 18
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!


Top
   
PostPosted: Tue Mar 23, 2021 2:35 pm 
User avatar

Joined: Fri Jun 15, 2018 2:46 pm
Posts: 16
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?


Top
   
PostPosted: Tue Mar 23, 2021 6:37 pm 

Joined: Sun Aug 18, 2019 1:33 am
Posts: 18
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!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited