[Unity] [Tutorial] How To Uncensor (Almost) Any Unity Game

Prick

Well-Known Member
Jul 17, 2017
879
523
#61
But it seems like the genitalia are, transparent. . .
That's likely a side effect of tweaking the shaders manually.
There's no telling which string caused it unless you change them one by one.
That's a monu-mental task. I'm impressed you got that far my dude. Well done.
 

Greywraith

New Member
Oct 27, 2017
4
0
#62
There's no telling which string caused it unless you change them one by one.
Yeah that's exactly what i did lmao.
I like edited 10 of the values, checked the result, reset the values and edited 10 other values.
Once i did a hit, i edited one of those 10 values one at a time to see its effect.
Dedication is one hell of a drug.

Likely, there's another value relating to coloring or alpha somewhere that adds in transparency, after all the moisac needs to be transparent, i removed a mosaic, but not its transparency.
 

Prick

Well-Known Member
Jul 17, 2017
879
523
#63
Dedication is one hell of a drug. . .
If you didn't, you should take notes in notepad or wordpad to keep track of what you've done.
Trying to remember each one, esp when there is hundreds of them, is a much bigger pain.
For example, if you find that

1 string first = "_CellSize"
0 ColorRGBA second
0 float r = 0.015000
0 float g = 0.015000
0 float b = 0.000000
0 float a = 0.000000

has a desired change, write down the string name and the original values, then keep making tweaks to see what happens.
This has been effective for me in the past. But generally I avoid fucking with the shader strings, because you usually just end up with glitchy or pink textures.
 
Feb 7, 2019
38
40
#64
Can't contribute much, but done a lot of Assembly-CSharp editing in Unity games. Personally tried two different ways, with , and . I prefer ILSpy 3.2+Reflexil because of the UI and how much easier it is to analyze a specific type or field to see what reads from or writes to it, and therefor easier to locate exactly what you want to change. Reflexil(What allows you to edit the file) can be a bit daunting at first since it displays in assembly, but its fairly straight forward and easy for simple value edits. Could write up a simple point-for-point tutorial if the need is there, though for the most part like mentioned its fairly straight forward.
 

Prick

Well-Known Member
Jul 17, 2017
879
523
#65
Could write up a simple point-for-point tutorial if the need is there, though for the most part like mentioned its fairly straight forward.
While I wouldn't mind the knowledge, you would need to be fairly concise.
Not only with with language and means of explaining, but you need to keep the topic at hand in mind.
I don't need an in depth course on C#, I wouldn't need any help if I had the patience lol.

So if you really want to help, successfully uncensor a game - only by modifying the assembly file.
Then write up a 'how to' ... what steps you took, what strings you searched for, and what changes you made to get the desired result.
I have tried a few times to do this myself, and I get lost in a sea of spaghetti. Since I'm not familiar with programming languages I really don't know what I'm looking for. That's my biggest issue. I can locate shader mosaics, but I don't have the first clue what I'm supposed to do with the present code.

Any help is wholeheartedly appreciated. Just don't write a 10 page essay :)
 
May 9, 2017
89
56
#66
So I've got this game here:



I found the mosaic field material and changed the block size to 1 and to my amazement that actually worked straight off the bat! However it wasn't long before I noticed that there are still scenes that the mosaics appear in as you progress further into the game. The game functions in an "activity" sort of fashion where you just select the thing you wana do from the menu and then it takes you to the room and plays out that interactive set of animations.

Also "MosaicField" appears to be in every single shared asset file, but editing one seemed to change all the others too, not sure if thats a problem? But I'm not really seeing any other names that would suggest mosaics so the fact that they are there in some scenes and not others is a little baffling.

Any thoughts?

(Oh before anyone gives me evils because the game has R*ape in it's title, it's actually strangely consensual because she appears to be a little bit loopy and gets off on all the shit she asks you to do to her).
 

Prick

Well-Known Member
Jul 17, 2017
879
523
#67
I have also looked into this game, I gave up on it. Mostly because the mosaic has got some kind of protection, and because the game is a bit fucked up.
More than likely going to need a modified assembly and a plugin environment.
 
May 9, 2017
89
56
#68
I have also looked into this game, I gave up on it. Mostly because the mosaic has got some kind of protection, and because the game is a bit fucked up.
More than likely going to need a modified assembly and a plugin environment.
Editing the block size did actually remove the mosaics for the majority of the scenes though so i'd say it's a mostly succesful uncensor, are you sure you tried to uncensor this game or the game prior to it in the series? Anyway the remaining scenes that are still censored have a weird property where if you view the mosaics through a transparent material at certain angles the mosaics disappear.
 

forbidden101v

The Hentai Witcher
Uploader
Jun 2, 2018
470
3,505
#69
Editing the block size did actually remove the mosaics for the majority of the scenes though so i'd say it's a mostly succesful uncensor, are you sure you tried to uncensor this game or the game prior to it in the series? Anyway the remaining scenes that are still censored have a weird property where if you view the mosaics through a transparent material at certain angles the mosaics disappear.
Send me a download of the game and I'll take a look at it.
 
May 9, 2017
89
56
#70
Send me a download of the game and I'll take a look at it.
Alright, I'll Pm you once it's uploaded. I'll leave the MosaicField with the same blocksize as I have it set to for the uncensor, but if for whatever reason you want to revert it just change it back to 8.
 

forbidden101v

The Hentai Witcher
Uploader
Jun 2, 2018
470
3,505
#71
If you are talking about those white things those aren't callled mosaics even though thats clearly their purpose. I've been playing around with this using the bepinex unity plugin manager and I found by disabling Bip0_hiroin Xtra01 which is the white cylinder object on the vagina and Bip0_hiroin 肛門 which translates to anus and as you guessed its the other object censoring the asshole. Theres also the two censors on the womb called Bip0_hiroin 膣 and Bip0_hiroin 膣02 which is a child game object of Bip0_hiroin 膣 yet oddly enough instead of translating to womb its vagina.

So I tried coding a demosaic dll file for it but unfortunately I still suck at C# let alone doing a demosaic of that level and failed really hard. So then I had another "great idea" that was likely to go wrong. Just delete the meshes using Unity Asset Bundle Extractor! Now surprisingly I had some success. I managed to get the one thats on the vagina (not the womb ones) without breaking the game but after that its more so can I find the other 3? I don't know tbh. Now if you want to search for them and try deleting them all I'll summarize what you need to do. No guarantee that deleting the other meshes won't break the game but its worth a shot right?

Delete these meshes using Unity Asset Bundle Extractor

Bip0_hiroin Xtra01: can be found in sharedassets1.assets
Bip0_hiroin 肛門: I have no clue where the asshole one is
Bip0_hiroin 膣: Same thing with the womb one. No idea where it is.
Bip0_hiroin 膣02: No idea but I imagine it will be with the Bip0_hiroin 膣 mesh since its the parent of it.

I haven't searched through all the assets but I've already been at this for a little over 2 hours and I feel like taking a break. I just figure if you wanna get a jump start and try to solve it as quickly as possible I would share what I know and you can take it from where I left off. In the event this idea is a complete failure I know someone who very good with C# assembly and has coded quite a few demosaics for me in the past. Best of luck!
 
Likes: Prick
Nov 11, 2017
2
1
#72
Just wanted to mention couple of metods i'm using when trying to demosaic my games. Spmetimes they work, sometimes they don't. One is fast and simple, the other is really tedious. Both are done with unity asset bundle extractor
First metod is really similiar to Material editing. Thу only difference is the value we're interested in changing is
Code:
int m_CustomRenderQueue =
Usually setting it to 0 will turn the material off without breaking anything. But sometimes it wont' and the mosaic will still be there.
This metod worked on "Escape from ruined hospital with a girl who lost her emotions"

The second metod is also dump editing, but this time of "game object" type of file. There we want to edit
Code:
bool m_IsActive = true
to
Code:
bool m_IsActive = false
but in most cases there's many mosaic-type game objects (i've edited 120 in one game), this metod has worked with game "Yiu ~forgotten girl~"

hope you find this info usefull
 
Likes: Prick

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.