BDroid_X icon indicating copy to clipboard operation
BDroid_X copied to clipboard

Assets with problematic naming structure

Open Yomikomi4353 opened this issue 8 months ago • 13 comments

I will list assets that are not finding the correct target under their correct target

cd0a429c40ca8aa5334bd5ef6c178f18

  • specialillust26-1.png (The hyphen "-" might make this not register)
  • specialillust31-1.png
  • specialillust33.png (this name shouldn't be problematic, but looking at what it targeted, it seems that some files have the same or similar names while possibly not being the same format. Perhaps this confuses the program?)
  • specialIllust50.png
  • specialillust54.png

d1849f8ee158d34ddef115834b525070

  • specialillust28.png
  • specialillust35.png
  • specialillust43-2.png
  • specialillust47.png
  • specialillust48.png
  • specialillust56.png
  • specialillust58.png

d365197e2f1dcf294f79c837dc5db3a0

  • specialillust30.png
  • specialillust34.png
  • specialillust41-1.png
  • specialillust42-1.png
  • specialillust44-4.png
  • specialillust45.png
  • specialillust57.png
  • SpecialIllust75.png

3a9eb24fad290337b59eedd9bc2e7f96

  • bg_idcard_bg_cutscene_066802.png
  • bg_idcard_bg_cutscene_066802_2.png
  • (These two share the exact same name as in the new target folder which is called "common-censorship_assets_all_407fc1b1a53b56306c994133b7dbf32c" with the target of d12230b913d2721c1738ce8f446aa609, these are for refithea's bride costume cutscene)

The current workaround for this is written down in the now closed discussion page here: https://github.com/Ark-Repoleved/BDroid_X/discussions/20#discussioncomment-15688020


Another problem occurs in regards to Palette's cutscene.

When using a mod for her cutscene the following occurs:

  • The mod packages without error
  • When 4 images are used no modification occurs
  • When more than 4 images are used the assets do not show and prompts a crash state

I propose this is due to the naming structure of the official files.

When unpacking the __data using BdroidX the following files are extracted:

Palette cutscene.zip

  • cutscene_char004201.atlas
  • cutscene_char004201.png
  • cutscene_char004201.skel
  • cutscene_char004201_2.png
  • cutscene_char004201_3.png
  • cutscene_char004201_4.png
  • cutscene_char004201_5.png

Meanwhile Splinteredrose on f95 managed to get the following with a different program:

Palette cutscene all files.zip

  • cutscene_char004201 #306.png
  • cutscene_char004201.atlas
  • cutscene_char004201.atlas #595
  • cutscene_char004201.png
  • cutscene_char004201.skel
  • cutscene_char004201.skel #601
  • cutscene_char004201_2 #318.png
  • cutscene_char004201_2.png
  • cutscene_char004201_3 #63.png
  • cutscene_char004201_3.png
  • cutscene_char004201_4.png
  • cutscene_char004201_5.png

As far as I am aware BdroidX is not set up to extract filesthat do not adhere to a certain structure leading to not all of these files being extracted.

The correct files to use of these to get a correct preview in the spine viewer are:

  • cutscene_char004201.atlas #595
  • cutscene_char004201.png
  • cutscene_char004201.skel #601
  • cutscene_char004201_2 #318.png
  • cutscene_char004201_3 #63.png
  • cutscene_char004201_4.png

These files, when renamed to remove the " #nnn", will preview correctly. When packaged the previously stated error occurs.

When packaging mods BdroidX can only use files with the correct naming structure, but it seems to me the game is calling in different assets outside of this structure. If the universal asset matching feature were utilized to modify these differently named files would it work? Or perhaps some other solution is required if at all possible.


edit Forgot to add that the cutscene for the new Helena skin is categorized incorrectly as "misc" probably due to its naming: cutscene_char061092_A

Yomikomi4353 avatar Mar 28 '26 17:03 Yomikomi4353

Try this: https://github.com/Ark-Repoleved/BDroid_X/releases/tag/Test , it should fix the matching problem. Those specialillust.png are internal Id, the true file names are as follows:

cd0a429c40ca8aa5334bd5ef6c178f18

  • specialillust26-1.png -> sepcialillust_98.png
  • specialillust31-1.png -> sepcialillust_99_2.png
  • specialillust33.png -> sepcialillust_95.png
  • specialillust50.png -> sepcialillust_104.png
  • specialillust54.png -> sepcialillust_106.png

d1849f8ee158d34ddef115834b525070

  • specialillust28.png -> sepcialillust_99_1.png
  • specialillust35.png -> sepcialillust_95-3.png
  • specialillust43-2.png -> sepcialillust_43_2.png
  • specialillust47.png -> sepcialillust_103.png
  • specialillust48.png -> sepcialillust_103_1.png
  • specialillust56.png -> sepcialillust_106_1.png
  • specialillust58.png -> sepcialillust_107_2.png

d365197e2f1dcf294f79c837dc5db3a0

  • specialillust30.png -> sepcialillust_99_3.png
  • specialillust34.png -> sepcialillust_95-2.png
  • specialillust41-1.png -> sepcialillust_41_1.png
  • specialillust42-1.png -> sepcialillust_42_2.png
  • specialillust44-4.png -> sepcialillust_100.png
  • specialillust45.png -> sepcialillust_101.png
  • specialillust57.png -> sepcialillust_107_1.png
  • SpecialIllust75.png -> SpecialIllust75.png

As for cutscene_char004201, I think it's a separate issue, I'll work on it after all matching problems are finished.

kevin930321 avatar Mar 29 '26 13:03 kevin930321

I tested using the true names you provided for the pngs in folder cd0a429c40ca8aa5334bd5ef6c178f18 which resulted in the correct target, however the files with true names were not recognized by the repacker and will result in a "no modifications were made" error message.

I was using the file names taken from the unpacked __data files. Where would I look for the true file names at?

Thank you for your continued work on this issue.

Yomikomi4353 avatar Mar 29 '26 13:03 Yomikomi4353

Ah, I see, here's the fix: https://github.com/Ark-Repoleved/BDroid_X/releases/tag/Test . The original file names will do, sorry for that.

kevin930321 avatar Mar 29 '26 13:03 kevin930321

This has resolved the issue of the specialillust files. This version does seem to be missing the commits with the sactx classification though as the pack titles are no longer being recognized. Will these be merged together somehow?

Yomikomi4353 avatar Mar 29 '26 14:03 Yomikomi4353

It should be supported, can u show me the file names.

kevin930321 avatar Mar 29 '26 14:03 kevin930321

  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1_EN-c368b120.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2_EN-24251e21.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3_EN-06252005.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle4_EN-2273826b.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle5_EN-08ef6790.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle6_EN-872de3f3.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle7_EN-506b19f1.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle8_EN-b2b3c647.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle9_EN-2ed32ef5.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle10_EN-e6b36477.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle11_EN-1381cf08.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle12_EN-62ff89af.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle13_EN-fb89ae04.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle14_EN-720b4ed1.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle15_EN-0526306e.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle16_EN-c71a539c.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle17_EN-476d35da.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle18_EN-99b8a363.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle19_EN-6871e8b1.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle20_EN-b3a1d4b0.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1001_EN-60f326c6.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1002_EN-4087a648.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1003_EN-ec54bfc4.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1004_EN-aeaf7fe2.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1005_EN-85a204ed.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1006_EN-b30b76b7.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1007_EN-367ddfda.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle1008_EN-9fd4b402.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2001_EN-ba812e95.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2002_EN-5376e051.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2003_EN-19a47484.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2004_EN-66e56a63.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2005_EN-3f61042a.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2006_EN-27bb0eee.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2007_EN-e9c5dd54.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle2008_EN-899bd691.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3001_EN-d4cbc057.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3002_EN-27eebaa8.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3003_EN-b3cb9b96.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3004_EN-9342ca9c.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3005_EN-33ba0db8.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3006_EN-96cc101b.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3007_EN-3ed07c7d.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3008_EN-335476e0.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3009_EN-0319f3f9.png
  • sactx-0-2048x2048-ASTC 6x6-LocalPackTitle3010_EN-c74e74d1.png
  • sactx-1-1024x1024-ASTC 6x6-LocalPackTitle1006_EN-b30b76b7.png

Yomikomi4353 avatar Mar 29 '26 14:03 Yomikomi4353

https://github.com/Ark-Repoleved/BDroid_X/releases/tag/Test , this should be the final work.

kevin930321 avatar Mar 29 '26 15:03 kevin930321

Things are all targeting correctly now. Thank you for resolving this issue.

Yomikomi4353 avatar Mar 29 '26 15:03 Yomikomi4353

https://github.com/Ark-Repoleved/BDroid_X/releases/tag/Test cutscene_char004201 issue is also fixed.

kevin930321 avatar Mar 29 '26 16:03 kevin930321

The mod does show properly when packed, but still prompts a crash state when being viewed.

Yomikomi4353 avatar Mar 29 '26 17:03 Yomikomi4353

Which mod are u using? Mine works fine.

kevin930321 avatar Mar 29 '26 17:03 kevin930321

I was using one that utilizes the assets from the unpacked files arranged correctly with modified pngs of a mod.

Yomikomi4353 avatar Mar 29 '26 17:03 Yomikomi4353

I managed to get the mod to not crash by using the spine merge function. I think the game doesn't like the mod having more than 3 pngs considering when I tried to use the yuk1 mod the spine merge function was also needed to lower the image count.

Yomikomi4353 avatar Mar 29 '26 19:03 Yomikomi4353