CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Tutorial Unity How To Uncensor (Almost) Any Unity Game

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
Welcome lads, and ladies (I know you're out there) to my own personal guide to taking blocks off of your fap material!
___________________________________________________________________________________________________

Before we begin, take a note that if you are looking to get into uncensoring games, there will be some software requirements.

You should be fairly familiar and comfortable with a computer.
This does not mean you need to be a tech wizard, but I'm not going to explain how to copy + paste.

___________________________________________________________________________________________________
You don't have permission to view the spoiler content. Log in or register now.

___________________________________________________________________________________________________
JAPANESE GAMES RELEASED AFTER 2023!
PLEASE read before you comment.
As of 2023, all games uploaded to DLsite are under additional scrutiny for any uncensored artwork within the game files.
This means all raw textures must be censored to be hosted by DLsite.

We can only assume DLsite has a method to check that game assets are censored before a game can be sold on their website.

This all goes back to Japanese law.
DLsite is hosted in Japan, uncensored pornographic material of any kind is punishable by law.


What does this mean for us?

More work.

Disabling a shader has become trivial with the usage of auto demosaic plugins via BepInEx.
We don't even have to modify game assets anymore.

But now, it's a hard requirement that textures will need to modified to properly uncensor games.


What does this mean for you?
Check the release date for any game you want to uncensor.
If it's 2023 and later, it's a guarantee that all of the internal assets are censored.

If you want to be sure, use Unity Asset Studio to browse the data folder, sort by type, and scroll down to the Texture2D section.
Find the textures for characters and look for mosaic patterns directly on the artwork.

Fortunately you can still export and create patches for textures, but this is a completely different skill set from what you can learn in this thread.


Please avoid posting help comments for games released after 2023.
Even if you are able to disable the shader correctly , the textures are probably still censored. You still have work to do.

___________________________________________________________________________________________________
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
The guide before you is not 100% my own original hard work. This is the accumulated result of lurking and researching.
I did the work and compiled everything into this guide, but I'm not exactly a tech guru.


Please consider reading this entire guide from top to bottom.
Some information later on will be confusing with context found earlier.


If you are pioneering anything new in this field, please feel free to share it in the comments!

We desperately need artists!
We need people who can make comfyUI workflows to decensor textures!
We need code savants who can make new plugins!


___________________________________________________________________________________________________

How do I know if my game can be uncensored?
Read before you comment.
You don't have permission to view the spoiler content. Log in or register now.
How do I know if my game should be uncensored?
PLEASE read before you comment.
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________

What is BepInEx? How do I install it? Why isn't it working?
Resource
You don't have permission to view the spoiler content. Log in or register now.

___________________________________________________________________________________________________

Unity Asset Bundle Extractor
Required
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.
___________________________________________________________________________________________________
Unity Asset Studio
Resource
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________

* * * * * CRITICAL INFORMATION * * * * *

MAKE A BACKUP BEFORE YOU MAKE ANY EDITS!
CREATE A COPY AND STORE IT IN A SEPARATE FOLDER!

___________________________________________________________________________________________________

How do I save my modified asset?
Important
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________

Material Mosaic Removal
Common
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Material Mosaic Removal Alternative
Uncommon
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Shader Mosaic Removal
Very common
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Compressed Assets
Uncommon
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Textures
wip
This section is intentionally left blank.

Feel free to make your own effort to pioneer proper texture modding.

Best to check the BepInEx section at the top of the guide, and use the texture replacer plugin.

I've had wildly different results when trying to export and import textures directly from the game files.

I am also not much of a graphics artist, it's a chore to get good looking overwrites that match the rest of the artwork.

Hopefully soon we will have a proper demosaic AI, like a comfyUI workflow that can do all the hard work for us.

Best of luck.

I do want to give mention to an F95 user, yuumura who has been posting texture edits in the thread.
Here's a few to check out.
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Registry Edit Mosaic
Very rare
You don't have permission to view the spoiler content. Log in or register now.

___________________________________________________________________________________________________
UABE and UABE-A crash or error on dump

You don't have permission to view the spoiler content. Log in or register now.

___________________________________________________________________________________________________
Game Requests
Link to existing game threads on here or other forums is recommended.

If it's a dlsite title, just share the RJ # / RE #, that's adequate enough to find the title.

You're more than welcome to discuss, and request help in the comments.

TBA :
Texture editing has been missing for over a year now, and it still gives me trouble.
Some new alternative methods have appeared in the comments, but are a little more convoluted.
 
Last edited:

xןʞ

I trolled so N7 could soar.
Staff member
Moderator
Donor
Jul 19, 2017
3,052
28,734
OP contains no pony yiff porn so it doesn't concern you anyway, Gab.
 
  • Like
Reactions: passiveDragon

nighthook

Newbie
Aug 8, 2017
28
43
Thanx for guide it was helpful, i tried it with a game and it worked ( like a glove :cool:) the material file i found called "moza", now i'm trying to do the same with another game "Sangoku Musou Empress of Tragedy" but i'm stuck, I've found 2 material files called "pixelate" and a shader file with the same name, the problem is this line :
0 pair data
1 string first = "_BlockSize"
0 float second = 1.000000
is missing in the files
i will include these 3 files so if someone can examine them and come up with a fix, and in the meantime i will mess with them until i get some good result.
 

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
0 pair data
1 string first = "_BlockSize"
0 float second = 1.000000
is missing in the files
i will include these 3 files so if someone can examine them and come up with a fix, and in the meantime i will mess with them until i get some good result.
I have the same issue with a multitude of other games. If the material export does not contain the line for blocksize, the method here won't work. I believe I mentioned that somewhere up there.
Another trick is to try replacing the mosaic shader with another shader that does nothing.

Also chances are, the pixelate shader controls something unrelated to a mosaic censor. If you are dealing with non English games, sometimes the devs have their own way of saying "vagina censor" et cetera. For specific games, you might look on hongfire or ULMF and see if there is a thread. You might get lucky and find someone has already done the work.
 

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
"Sangoku Musou Empress of Tragedy"
Heres an uncensor from ULMF

^this might be outdated so make a backup
If it doesn't work, look into sharedassets0 and see if you can find what they changed, it may still work in the new version, but the asset file itself is incompatible. All the uncensor posts after this one are dead.
 
  • Like
Reactions: Skyzenski

nighthook

Newbie
Aug 8, 2017
28
43
thanx for the asset file, i found what they changed in the material file the shader file was intact, i was in the right path i knew what code i have to change the only thing i didn't have are the right numbers.
this was the censor version :
1 string name = "_CellSize"
0 ColorRGBA second
0 float r = 0.00999999978
0 float g = 0.00999999978
0 float b = 0
0 float a = 0
before i have the asset file from your link i changed the value of r and g by 1 and i had some result but not what i wanted.
this is what the new uncensor file have :
1 string name = "_CellSize"
0 ColorRGBA second
0 float r = 1.17549435e-038
0 float g = 1.17549435e-038
0 float b = 0
0 float a = 0
i know that this values are for colors but i don't how they come up with this exact values, i think i have some digging to do, anyway thank you for the help :biggrin:.
 

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
Here is a tool that has been around for years. . .
SBU3 is a monster of a program. I've tried to use it a number of times, and it's more of a modder's resource than anything else. It's also coded to work with Illusion games specifically.
You don't have permission to view the spoiler content. Log in or register now.
 
  • Like
Reactions: Cirro84

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
Updated the guide with a new method, might be fruitless for other games, but it's worth documenting.
 
  • Like
Reactions: forbidden101v

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
I know that I have used it in the past for Artificial Girl 3 along side other programs. But I did not know if it could be used for applications for other unity games, because it has been used for Illusion unity games. Thanks for clearing that up.
Well, Illusion games use .unity3d files, so maybe any other Unity projects who use a similar file structure could be explored with SB3U in theory. But as far as I know, the resource was programmed around modding Illusion games. So any support would need to be added for modding other games.
 

Michael Bauer

Newbie
May 3, 2018
33
9
SBU3 is super useful to go through the files visually. Sometimes the names won't say anything, but with SBU3 you can just flip through the files and directly look at them. Currently I am using it as a file viewer only and it works great.
 

forbidden101v

The Hentai Witcher
Modder
Jun 2, 2018
802
7,434
SBU3 is super useful to go through the files visually. Sometimes the names won't say anything, but with SBU3 you can just flip through the files and directly look at them. Currently I am using it as a file viewer only and it works great.
What does SBU3 stand for? I'm some what interested in this program.
 

Michael Bauer

Newbie
May 3, 2018
33
9
What does SBU3 stand for? I'm some what interested in this program.
Look at . :) Basically download it from . Newest version should be .

I am currently trying to uncensor Basement, a random unity game that I found, and it is harder than it looks. As far as I understand the uncensoring mechanics of this game, it's a mixture of hard censored images (nothing we can do here) and a black censoring dot that is put in front of the non-censored images.

It seems, I can't extract the images well, it seems to be kinda buggy. *.bmp shows strange behaviour with various image viewers and *.tga seems to change colours when I try to export the image. It's super strange and I have no clue why it happens.

This is how the whole sprite image with the censoring dot looks like as a png (converted from tga): The colour turned violet. XD

EDIT: Will try to export the image via AssetsBundleExtractor. Perhaps exporting images works better with that tool.
 

forbidden101v

The Hentai Witcher
Modder
Jun 2, 2018
802
7,434
Look at . :) Basically download it from . Newest version should be .

I am currently trying to uncensor Basement, a random unity game that I found, and it is harder than it looks. As far as I understand the uncensoring mechanics of this game, it's a mixture of hard censored images (nothing we can do here) and a black censoring dot that is put in front of the non-censored images.

It seems, I can't extract the images well, it seems to be kinda buggy. *.bmp shows strange behaviour with various image viewers and *.tga seems to change colours when I try to export the image. It's super strange and I have no clue why it happens.

This is how the whole sprite image with the censoring dot looks like as a png (converted from tga): The colour turned violet. XD

EDIT: Will try to export the image via AssetsBundleExtractor. Perhaps exporting images works better with that tool.
I can help you with the black dot part possibly if you want but theres not much I can help you with art wise because I suck in that department still. Also thanks for pointing out that post about SBU3. Program seems more geared towards 3d games though so I doubt I will use it much.
 

Michael Bauer

Newbie
May 3, 2018
33
9
Also thanks for pointing out that post about SBU3. Program seems more geared towards 3d games though so I doubt I will use it much.
Currently I only use SBU3 for browsing quickly through the images. It's much more comfortable that way. ^^

I managed to export the sprite correctly as *.tga via UABE. SBU3 doesn't seem to work correctly here or I am doing something wrong; doesn't matter anyway. I also managed to delete the censoring dot from the sprite and saved the new file correctly.

The dot is now gone, sadly I have to redraw/uncensor the hard-censored images to actually make the game uncensored. Not sure if I am gonna do it, probably not, but yeah, this whole thing seems to work. Great job, OP. ^^

censoring dot
dot.PNG

censoring dot removed
dot_gone.PNG
 

forbidden101v

The Hentai Witcher
Modder
Jun 2, 2018
802
7,434
Currently I only use SBU3 for browsing quickly through the images. It's much more comfortable that way. ^^

I managed to export the sprite correctly as *.tga via UABE. SBU3 doesn't seem to work correctly here or I am doing something wrong; doesn't matter anyway. I also managed to delete the censoring dot from the sprite and saved the new file correctly.

The dot is now gone, sadly I have to redraw/uncensor the hard-censored images to actually make the game uncensored. Not sure if I am gonna do it, probably not, but yeah, this whole thing seems to work. Great job, OP. ^^

censoring dot
View attachment 176388

censoring dot removed
View attachment 176389
deusvult.jpg
 

Prick

Engaged Member
Jul 17, 2017
2,147
1,956
I am currently trying to uncensor Basement, a random unity game that I found, and it is harder than it looks. As far as I understand the uncensoring mechanics of this game, it's a mixture of hard censored images (nothing we can do here) and a black censoring dot that is put in front of the non-censored images.
Unfortunately you ran into one of many games which takes an extra skill set to work on. I was interested in uncensoring a few flash games not too long ago, and after realizing that it involves individually editing thousands of images for their respective frame, I said hell no.
You don't have permission to view the spoiler content. Log in or register now.
I prefer my mental sanity intact. When you find a game where the mosaic / censor is not a shader, or post process, it is instantly 100x more difficult to remove it because it's baked into every frame.

I haven't tried opening other Unity games and their assets within SBU3, I know I was forced into using it to make some modifications for some Illusion mod at some point, but after that I've never needed it. As I said to the other user who brought it up, it's a massive modder's resource... which includes the learning curve involved with using it.

You can also take a look at post #10, which has the spoiler attached showing the officially supported game meant for SBU3. This was pulled directly from the HF thread. So if you use that program to modify any other game, it shouldn't be a big surprise if you wind up with some problems.