About this mod
Lets you replace in-game textures with custom png files.
- Requirements
- Permissions and credits
- Donations
https://github.com/Perfare/AssetStudio
I had to set the unity version in Asset Studio manually - the version is 2020.3.36f1
Run the game once with this mod installed; once loaded into the valley, press the = (Equals) key. This will dump all the scene texture names to a txt file
BepInEx/plugins/scene_dump.txt.
Find the texture you want to change, put the replacement png file in the CustomTextures folder and rename it using one of the following methods:
a) rename it based on the SkinnedMeshRenderer name:
renderer_<SMRNAME><PROPERTYNAME>.png
b) rename it based on the material name:
mat_<MATNAME><PROPERTYNAME>.png
c) rename it based on the texture name:
texture_<TEXTURENAME><PROPERTYNAME>.png
Example
Suppose you want to change Mickey Mouse's textures. In the scene_dump.txt file there is:
SkinnedMeshRenderer name: MickeyMouse_lod0
mat_Mickey_Skin (Instance):
properties:
_AvatarSkinTex Mickey_df
_AvatarNormalTex Mickey_nm
_AvatarSpecTex Mickey_Maps
_MakeupTex
_MakeupGlossTex
_ShadowTerminatorGradient SkinGradient
If you just want to change the skin texture, that's the property above called _AvatarSkinTex and the texture name is Mickey_df. The material name is mat_Mickey_Skin (Instance) and the SMR name is MickeyMouse_lod0.
So, you can rename your png file any one of the following:
renderer_MickeyMouse_lod0_AvatarSkinTex.png
mat_mat_Mickey_Skin (Instance)_AvatarSkinTex.png
texture_Mickey_df_AvatarSkinTex.png
and it should replace the texture.
Texture replacements can be updated by pressing the = key, which also reloads textures from disk.
Technical
This mod requires BepInEx.IL2CPP to be installed for Dreamlight Valley.
To install BepInEx.IL2CPP
- Download https://builds.bepinex.dev/projects/bepinex_be/665/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.665%2B6aabdb5.zip
- Unzip this file and copy the contents into the game's main folder.
Find the game's main folder in steam by right clicking on the game's entry, Manage > Browse Local Files...
If your unzip program puts the contents in a single folder, copy the contents of that folder, not the folder itself. There should be five things you are copying. You should end up with a folder called BepInEx and several new files including winhttp.dll in the same folder as ddv.exe - Run the game - it will take some time the first time to setup the game for modding.
If it worked, the BepInEx folder will have several new folders including config and plugins.
To install this mod, place the contents of its zip file in the BepInEx\plugins folder (create it if the folder doesn't exist) and restart the game.
Code is at https://github.com/aedenthorn/DDVMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.