Firstly, what do you mean? Are you wanting to add textures as a texture swap of level textures, or are you trying to change a hud element's texture?
For the latter, changing a hud element's texture, this isn't too hard, you just have to know what the texture is called. First, open up sm64coopdx, head to Options, Misc, and Open User Folder. From there, open up the
mods
folder, and create a new folder, which you can name whatever you want (try to avoid spaces). Once you have that, open up that folder, and create a lua file called
main.lua
. Since this is just textures, you don't need to do any "real" coding. All you have to do is add these comments to the top of your file:
Code:
-- name: Mod Name Here
-- description: Description Here
Coopdx will see the
name
and
description
comments, and will add them to the
Mods
menu. From there, go back to the mod folder you created, and create a folder called
textures
. Then, drag in whatever png file you want to replace a hud texture. Now, in order to replace the texture, you need to change the png's name to what the texture is called in the sm64 source code. Since sm64coopdx loads texture data from the rom at runtime, you're gonna have to compile the
sm64ex
repo, and open the
textures
folder, and find the texture you're wanting to replace, and rename your png to that texture name. From there, run your game, boot up your mod, and it should work!
For the former, doing texture swaps of a level, this is much more complicated, and truth be told I'm not entirely sure on how it works. You can find an example of a texture swap
here, and try to tinker around with it.
Hope this helps!