Tutorial Unity How To Uncensor (Almost) Any Unity Game

Prick

Well-Known Member
Jul 17, 2017
1,981
1,716
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.

___________________________________________________________________________________________________
GAMES RELEASED AFTER 2023!
Read before you comment.
All games uploaded to DLsite after 2023 will feature two types of mosaic filtering to cover all sensitive materials per Japanese law.

The traditional shader mosaic will remain the same. However, developers are now required to also censor all textures within the game files.
Some developers were already doing this, but it was rare at best. Now it's a hard requirement for any game to be sold.

This likely means there is a team at DLsite using the same cracking tools as we are to manually check the game files.
Or the developers are being required to hand over the raw game files for review. I have not seen or heard what the exact process is.

All Japanese games released after 2023 will require both shader work, and artwork modifications to truly decensor.

For anyone looking to uncensor the latest releases, be prepared for the additional work of redrawing, or using Stable Diffusion to create new textures.

I'd love to add a section to this guide for using AI to decensor. But so far most of my experience with using AI for this task is lackluster at best.
I can assure you someone is probably working on a demosaic AI, but the current methods using Img2Img is not quite there yet.
Stay tuned.
___________________________________________________________________________________________________
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.

I stongly urge you to read the guide from top to bottom, to understand the context of the information found deeper into the guide.

What does this guide cover?
- Modifying material assets
- Modifying shader assets
- Removing monoscript assets
- Compressed assets
- Translating Unity games

What does this guide NOT cover?
- Hex editing - alternative method​
- Assembly-CSharp editing​
- Editing 3D textures - soon™​
- Editing 2D textures - unlikely​
- 3D modeling to replace in-game assets​


Anyone who cares to submit their process of modifying assets / code are more than welcome to. Anything shared with my eyes will probably end up in this very guide.
If you have some information, please do share it!​

Last thing before we begin.
If you notice any blatant mistakes within this guide, or anything left in need of further explanation, feel free to send me a PM or leave a comment.
I can easily make a correction, or add information where it's needed.
___________________________________________________________________________________________________
Noteworthy places to check for an existing uncensor
Useful



Starting to show the age of this thread, RIP Hongfire

ManlyMarco's Patreon
(Mostly Koikatsu related, but has some other projects.)
Check here:

___________________________________________________________________________________________________

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.
___________________________________________________________________________________________________

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.
___________________________________________________________________________________________________

Monoscript Mosaic Removal
Rare
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 3D
wip

WIP, this section is 3D Unity games which contain skin or otherwise any texture which can be exported, edited, and reimported to provide a custom or different flavor. Best example would be adding freckles to someone's skin, or changing their shirt color from red to blue. Something along these likes will be added here, but this method has big problems with certain games. Some games will accept your modded textures, other games will crash or go crazy.

I may eventually add an example of one of the few games I've had success with.
But otherwise 3D textures very rarely have anything to do with censorship, and should probably be left to the "pros" of decensoring.
___________________________________________________________________________________________________
Textures 2D
wip
Also WIP, this section is for 2D Unity games which have censors baked directly into textures.

I've had tons of mixed results here.

You can extract the textures from a game, edit them, but importing them back in can completely destory the format and break the image.
Most cases it just turns the whole texture gray or blue. I'm still working on that lol.

2D textures which are actually responsible for the censorship are tricky to begin with. I'm a decent artist myself, but I have a hard time emulating other people's art style. I also do not have any real professional editing software, so my tools are limited. In many cases, the workload involved with uncensoring a single game could be manually editing dozens if not hundreds of images by hand.

Any animations that are cut into frames and have a baked censor, could be in the thousands of images to edit by hand.

This will likely remain a WIP, or eventually just removed from the guide.

___________________________________________________________________________________________________
Registry Edit Mosaic
Very rare
You don't have permission to view the spoiler content. Log in or register now.

___________________________________________________________________________________________________
Manly Marco's automatic demosaic!
Resource
You don't have permission to view the spoiler content. Log in or register now.
___________________________________________________________________________________________________
Translating Unity Games
Resource
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
27,986
OP contains no pony yiff porn so it doesn't concern you anyway, Gab.
 
  • Like
Reactions: passiveDragon

nighthook

Newbie
Aug 8, 2017
28
40
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

Well-Known Member
Jul 17, 2017
1,981
1,716
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

Well-Known Member
Jul 17, 2017
1,981
1,716
"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
40
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

Well-Known Member
Jul 17, 2017
1,981
1,716
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

Well-Known Member
Jul 17, 2017
1,981
1,716
Updated the guide with a new method, might be fruitless for other games, but it's worth documenting.
 
  • Like
Reactions: forbidden101v

Prick

Well-Known Member
Jul 17, 2017
1,981
1,716
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
799
7,130
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
799
7,130
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
799
7,130
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

Well-Known Member
Jul 17, 2017
1,981
1,716
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.