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

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

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
I'm trying to get Texture Replacer to work with AQE but I'm having issues with it, it doesn't want to work and I'm clueless with the HarmonyX warning I'm getting in the log:
Code:
[Message:   BepInEx] BepInEx 5.4.21.0 - AlienQuest-EVE (5/20/2020 6:53:34 AM)
[Info   :   BepInEx] Running under Unity v4.6.7.12281826
[Info   :   BepInEx] CLR runtime version: 3.0.40818.0
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.21.0]
[Info   :   BepInEx] 1 patcher plugin loaded
[Info   :   BepInEx] Patching [UnityEngine] with [BepInEx.Chainloader]
[Message:   BepInEx] Preloader finished
[Warning:  HarmonyX] AccessTools.Property: Could not find property for type UnityEngine.Application and name isBatchMode
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 1 plugins to load
[Info   :   BepInEx] Loading [Texture Replacer 1.0.4.1]
[Message:   BepInEx] Chainloader startup complete
Could you help me on this?
I checked with Alien Quest. It's made with unity v4.6.7. Too old version.
That version is not supporting SceneMamager.
It's too old. Not support Texture2D.GetRawTextureData().. I surrender.
 
Last edited:

mk40

Member
Jul 23, 2018
213
372
I checked with Alien Quest. It's made with unity v4.6.7. Too old version.
That version is not supporting SceneMamager.
It's too old. Not support Texture2D.GetRawTextureData().. I surrender.
Too bad. I guess I'll have to repack the .assets files each time I do a change then. :HideThePain:
Thank you for checking.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
Too bad. I guess I'll have to repack the .assets files each time I do a change then. :HideThePain:
Thank you for checking.
Is your worked filenames are duplicated ? or unique ? Can you show the file names ?
 

mk40

Member
Jul 23, 2018
213
372
Is your worked filenames are duplicated ? or unique ? Can you show the file names ?
I didn't try to load textures with your plugin. I only tried to make it dump the textures to check if it was working (before doing anything else) and it wasn't as ALT+F11 wasn't doing anything and didn't dump any textures.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
I didn't try to load textures with your plugin. I only tried to make it dump the textures to check if it was working (before doing anything else) and it wasn't as ALT+F11 wasn't doing anything and didn't dump any textures.
Yes. this plugin is not working on unity v4.x. If you prepared the textures, I will make for you working on unity v4. It's hasn't dump function. just do the textures replacing. if duplicates texture names, It can't work.(can't use the MD5) If texture names are unique, It is possible. see the texture names on AssetStudio.
 

mk40

Member
Jul 23, 2018
213
372
So I've tried with two textures (used for the character on the main menu) and it doesn't work unfortunately.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
So I've tried with two textures (used for the character on the main menu) and it doesn't work unfortunately.
Here is the test.
Use console windows. in game, press F1 will list the textures. and if exists match one, replace it.
It seem can dump image files. but color can be diffrent from original. I recommend that use F1 to list names. dump image files with AssetRipper. sample file(ModImages\2048_Girl_1_Cloth_.png) is located at "ExportedProject\Assets\Resources\ui\2048_Girl_1_Cloth.png".

file name must end with "_.png".

you will be disapoint at changed with wrong color and speed. Press F1 again. It will work correct.
I don't know about that result. replace with twice is working right. May be cause by old unity's bug ?
It will be ok with double replace.

Test with some files, and If you want to use this way(use plugin), I will optimize for it.
 

mk40

Member
Jul 23, 2018
213
372
Here is the test.
Use console windows. in game, press F1 will list the textures. and if exists match one, replace it.
It seem can dump image files. but color can be diffrent from original. I recommend that use F1 to list names. dump image files with AssetRipper. sample file(ModImages\2048_Girl_1_Cloth_.png) is located at "ExportedProject\Assets\Resources\ui\2048_Girl_1_Cloth.png".

file name must end with "_.png".

you will be disapoint at changed with wrong color and speed. Press F1 again. It will work correct.
I don't know about that result. replace with twice is working right. May be cause by old unity's bug ?
It will be ok with double replace.

Test with some files, and If you want to use this way(use plugin), I will optimize for it.
Alright, seems to work indeed. Good job :)
Like you said, you have to press F1 twice each time though, but it works.
AlienQuest-EVE 2023-01-24 19-10-30.png

Thank you for this, I'm sure other people will also find this pretty useful as AQE have some active modders on its thread.
 
Last edited:

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
Alright, seems to work indeed. Good job :)
Like you said, you have to press F1 twice each time though, but it works.
View attachment 2336018

Thank you for this, I'm sure other people will also find this pretty useful as AQE have some active modders on its thread.
Here is v1.0.0.0.
Support dump with ALT-F11. location is "BepInEx\plugins\ModImagesDump\" sub-folder of scene name.
But don't recommended use the dumped images. It can be different with original(sort of color). Use UABEA, AssetStudio, or AssetRipper.
F1 key is disabled. It replace textures on scene cheanged automatically.
It will be work on another unity v4.x games.
 
Last edited:
  • Heart
Reactions: mk40

zapzapzapzap

Newbie
Apr 6, 2020
27
10
So, i'm working on a uncensor for this game, but the plugin doesn't seem to work at all. I'm using this download because i couldn't install bepinex in the newest version.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
So, i'm working on a uncensor for this game, but the plugin doesn't seem to work at all. I'm using this download because i couldn't install bepinex in the newest version.
That game(Summer~Life in the Countryside~) is dot-based game. there are official uncensor patch(from dev). but it's just little-bit removed censored.
I'm know as that there are no full-uncensored patch. do you have the some images for full-uncensored ?
 

zapzapzapzap

Newbie
Apr 6, 2020
27
10
That game(Summer~Life in the Countryside~) is dot-based game. there are official uncensor patch(from dev). but it's just little-bit removed censored.
I'm know as that there are no full-uncensored patch. do you have the some images for full-uncensored ?
Yeah, i've been making some myself, but i want to test a way to implement them before i continue. Long story short, i tried all tools avaiable and yours is my last hope.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
Yeah, i've been making some myself, but i want to test a way to implement them before i continue. Long story short, i tried all tools avaiable and yours is my last hope.
Wow.
I will test with that game. If not work, I will try make a plugin for that game.
 

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
Yeah, i've been making some myself, but i want to test a way to implement them before i continue. Long story short, i tried all tools avaiable and yours is my last hope.
I was test the plugin. It's not works. 'cause plugin uses 'SceneManager'. It's unity's class. But this game don't uses it. Error occurs on loading plugin.
Changed plugin to not use 'SceneManager'. Try it with attached file.
Maybe the game which you have type is x86/il2cpp. use
 
  • Like
Reactions: zapzapzapzap

zapzapzapzap

Newbie
Apr 6, 2020
27
10
I was test the plugin. It's not works. 'cause plugin uses 'SceneManager'. It's unity's class. But this game don't uses it. Error occurs on loading plugin.
Changed plugin to not use 'SceneManager'. Try it with attached file.
Maybe the game which you have type is x86/il2cpp. use
It works! Thanks
 

Lexy Tanaya

Newbie
Aug 6, 2016
63
68
Thank you for this, I was desperate trying to mod Dredge using UABEA but the game refuse to load when I save the bundle file. Now the game can get less boring whenever I go to town.

You don't have permission to view the spoiler content. Log in or register now.
 
  • Like
Reactions: kumarin

bat0x0

New Member
Feb 23, 2019
4
2
Hi kumarin
This plus support new unity game ?
I try this (DLsite -jp, you can download )

1. dumping some image file
2. i found one image' texture_00_cc1eb7256bd272e5fd5c565e4e946913.png' has mosaic (red box)

How can import to game after if i edit this image ? is it put in ModImages folder ?
Are there correct steps? very very thnks.
 
Last edited:
  • Wow
Reactions: kumarin

kumarin

Well-Known Member
Feb 19, 2022
1,978
2,859
Hi kumarin
This plus support new unity game ?
I try this (DLsite -jp,you can download )

1. dumping some image file
2. i found one image' texture_00_cc1eb7256bd272e5fd5c565e4e946913.png' has mosaic (red box)

How can import to game after if i edit this image ? is it put in ModImages folder ?
Are there correct steps? very very thnks.
Your sequence is right. And there are somethings to check.
  • Dump function is not stable. Use it just check the filename and MD5. dump original images with another tools(ex. AssetStudio or AssetRipper). if filename is unique, no needed use MD5. in this case, filename is "texture_00". It's duplicated name. You must use MD5.
  • You must(?) edit the texture_00_c2685de5059f21c81cc667d7a5ec02ed.png file too. your position of first edit zone is wrong. edit another zone. may be right-beside object?
  • MD5's value is can be different with another system(belong to GPU). If you want share to another people, check the MD5 values on another system.
  • You may be know about that UniversalUnityDemosaics plugin. This game has the mosaic filter. use that plugin too.
Thanks for use this.