Tutorial Unity How To Uncensor (Almost) Any Unity Game

Prick

Well-Known Member
Jul 17, 2017
1,997
1,733
So they UABE hasn't had an update in quite some time now causing newer unity games to error on dumps.
This is going to be very useful in the future, granted UABE never gets another update.
I've already come across a number of games which are built in the latest versions of unity.
I have absolutely no knowledge on hex editing, so if I add this to the OP I will probably do some research first.
Thank you for the share!
 

herbstpoet

Active Member
Apr 18, 2018
605
1,387
Expanding on the "Shader Mosaic Removal" portion of the guide.
So they UABE hasn't had an update in quite some time now causing newer unity games to error on dumps.

If you see View attachment 998096 while trying to dump the shader there is still hope.



Instead of "Export Dump" you need to "Export Raw" which will create a .dat file.

Now you will need a hex editing tool for the next step. I will be using .

Open the .dat file in your hex editor and find Search -> Replace or Ctrl+R in HxD
View attachment 998114

The replace window will come up, make sure to switch the tab from Text to Hex.
View attachment 998121

We will be replacing 00 00 00 00 00 70 41 09 00 00 00 with 00 00 00 00 00 00 00 09 00 00 00. Also make sure you change the search direction to all for safe measure. Then hit Replace all.
View attachment 998131

Save the file and go back into UABE and just like other methods import the raw(instead of dump) and save.

WARNING: This method will replace ALL float values of 15 and make them 0 not just the colMask if there are any. I have yet to come across a shader that has other float 15s though. Always make backups.
Did exactly what you said and still get an empty scene. I think I'll give up.
 

cooperdk

Engaged Member
Jul 23, 2017
3,375
4,907

funog1

Member
Modder
Mar 2, 2017
420
2,333
Insult Order (Unity game) needs a working uncensor.
The game is uncensored though, says so in the file name(I downloaded it to make sure) +
You don't have permission to view the spoiler content. Log in or register now.
right after loading the game. Don't use the launcher, go into GameData and start from io.exe. Also BepInEx 5.x.x won't work on older unity games like this, you need a legacy version. Which is already included...


Back to my original reason for coming back here...

Has anyone come across a censor where it was part of an atlas? Just came across my first in Train a student and managed around it but the method I went with leaves a semi-transparent box where the censor used to be.

You don't have permission to view the spoiler content. Log in or register now.
So any info on this or the atlas system would be helpful.
 
Last edited:

Prick

Well-Known Member
Jul 17, 2017
1,997
1,733
Insult Order (Unity game) needs a working uncensor.
IO is notorious for problems like this.
Make sure the game isn't saved in a ridiculously long file path either.
Funog is correct, the normal launcher doesn't work with modded content.

This is the kind of texture where the mosaic is as you can see in the bottom right corner.
Admittedly, I didn't spend much time on this because the game is nothing. I might dig deeper if I find another game using an atlas this way. I know 0 about how the atlas system works.
Not sure about atlas myself..
Did that raw image extracted from the game actually have an alpha channel?
My first guess is that you tried using MS paint eraser.
 
  • Like
Reactions: funog1

funog1

Member
Modder
Mar 2, 2017
420
2,333
Did that raw image extracted from the game actually have an alpha channel?
I didn't even think about that when I was going through the steps. I was exporting as png and just removing the mosaic in photoshop, I always thought leaving a transparent background was a direct affect on alphas since they don't have actual alpha channels. Boy was I wrong. Transparency layers are a thing and I know this now. Fixed up the transparency layers and lo and behold it worked, kinda. They came out with weird artifacting. Gonna assume that was because of a higher version of unity than UABE can do. Switched over from png to tga and everything seems to work properly. Good call, thanks. Now I learned 2 new things today. :p
1611545145467.png
 
Last edited:
  • Like
Reactions: noxtek and Prick

Prick

Well-Known Member
Jul 17, 2017
1,997
1,733
. . .Good call, thanks.
Welcome to it. Texture modding is a pain in the dick, something always seems to break or look like shit.
Hence why the guide is still missing texture modding.
I need a consistent method, but every game acts different.

UABE also gives a ton of options for DXT / BC compression formats.
Couple tips on that, DXT4+ supports alpha channels. Same case for BC4+.
Lower compression formats will break the alpha channel, and butcher normal maps.
If the game is running on DX11 just use BC7.
 

noxtek

Well-Known Member
Modder
Aug 19, 2017
1,268
7,956
Expanding on the "Shader Mosaic Removal" portion of the guide.
So UABE hasn't had an update in quite some time now causing newer unity games to error on dumps.

If you see View attachment 998096 while trying to dump the shader there is still hope.



Instead of "Export Dump" you need to "Export Raw" which will create a .dat file.

Now you will need a hex editing tool for the next step. I will be using .

Open the .dat file in your hex editor and find Search -> Replace or Ctrl+R in HxD
View attachment 998114

The replace window will come up, make sure to switch the tab from Text to Floating point number.
View attachment 999476

We will be replacing 15 with 0. Also make sure you change the search direction to all for safe measure. Then hit Replace all.
View attachment 999474

Save the file and go back into UABE and just like other methods import the raw(instead of dump) and save.

WARNING: This method will replace ALL float values of 15 and make them 0 not just the colMask if there are any. I have yet to come across a shader that has other float 15s though. Always make backups.
Edit: Change of method because me wos smooth brain during the original post.
Interesting approach, i will abuse it while we wait a new UABE ^-^ Thanks.
 

Chaosloo

New Member
Feb 25, 2020
9
1
I was wondering how do I know if a CG has embedded censor or add on censor. Was uncensoring a game called Princess Defender and the shader method works quite well. The CG however are still censored, so I was wondering if it's unremovable embedded censor or another shader is censoring it. The CG are animated. Edit: After some digging around with Unity Asset Studio I saw the penis in the CG is available uncensored, still no idea how to deal with it tho.
1612155208767.png 1612155271926.png 1612158573244.png

Password: wqe21edsafvwg2wrtasdf
Credit to dood from ULMF for the link
 
Last edited:

funog1

Member
Modder
Mar 2, 2017
420
2,333
I was wondering how do I know if a CG has embedded censor or add on censor. Was uncensoring a game called Princess Defender and the shader method works quite well. The CG however are still censored, so I was wondering if it's unremovable embedded censor or another shader is censoring it. The CG are animated.
Browse the textures in AssetStudio.
1612157384464.png
The game seems to have a mix of censored and uncensored textures. The full scenes seem to use censored textures and the smaller animations are uncensored with shader mosaics. I have never seen a game use 2 different types of mosaic shaders overlay at the same time. A way to tell the difference is if the mosaic shimmers or changes colors while it moves then it's a shader, if the color stays the same while moving it's probably a texture.
You don't have permission to view the spoiler content. Log in or register now.
 

Chaosloo

New Member
Feb 25, 2020
9
1
Browse the textures in AssetStudio.
View attachment 1014417
The game seems to have a mix of censored and uncensored textures. The full scenes seem to use censored textures and the smaller animations are uncensored with shader mosaics. I have never seen a game use 2 different types of mosaic shaders overlay at the same time. A way to tell the difference is if the mosaic shimmers or changes colors while it moves then it's a shader, if the color stays the same while moving it's probably a texture.
You don't have permission to view the spoiler content. Log in or register now.
So I assume I can't decensor it but I can replace the texture with the uncensored one correct?
 

Chaosloo

New Member
Feb 25, 2020
9
1
If you have a decent replacement sure. For your game the full scenes would require a redraw.
Kek, guess not then, thx for the help anyway, have a nice day.
Also would be nice if someone put this game up on F95, quite the fun game I'll say, and as expected its MTL.
 

Chaosloo

New Member
Feb 25, 2020
9
1
So got a game and trying to uncensor it, good news is that the mosiac is not applied directly on the texture they are shaders. Bad news is that UABE cant seem to open the file so I can't really edit it. The game in question is Train Molestation [Hurricane Dot Com]. I included the entire asset file if you need it.

1612286285492.png
 

funog1

Member
Modder
Mar 2, 2017
420
2,333
So got a game and trying to uncensor it, good news is that the mosiac is not applied directly on the texture they are shaders. Bad news is that UABE cant seem to open the file so I can't really edit it. The game in question is Train Molestation [Hurricane Dot Com]. I included the entire asset file if you need it.

View attachment 1017018
Hrm, it looks like the game was built on Unity 2020.1.14f1 which is way ahead of UABE unfortunately and it won't be able to open it.
I see 3 methods to get around this.

1. You could edit the Assembly-CSharp.dll if you know what to do. I didn't bother to try it because it's filled with moonrunes and engrish, I did see a MozaActive though.

2. A slightly different approach to this method. Which I will update in a bit. Has been updated.

3. Easiest method: Drop BepInEx into the game folder along with DumbRendererDemosaic(should work)
 
Last edited:
Nov 22, 2018
257
231
Seeking help on uncensoring .
Its version is too new to use UABE to open, so I can only edit the Assembly-CSharp.
The game can be partly uncensored, but the see-through cut-in can't be.
Here is my partly uncensor patch. It also increases the lv to max at the beginning, and slows the speed of the gauge to 1/10.
Hope someone can complete the uncensoring.