Tool Unity [BepInEx][plugin] Texture Replacer v1.0.8.0

newer1988

New Member
May 9, 2024
6
0
From what I heard, they will support Chinese and Korean within two months.

if want to japanese version to uncensored now, it requires a bit of complicated work.
There are two main directions: one is to replace the assets file, and the other is to use texture_replacer.
Basically, you need the original images (mosaic) and the uncensored images.

Although it is explained in a complicated way in OP, another way is to extract the textures of each version with a tool like AssetRipper, and compare them with a tool like WinMerge to extract the images to be replaced.
It will be more of a headache if there are duplicate texture names, but the textures in this game do not seem to have duplicate names. (H scenes)
Just add "_" to the file name of the images to be replaced and put them in the ModImages folder. (the extension is .png)
I tried everything but it was too much for me.:cry:
 

kumarin

Engaged Member
Feb 19, 2022
2,044
2,962
run AssetRipper and "Open Folder" a jap game folder.
"Export - Export All Files"
select folder(I select "r:\1"), Export Primary Content
1733642099444.png
do same work with eng version. (I select "r:\2")

run WinMerge.
1733642347925.png
untick "Tree Mode" at "View" menu.
1733642556959.png
click "Comparion result" to descend order.
1733642759907.png
The files that appear against a yellow background are the ones that have differences.
select yellow items. (click top item, press shift + PgDn)
right click, Copy, Right to...
1733643051174.png
select folder to copy. (I select "r:\3")
run PowerShell and go to work folder. (in my case it is "r:\3")
forfiles /S /M *.png /C "cmd /c rename @file @fname_.png"
browse files and delete which not needed replaced.
install texture_replacer plugin and run game once.
move work folder to "BepInEx\plugins\ModImages\"
end.
 

newer1988

New Member
May 9, 2024
6
0
run AssetRipper and "Open Folder" a jap game folder.
"Export - Export All Files"
select folder(I select "r:\1"), Export Primary Content
View attachment 4310085
do same work with eng version. (I select "r:\2")

run WinMerge.
View attachment 4310088
untick "Tree Mode" at "View" menu.
View attachment 4310091
click "Comparion result" to descend order.
View attachment 4310093
The files that appear against a yellow background are the ones that have differences.
select yellow items. (click top item, press shift + PgDn)
right click, Copy, Right to...
View attachment 4310097
select folder to copy. (I select "r:\3")
run PowerShell and go to work folder. (in my case it is "r:\3")

browse files and delete which not needed replaced.
install texture_replacer plugin and run game once.
move work folder to "BepInEx\plugins\ModImages\"
end.
I was able to successfully make it uncensored! Thank you.
However, it takes a while for the image to be replaced.
 

Zippix

Well-Known Member
Sep 7, 2017
1,783
1,197
Hiya, would appreciate a little help here!

So, there is this Unity game from miconisomi from 2015 which I found a decent UI translation for, a couple of .PNG files basically, which would have to be changed in the assets. In the UI TL instructions, they mention a "Unity Asset Viewer" program with links, which can replace Texture2D assets without any hassle - but of course it cannot be found anywhere anymore (at least I couldn't), so I need a workaround.

This texture replacer seemed like a jackpot, but alas...

The relevant BepInEx (x86, mono, v5.X) crashes the game. To make matters more infuriating, their only a-little-bit-more-than-a-year older game from 2016, gladly starts up with BepInEx v5.X, also, the effing latest bleeding edge build (x86, mono, #729) actually starts up this 2015 game I need some assets replaced in, but your plugin -as luck would have it- won't work with it... xD

I know this is maybe more a BepInEx question, but do you perhaps have a recommendation, kumarin? Honestly, if there's something that can decompile the assets and then recompile with those few translated .pngs, would be fine by me - any suggestion welcome; but maybe there is a way to make this work with the latest bleeding edge version?

Thx.
 

kumarin

Engaged Member
Feb 19, 2022
2,044
2,962
Hiya, would appreciate a little help here!

So, there is this Unity game from miconisomi from 2015 which I found a decent UI translation for, a couple of .PNG files basically, which would have to be changed in the assets. In the UI TL instructions, they mention a "Unity Asset Viewer" program with links, which can replace Texture2D assets without any hassle - but of course it cannot be found anywhere anymore (at least I couldn't), so I need a workaround.

This texture replacer seemed like a jackpot, but alas...

The relevant BepInEx (x86, mono, v5.X) crashes the game. To make matters more infuriating, their only a-little-bit-more-than-a-year older game from 2016, gladly starts up with BepInEx v5.X, also, the effing latest bleeding edge build (x86, mono, #729) actually starts up this 2015 game I need some assets replaced in, but your plugin -as luck would have it- won't work with it... xD

I know this is maybe more a BepInEx question, but do you perhaps have a recommendation, kumarin? Honestly, if there's something that can decompile the assets and then recompile with those few translated .pngs, would be fine by me - any suggestion welcome; but maybe there is a way to make this work with the latest bleeding edge version?

Thx.
if game client is below Unity 2017 ? like an Unity 5 or 4, use BepInEx 5 and edit BepInEx\config\BepInEx.cfg as
Type = MonoBehaviour
Type = Camera will be works too.
 
  • Heart
Reactions: Zippix

Zippix

Well-Known Member
Sep 7, 2017
1,783
1,197
if game client is below Unity 2017 ? like an Unity 5 or 4, use BepInEx 5 and edit BepInEx\config\BepInEx.cfg as

Type = Camera will be works too.
Welp, hooray, it started up! Version was apparently 4.6.4. (though the other game, with which BepInEx 5.X worked out of the box, was 5.5.1.).
I actually tried to change things in the .cfg, but since this wasn't even offered in the file at that 'entrypoint assembly' selection part -only 'Application' was mentioned, and as default-, I never would have figured this out! Thank You!

Now let's see if I can get the replacer to work...
---------
Oopsie, spoke too soon:
Guess I'll try with 'Type = Camera'. Am I even using it at the right place in the .cfg file?

Well, no dice unfortunately: using v5.4.23.2, 'Type = MonoBehaviour', having the 'Texture_Replacer_BE5.dll' in the 'plugins' folder, and having the same named .png files in 'plugins\ModImages' doesn't do anything unfortunately. Nothing is noted in the console window, either... Sad.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
Any ideas? ALT+F11 isn't doing anything either.
 
Last edited:

Zippix

Well-Known Member
Sep 7, 2017
1,783
1,197
You don't have permission to view the spoiler content. Log in or register now.
Well, after immense hardships, I managed to make it work with XUnityAutoTranslator's texture translation function, for which I got the tip from this thread.
I needed to set 'EnableLegacyTextureLoading' to true in its config file - but maaan, this was such a long trial and error. lol
This option was also probably why I was able to succeed after all, and probably has to do with the game being an older Unity version, as you have suspected kumarin. Guessing something similar is not implemented in texture replacer, which is why I wasn't able to make it work that way, even though everything seemingly was set up correctly.

Anyhow, thanks for the help!
 
  • Like
Reactions: kumarin

ivyxyn

Newbie
Jan 29, 2020
59
105
Well, after immense hardships, I managed to make it work with XUnityAutoTranslator's texture translation function, for which I got the tip from this thread.
I needed to set 'EnableLegacyTextureLoading' to true in its config file - but maaan, this was such a long trial and error. lol
This option was also probably why I was able to succeed after all, and probably has to do with the game being an older Unity version, as you have suspected kumarin. Guessing something similar is not implemented in texture replacer, which is why I wasn't able to make it work that way, even though everything seemingly was set up correctly.

Anyhow, thanks for the help!
0.jpg
1.jpg
2.jpg

In my way,I edit Assembly-CSharp.dll to replace Texture2D and Text for this game.
 

Zippix

Well-Known Member
Sep 7, 2017
1,783
1,197
In my way,I edit Assembly-CSharp.dll to replace Texture2D and Text for this game.
That would be mission impossible for my current self lol - though congrats.
Looks good and clean. I'm happy I was able to make it work this work-aroundish way with BepInEx - the TL and images are good in the UI TL version I grabbed from somewhere, God knows when, as well.