Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Cethleann - The Koei Swiss Army Knife

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

einherjar007 wrote: Tue Feb 18, 2020 6:02 pm Thanks for a awesome tool.

I asked a question because it was listed in the --game option. Is DOAXVV supported?
Soon

The games listed in --game are not per se the games supported, just added as a future-proofing thing incase they somehow already work but need a filelist.
einherjar007
mega-veteran
mega-veteran
Posts: 188
Joined: Sat Dec 23, 2017 7:56 am
Has thanked: 178 times
Been thanked: 36 times

Re: Cethleann - The Koei Swiss Army Knife

Post by einherjar007 »

Yretenai wrote: Tue Feb 18, 2020 6:06 pm
einherjar007 wrote: Tue Feb 18, 2020 6:02 pm Thanks for a awesome tool.

I asked a question because it was listed in the --game option. Is DOAXVV supported?
Soon

The games listed in --game are not per se the games supported, just added as a future-proofing thing incase they somehow already work but need a filelist.
thanks reply.
that's a miracle job. thanks!
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

einherjar007 wrote: Tue Feb 18, 2020 6:17 pm thanks reply.
that's a miracle job. thanks!
Just a note as warning: the game isn't KTGL and still has (packed) DDS files and TMC models.
Also no fileames.
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Cethleann Version 1.0.23 released.
Changes:
  • All DataExporter projects are merged into Cethleann.DataExporter. You now need to specify which subsystem to use:
    • --flayn for LINKDATA pairs
    • --leonhart for single LINKARCHIVE files
    • --mitsunari for LNK files
    • --nyotengu for RDB files
    • --reisalin for Atelier PAKs
    • --yshtola for COMMON games (DOAXVV/DFFNT)
    Alternatively you can also use --linkdata, --linkarchive, --linkbin, --rdb, --pak, --pkg for each of the options respectively.
  • The file list for Persona 5 Scramble has been updated with more filenames.
  • Flayn has been rewritten to support multiple LINKDATA archives
  • Yshtola has DOAXVV support now, however no filenames are present for that game and the files are for an engine besides KTGL (packed DDS files and TMC.)
When extracting a game, make sure to also provide the -g, or --game option to specify which game it is you're processing. If the game you're extracting isn't present, don't worry about it.

This is used to determine what filelist to load and in the case of Yshtola/COMMON how to decrypt the files.

Cethleann Version 1.0.24 released.
Changes:
  • DOAXVV extraction fix for uncompressed/unencrypted files. -- Note: You need to pass the DX11_global_data/DL folder in addition to DX11_global_data.
  • Elixir (Atelier container) support
Up next:
  • A tool to recombine G1T textures from RDB-archived games
  • DW7+ compression support
  • Nioh's compression format (still unsure if I'll ever be able to implement this.)
DO NOT MESSAGE ME ABOUT DOAXVV
I will not be adding any new features relating to that game.
Arcana
ultra-n00b
Posts: 1
Joined: Fri Sep 09, 2016 9:49 am
Has thanked: 1 time

Re: Cethleann - The Koei Swiss Army Knife

Post by Arcana »

Sorry for the stupid question, but what's the syntax for using the new combined dataexporter?
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Arcana wrote: Fri Feb 21, 2020 3:00 pm Sorry for the stupid question, but what's the syntax for using the new combined dataexporter?

Code: Select all

Cethleann.DataExporter.exe --mode -g GameId "ExtractionDir" "Game dir1" "Game dir 2" "Game dir 3"
i.e.

Code: Select all

Cethleann.DataExporter.exe --reisalin -g Ryza L:\KTGL\Extract\Ryza "K:\steam\steamapps\common\Atelier Ryza"
Cethleann.DataExporter.exe --flayn -g ThreeHouses L:\KTGL\Extract\FETH "K:\nx\ThreeHouses\base\romfs" "K:\nx\ThreeHouses\dlc1\romfs" ...
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Cethleann updated to version 1.0.28
There are no changes to extraction.

This version adds two new programs: Nyotengu.Database, and Nyotengu.KTID.
Nyotengu.Database dumps information from OBJDB files, and KTID uses a .ktid file to combine multiple G1Ts into a single G1T so you can use the texture with fmt_g1m.

Usage for it is kind of tricky.

Code: Select all

Nyotengu.KTID.exe path_to_singletondb path_to_g1t_folder path_to_ktids...
For example, to "recompile" Persona 5 Scramble's Joker G1T you have to call:

Code: Select all

Nyotengu.KTID.exe
-g Scramble
X:\path\to\scrambleoutput\KIDSSystemResource\kidsobjdb\CharacterEditor.kidssingletondb 
X:\path\to\scrambleoutput\MaterialEditor\g1t 
X:\path\to\scrambleoutput\CharacterEditor\ktid\H0000_Joker.ktid 
X:\path\to\scrambleoutput\CharacterEditor\ktid\H0050_Joker_Fake.ktid
You can specify an unlimited amount of KTID files, the G1T will be placed in the ktid folder with the same name as the ktid.
i.e.
X:\path\to\scrambleoutput\CharacterEditor\ktid\H0000_Joker.g1t and
X:\path\to\scrambleoutput\CharacterEditor\ktid\H0050_Joker_Fake.g1t

CharacterEditor.kidssingletondb HAS TO MATCH the RDB folder the KTID is in. Since the KTID is in CharacterEditor, we need to use CharacterEditor.kidssingletondb
If the KTID was in MaterialEditor, we would use MaterialEditor.kidssingletondb
User avatar
Seyren
advanced
Posts: 63
Joined: Sat Oct 30, 2010 1:39 pm
Has thanked: 18 times
Been thanked: 9 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Seyren »

I tested several gmpks, and all of them consistently work (on Dissidia NT), except the ones from the stage folder, where i get the following error:

Code: Select all

[2020-03-07T15:07:15][Cethleann] Extracting SMALE_00.gmpk...
[2020-03-07T15:07:15][GMPK] Failed unpacking GMPK
[2020-03-07T15:07:15][GMPK] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at Cethleann.Unbundler.UnbundlerLogic.TryExtractGMPK(String pathBase, Span`1 data, UnbundlerFlags flags) in C:\projects\cethleann\Cethleann.Unbundler\UnbundlerLogic.cs:line 265
Any gmpk from stage has this index out of range error, could it be that the gmpks for stages are used differently? Or is there a parameter that could be used for these?

I would attach one of them for testing, but these files are really big (like, 30-100 mb). Could that be the cause?
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Seyren wrote: Sun Mar 08, 2020 2:54 pm I tested several gmpks, and all of them consistently work (on Dissidia NT), except the ones from the stage folder, where i get the following error:

Code: Select all

[2020-03-07T15:07:15][Cethleann] Extracting SMALE_00.gmpk...
[2020-03-07T15:07:15][GMPK] Failed unpacking GMPK
[2020-03-07T15:07:15][GMPK] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at Cethleann.Unbundler.UnbundlerLogic.TryExtractGMPK(String pathBase, Span`1 data, UnbundlerFlags flags) in C:\projects\cethleann\Cethleann.Unbundler\UnbundlerLogic.cs:line 265
Any gmpk from stage has this index out of range error, could it be that the gmpks for stages are used differently? Or is there a parameter that could be used for these?

I would attach one of them for testing, but these files are really big (like, 30-100 mb). Could that be the cause?
huh, i'll check it out.

Edit: Fixed in build 29.
User avatar
Seyren
advanced
Posts: 63
Joined: Sat Oct 30, 2010 1:39 pm
Has thanked: 18 times
Been thanked: 9 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Seyren »

Tested it again and it works, thank you so much!
User avatar
Skykila
advanced
Posts: 47
Joined: Sat Apr 03, 2010 8:03 am
Location: Russia
Has thanked: 154 times
Been thanked: 6 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Skykila »

When trying to export pg1m and pg2a bundler from ps4 version of Nioh I get an error.

Image
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Skykila wrote: Wed Mar 11, 2020 7:02 am When trying to export pg1m and pg2a bundler from ps4 version of Nioh I get an error.

Image
those are not errors
User avatar
Skykila
advanced
Posts: 47
Joined: Sat Apr 03, 2010 8:03 am
Location: Russia
Has thanked: 154 times
Been thanked: 6 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Skykila »

Yretenai wrote: Wed Mar 11, 2020 7:09 am those are not errors
But nothing is exported (CP_HUMAN_COMMON.pg2a 12,5Mb).
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Yretenai »

Skykila wrote: Wed Mar 11, 2020 7:16 am
Yretenai wrote: Wed Mar 11, 2020 7:09 am those are not errors
But nothing is exported (CP_HUMAN_COMMON.pg2a 12,5Mb).
I can't verify because I don't have Nioh PS4.
Allanoon
veteran
Posts: 91
Joined: Sat Apr 14, 2012 9:00 pm
Has thanked: 116 times
Been thanked: 25 times

Re: Cethleann - The Koei Swiss Army Knife

Post by Allanoon »

Yretenai wrote: Wed Mar 11, 2020 7:09 am
Skykila wrote: Wed Mar 11, 2020 7:02 am When trying to export pg1m and pg2a bundler from ps4 version of Nioh I get an error.

Image
those are not errors
I'm getting the same problem with the latest tool version, the old one (1.0.18) extract them just fine.
Here some files if you wana check https://www.mediafire.com/file/04x3pkdc ... 4.rar/file
Post Reply