Swords Of Legends 3 ,how to unpack it?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

Swords Of Legends 3。It is a Chinese game development team to make an ARPG single game.

Some videos
https://www.youtube.com/watch?v=KU_R4RUBiu0
https://www.youtube.com/watch?v=Czjue-DivTk

The game engine is Havok.
Oodle is used for data compression.

Game File Download http://t.cn/E20XBmL

Game Art resources in the .data. folder

How to Write a BMS Script???
:?:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

Already exists a script for this game but I decided to make it a bit more user-friendly:
http://aluigi.org/bms/new_sword_legends.bms

Just select 300.idx and it will do the rest
MeowFET
Posts: 1
Joined: Fri Nov 30, 2018 1:10 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by MeowFET »

aluigi wrote:Already exists a script for this game but I decided to make it a bit more user-friendly:
http://aluigi.org/bms/new_sword_legends.bms

Just select 300.idx and it will do the rest


As I tested earlier, the existing script just works perfectly.
However, some of the extracted files with an extension of "xxx" are seemingly encrypted (originally some FMOD bank files / .bk2 animation videos /.xml files, etc.)
Maybe you could take a look at the attached sample and come up with some approaches. Thanks a lot! :P

https://mega.nz/#F!5vo23ayJ!IT9WSkthbTh0ZlhOiyRrkg
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

Yes it looks encrypted and, unfortunately, there is nothing to do without reverse engineering the game executable.
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

aluigi wrote:Already exists a script for this game but I decided to make it a bit more user-friendly:
http://aluigi.org/bms/new_sword_legends.bms

Just select 300.idx and it will do the rest


thank you, i love you so much
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

aluigi wrote:Already exists a script for this game but I decided to make it a bit more user-friendly:
http://aluigi.org/bms/new_sword_legends.bms

Just select 300.idx and it will do the rest


According to this method, it can't be executed, error。
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

Sorry, I didn't operate correctly. I should put all the files in the same directory.
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

MeowFET wrote:
aluigi wrote:Already exists a script for this game but I decided to make it a bit more user-friendly:
http://aluigi.org/bms/new_sword_legends.bms

Just select 300.idx and it will do the rest


As I tested earlier, the existing script just works perfectly.
However, some of the extracted files with an extension of "xxx" are seemingly encrypted (originally some FMOD bank files / .bk2 animation videos /.xml files, etc.)
Maybe you could take a look at the attached sample and come up with some approaches. Thanks a lot! :P

https://mega.nz/#F!5vo23ayJ!IT9WSkthbTh0ZlhOiyRrkg



These audio files are FSB5 encrypted and the source file should be in OGG format,

but I did not successfully extract
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

barnett2010 wrote:Sorry, I didn't operate correctly. I should put all the files in the same directory.

I guess it depends by the version of quickbms you are using.
Here with 0.9.2 it worked automatically without moving the idx file.
Anyway it's not very important, it's just a simple operation more :)
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

aluigi wrote:
barnett2010 wrote:Sorry, I didn't operate correctly. I should put all the files in the same directory.

I guess it depends by the version of quickbms you are using.
Here with 0.9.2 it worked automatically without moving the idx file.
Anyway it's not very important, it's just a simple operation more :)



Game version updated,
data files are also a few more,
with a script to unpack,
found that some files are garbled name,
new file download link http://t.cn/EyfKDET
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

The name is set to empty (sequential name + auto guessed extension) if there is no hash found in the database collected in the idx file.

I don't know if they are files meant to be replaced, for example they have been replaced with updated new files (new files are added and the old ones keep in the archive for incremental patching), anyway if they are just few you can ignore them.
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

aluigi wrote:The name is set to empty (sequential name + auto guessed extension) if there is no hash found in the database collected in the idx file.

I don't know if they are files meant to be replaced, for example they have been replaced with updated new files (new files are added and the old ones keep in the archive for incremental patching), anyway if they are just few you can ignore them.



OK, thank you so much , then ignore them first, The number of these files is 1105.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

1105? They are a lot.
It's still possible that they are updated files, after all that's just the job of an update :)
The confirm would happen if you have the old archive and you can compare the hash of one of these nameless files with one of the files in the old archive.

Anyway what's important is that everything has been extracted and those nameless files may or may not be useful.
barnett2010
Posts: 15
Joined: Thu Nov 29, 2018 8:19 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by barnett2010 »

aluigi wrote:1105? They are a lot.
It's still possible that they are updated files, after all that's just the job of an update :)
The confirm would happen if you have the old archive and you can compare the hash of one of these nameless files with one of the files in the old archive.

Anyway what's important is that everything has been extracted and those nameless files may or may not be useful.



300.idx 。Can this file be converted into a plain txt file? How?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

It's a binary format.
You can use the -V option of quickbms (better -V -l for not re-extracting everything) if you want to view all the details of the fields read from the idx file.
yuxin123
Posts: 13
Joined: Mon Oct 14, 2019 6:31 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by yuxin123 »

aluigi ,
PC Game the swords of legends 3 is updated now. It has 37 dota files, and 302.idx not 300.idx now. When I use the script, it shows following:

Error: the compressed LZMA input is wrong or incomplete (0)
Info: algorithm 16
offset 0000006c
input size 0x000239c8 145864
output size 0x00080000 524288
result 0xffffff9c -100

Error: the uncompressed data (-100) is bigger than the allocated buffer (524288)

Last script line before the error or that produced the error:
48 clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE


Can you help me what's wrong with it ?
SaraKale
Posts: 17
Joined: Tue Oct 02, 2018 11:46 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by SaraKale »

swords of legends 3 Update 303.idx now, There are also mistakes. aluigi Please help us :cry:
SaraKale
Posts: 17
Joined: Tue Oct 02, 2018 11:46 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by SaraKale »

aluigi wrote:It's a binary format.
You can use the -V option of quickbms (better -V -l for not re-extracting everything) if you want to view all the details of the fields read from the idx file.


Hi aluigi, excuse me,swords of legends 3 Update 303.idx now, use new_sword_legends.bms script error, :cry: Can you update it? Thank you very much!!
303.idx file download:
https://mega.nz/#F!l0o3SBSC!uF3vm1TSgoJwK5gidu71gw
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Swords Of Legends 3 ,how to unpack it?

Post by aluigi »

Just made an update on the fly, let me know if it works:
http://aluigi.org/bms/new_sword_legends.bms
SaraKale
Posts: 17
Joined: Tue Oct 02, 2018 11:46 am

Re: Swords Of Legends 3 ,how to unpack it?

Post by SaraKale »

aluigi wrote:Just made an update on the fly, let me know if it works:
http://aluigi.org/bms/new_sword_legends.bms

wow! It works! Thank you so much!!!That's great!
But I don't know how to extract .xxx / .bk2 file. It looks encrypted? What tools can I use to open them?