how to make custom textures

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!
 
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!
Is there a way for you to change the textures of a painting in-game? I've been trying but can't get it to work, and there seems to be no tutorial on how to do it. Im still a beginner to modding and changing textures in-game. I've tried using .tex files and .png files, and even both. I appreciate the help! :)
 
Q
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!
Question what if you try to do it with stars?
 
I want to create a mod with remastered paintings
Don't double post! Use that edit button! Post automatically merged:

Like this

Don't double post! Use that edit button! Post automatically merged:

What should I do?
 
Last edited:
Q

Question what if you try to do it with stars?
You need to create a geo.bin file in the following format
Don't double post! Use that edit button! Post automatically merged:

I want to create a mod with remastered paintings
Don't double post! Use that edit button! Post automatically merged:

Like this

Don't double post! Use that edit button! Post automatically merged:

What should I do?
First, create your texture in .png format. There are many textures available; for example, bob_seg7_texture_07001000.png would replace the gray stone walls/rocky wall.
Don't double post! Use that edit button! Post automatically merged:

Is there a way for you to change the textures of a painting in-game? I've been trying but can't get it to work, and there seems to be no tutorial on how to do it. Im still a beginner to modding and changing textures in-game. I've tried using .tex files and .png files, and even both. I appreciate the help! :)
There are no tutorials, but you can use these SM64 DS textures files as a guide: SM64DSTEX
 
Last edited:

Users who are viewing this thread