Guest Posted January 19, 2020 Posted January 19, 2020 Tutorial for replacing textures EDIT: There is newer and better tutorial. Spoiler ### Requirements - texconv & texdiag: https://github.com/microsoft/DirectXTex/releases - SpecialK: https://github.com/Kaldaien/SpecialK/releases/tag/sk_0_10_2 - have knowledge on how to unpack and repack cpk files. - have good paint software, and hex editor. ### Step 0. Before We Start Select the Cardigan costume, Simple Bra (White), and Simple Panties (White). We're going to replace their textures. ### Step 1. Dump Textures Install SpecialK (this tutorial uses ver. 0.10.2.1). After you have started injecting (press the button below), run the game. Press BACK+START buttons on your X-Input controller, and you'll see SpecialK window on the game screen. Press "Render Mod Tools", search textures you want to edit, then press "Dump Texture to Disk". We use the following textures in this tutorial. You can find the dumped textures stored in the following folder: C:\Users\USERNAME\Documents\My Mods\SpecialK\Profiles\Bullet Girls Phantasia\SK_Res\dump\textures\game.exe\ These textures use modern format (BC5/BC7), so we can't open them in traditional image viewer. Therefore, let's convert DDS files to PNG. > texconv -ft PNG -f RGBA *.dds Now you have these files: Don't remove original DDS files, because we'll use them later. ### Step 2. Edit Textures Now let's copy PNG files into another folder for editing, then open and edit them in your favorite paint software like Photoshop. Editing examples: ### Step 3. Create New Modded DDS Files We need to create new DDS files that have exactly the same format as original DDS files. So let's run texdiag command to get original texture information. > texdiag info Compressed_*.dds Output Example: Compressed_20A99052.dds width = 1024 height = 1024 depth = 1 mipLevels = 6 arraySize = 1 format = BC7_UNORM dimension = 2D alpha mode = Unknown images = 6 pixel size = 1365 (KB) See the "mipLevels" and "format" values. Now we can start creating DDS files, using texconv command for each image! (Example) > texconv -ft DDS -m 6 -f BC7_UNORM -y INPUT_FILE1.png > texconv -ft DDS -m 11 -f BC7_UNORM -y INPUT_FILE2.png > texconv -ft DDS -m 11 -f BC5_UNORM -y INPUT_FILE3.png Make sure that you specified the same mipLevels (-m) and format (-f) for each file. Now you should have modded files like this: ### Final Step: Write DDS Data into aif/asf Files In this tutorial, we're going to replace these 9 files: - GRP_2_BIN.cpk / pant01_smpl_01_[A,B,C]_alc.aif (contains a texture of Simple Panties) - GRP_2_BIN.cpk / bras01_smpl_01_[A,B,C]_alc.aif (contains a texture of Simple Bra) - GRP_2_BIN.cpk / CST02_CRDG_[A,B,C]_01.asf (contains body textures and mesh of Cardigan Costume) (Note: A,B,C means the boobs size variations. In this tutorial, we use the same texture among A,B,C.) Open each aif/asf file in your favorite hex editor. Search original DDS data block in aif/asf files, then replace the block with new modded data. More detailed steps: (1) In orignal DDS file, look at starting data block, skipping the first 148 bytes (BC7) / 128 bytes (BC5) header. (2) In aif/asf file, search the same data. This is where we place new data. (3) In modded DDS file, copy modded data to clipboard. (4) In aif/asf file, paste it. Done! That's all. Let's cook cpk file and run the game, enjoy.
Junsui Posted January 20, 2020 Posted January 20, 2020 Hope someone would upload their nude textures. I don't have any softwares for editing pictures other than paint. Even if I did have one, I doubt I'd do a great job at making textures 1
beard18 Posted January 20, 2020 Posted January 20, 2020 I created a texture but don't know how to edit the binary ... Copy everything from 94? This sentence is Google Translate. I can only speak Japanese. sorry...
JoeMesh Posted January 20, 2020 Posted January 20, 2020 On 1/18/2020 at 2:26 AM, kaz_69 said: This mod is to remove underwear in changing room. I won't upload GRP_2_BIN.cpk. It's 3.5gb and too big to upload. You'll be needing CRI File System Tools. Make sure to backup GRP_2_BIN.cpk 1.) Download and extract the mod 2.) Open CriPackedFileMaker. On right side click the diamond icon that open the cpk. 3.) Select Steam\steamapps\common\Bullet Girls Phantasia\cpk\GRP_2_BIN.cpk or wherever you put the GRP_2_BIN.cpk then Extract to new folder. It's beside Open CPK. 4.) Paste the mod inside the folder that GRP_2_BIN extracted. 5.) Open the CpkFileBuilder then press Insert or go to Edit then Add Files. 6.) Select Local Files. Select all the files GRP_2_BIN extracted including the mod then Add Files. 7.) Press F5 then follow the options i selected then Clean Build. Rename it to GRP_2_BIN.cpk and paste it Bullet Girl Phantasia\cpk. It's optional to check Tries force compression. It's about 8gb without compression. 8.) Finally you can choose the Striped Panties (Aqua) and Striped Bra (Aqua) to remove the underwear. Remove Underwear mod.zip 24.6 kB · 303 downloads After playing with this for a few hours, I've noticed it doesn't seem to work all the time. It will always show up in the changing room and the character select screen before missions. But sometimes when I get into a mission their underwear will be back on. I can't tell if it only happens to certain characters, but it happens often. 1
BGP0083 Posted January 20, 2020 Posted January 20, 2020 Thank you for the detailed explanation! Bras and pants were edited as per the turoria! However, skin editing do'nt work (Dose not load the editied skin texture, remains censored) -GRP_2_BIN.cpk / CST02_CRDG_[A,B,C]_01.asf(contains tectures and mesh of Cardigan Costume) How is the binary edited during the above work? (Is only [Compressed_FD84C396.DDS] edited?)
nepfunboy321 Posted January 20, 2020 Posted January 20, 2020 Thank you for the kind tutorial! The replacement of the texture was successful. 7
Guest Posted January 20, 2020 Posted January 20, 2020 @beard18 Yes, copy everything from 94h. @BGP0083 You should replace body textures (Compressed_2E8EF027, Compressed_50412B83, Compressed_FD84C396) in CST02_CRDG_[A,B,C]_01.asf.
Guest Posted January 20, 2020 Posted January 20, 2020 Please someone share the nude texture, I'll upload the entire GRP_2_BIN.cpk on Mega once the mod is complete, but I need the texture first. If you share the modded aif file is better, I'll make the cpk quickly and upload on mega right now
Guest Posted January 20, 2020 Posted January 20, 2020 Progress 2: Found vertex and UV values in asf file. But still needs to find where are the face indices...
errinn Posted January 20, 2020 Posted January 20, 2020 6 hours ago, alduin2000 said: Please someone share the nude texture, I'll upload the entire GRP_2_BIN.cpk on Mega once the mod is complete, but I need the texture first. If you share the modded aif file is better, I'll make the cpk quickly and upload on mega right now seconded, my F5 key can't take much more of this abuse. 1
nepfunboy321 Posted January 20, 2020 Posted January 20, 2020 CST03 texture is replaced. Textures are still bad, but Please try if you like I mistakenly replaced the C type texture Fixed @Suzutsuki Thanks for using, I noticed a mistake CST03_asf.7z 11
BGP0083 Posted January 21, 2020 Posted January 21, 2020 18 hours ago, arc037461 said: @beard18 Yes, copy everything from 94h. @BGP0083 You should replace body textures (Compressed_2E8EF027, Compressed_50412B83, Compressed_FD84C396) in CST02_CRDG_[A,B,C]_01.asf. Thank you! I was able to make skin changes.
Roufas Posted January 21, 2020 Posted January 21, 2020 On 1/18/2020 at 8:26 AM, kaz_69 said: This mod is to remove underwear in changing room. I won't upload GRP_2_BIN.cpk. It's 3.5gb and too big to upload. You'll be needing CRI File System Tools. Make sure to backup GRP_2_BIN.cpk 1.) Download and extract the mod 2.) Open CriPackedFileMaker. On right side click the diamond icon that open the cpk. 3.) Select Steam\steamapps\common\Bullet Girls Phantasia\cpk\GRP_2_BIN.cpk or wherever you put the GRP_2_BIN.cpk then Extract to new folder. It's beside Open CPK. 4.) Paste the mod inside the folder that GRP_2_BIN extracted. 5.) Open the CpkFileBuilder then press Insert or go to Edit then Add Files. 6.) Select Local Files. Select all the files GRP_2_BIN extracted including the mod then Add Files. 7.) Press F5 then follow the options i selected then Clean Build. Rename it to GRP_2_BIN.cpk and paste it Bullet Girl Phantasia\cpk. It's optional to check Tries force compression. It's about 8gb without compression. 8.) Finally you can choose the Striped Panties (Aqua) and Striped Bra (Aqua) to remove the underwear. Remove Underwear mod.zip 24.6 kB · 470 downloads Something I saw was in the story mode drilling for Silvia, Aya was in the "gallery" (aka one of the 3 girls around the main girl) and her panties were back to normal stripped panties model while the bra kept as a bandage, once I tested on the menu drilling it was working though so I don't know whats up with that, minor thing thought I would mention though.
KamiKaze234 Posted January 21, 2020 Posted January 21, 2020 21 hours ago, alduin2000 said: Please someone share the nude texture, I'll upload the entire GRP_2_BIN.cpk on Mega once the mod is complete, but I need the texture first. If you share the modded aif file is better, I'll make the cpk quickly and upload on mega right now Can't wait for this my man, i'm a total potato when in comes to editing T.T 2
Guest Posted January 21, 2020 Posted January 21, 2020 20 minutes ago, KamiKaze234 said: Can't wait for this my man, i'm a total potato when in comes to editing T.T I can edit, but I'm not good to draw nipples and bajina, so this is why I need a texture already edited professionally. About bajina, I prefer virgin shaved, so share this please, not hairy
Suzutsuki Posted January 21, 2020 Posted January 21, 2020 14 hours ago, nepfunboy321 said: CST03 texture is replaced. Textures are still bad, but Please try if you like I'm sorry, I checked A, but couldn't confirm B and C CST03_asf.7z 35.17 MB · 274 downloads Good job! 5
Guest Posted January 21, 2020 Posted January 21, 2020 Here is a useful tip for modders, about data structure. simple pseudo code: { char blockName[4]; // flipped string int blockSize; // counts from start of this block int _zero; // skip int childOffset; // counts from start of this block } For example, above data means: "AMF" block at 390h, blockSize=5557B0h, childOffset=0h "head" block at 3A0h, blockSize=40h, childOffset=40h "buff" block at 3E0h, blockSize=40h, childOffset=40h "addr" block at 420h, blockSize=60h, childOffset=60h ... With this understood, you can continue further research as follows.
hetfet Posted January 21, 2020 Posted January 21, 2020 Is there an alternative to SpecialK? The game freezes for me on startup with it and I cannot do anything. 1
RanceFan Posted January 21, 2020 Posted January 21, 2020 I am having the same issue as hetfet, SpecialK really doesn't play nice with my PC it seems. We will have to wait for some kind soul to upload the edited pack to Gdrive, which is why I've been refreshing this thread every couple of hours
fealow Posted January 21, 2020 Posted January 21, 2020 Good luck using special K if any poor soul has had to use a cracked copy of the game. The Special K dev basically has DRM built in due to some people trolling him in the past -_- P.S If anyone needs assistance with texture creation/editing I have experience with hentai art. If you can supply the textures in a usable format for GIMP I can get them edited and sent back. One other thing. Are there 3 main body types? A B and C for breast size? If so I can edit them to have their own unique features for the nipples and vagina such as color and size. 1
4Je2uS0 Posted January 22, 2020 Posted January 22, 2020 On 1/20/2020 at 2:17 PM, nepfunboy321 said: CST03 texture is replaced. Textures are still bad, but Please try if you like I mistakenly replaced the C type texture Fixed @Suzutsuki Thanks for using, I noticed a mistake CST03_asf.7z 35.1 MB · 31 downloads When I extract I get .asf files and I'm not sure what to do with them. There are none to replace and I don't want to blindly throw them into a folder (cpk) Are these files used in a step from 1 of the 2 great guides and work that people have posted? On 1/17/2020 at 11:26 PM, kaz_69 said: This mod is to remove underwear in changing room. I won't upload GRP_2_BIN.cpk. It's 3.5gb and too big to upload. You'll be needing CRI File System Tools. Make sure to backup GRP_2_BIN.cpk 1.) Download and extract the mod 2.) Open CriPackedFileMaker. On right side click the diamond icon that open the cpk. 3.) Select Steam\steamapps\common\Bullet Girls Phantasia\cpk\GRP_2_BIN.cpk or wherever you put the GRP_2_BIN.cpk then Extract to new folder. It's beside Open CPK. 4.) Paste the mod inside the folder that GRP_2_BIN extracted. 5.) Open the CpkFileBuilder then press Insert or go to Edit then Add Files. 6.) Select Local Files. Select all the files GRP_2_BIN extracted including the mod then Add Files. 7.) Press F5 then follow the options i selected then Clean Build. Rename it to GRP_2_BIN.cpk and paste it Bullet Girl Phantasia\cpk. It's optional to check Tries force compression. It's about 8gb without compression. 8.) Finally you can choose the Striped Panties (Aqua) and Striped Bra (Aqua) to remove the underwear. Remove Underwear mod.zip 24.6 kB · 570 downloads Wanted to make short but I can't. Like I don't see where I could shove a .asf file in this one. And the 2nd guide is beyond what I'm willing to do atm, but any info is greatly appreciated.
fealow Posted January 22, 2020 Posted January 22, 2020 21 minutes ago, 4Je2uS0 said: When I extract I get .asf files and I'm not sure what to do with them. There are none to replace and I don't want to blindly throw them into a folder (cpk) Are these files used in a step from 1 of the 2 great guides and work that people have posted? Wanted to make short but I can't. Like I don't see where I could shove a .asf file in this one. And the 2nd guide is beyond what I'm willing to do atm, but any info is greatly appreciated. From what I can tell you only get .dds files if the textures have been dumped using special K otherwise you'll simply get .asf if the .cpk has been unpacked directly. Does that make sense?
pitoloko Posted January 22, 2020 Posted January 22, 2020 Someone please could upload the entire patched file with nude texture applied for commodity of us?. I will suppose modders are aware about they can use any dedicated tool to build a patch of small megabytes/required size instead of uploading the entire file of 3 gb... One user in his comment already said he is not going to upload the entire modified file because it is big... dude, just use a diff patch generator like for example HDiffPAtch: https://github.com/sisong/HDiffPatch/releases/latest It's very easy to consume. Thanks in advance everyone.
4Je2uS0 Posted January 22, 2020 Posted January 22, 2020 51 minutes ago, fealow said: From what I can tell you only get .dds files if the textures have been dumped using special K otherwise you'll simply get .asf if the .cpk has been unpacked directly. Does that make sense? Thank you, after reading it a few times it does make sense. Although I was hoping to forego Special K as it's probably a bit to technical for me atm and I have a pirate copy so apparently that will not run for me. But thanks again for the reply, I will wait patiently for someone else's hard work. I might try and dabble a bit if I get desperate! Cheers!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now