Welcome Guest [Log In] [Register]

Announcements

Welcome to Zelda64.net. Announcements can be found below!

6.26.2018  Make sure you keep your passwords safe. If you use the same password on here as on other sites, it is highly recommended that you change it. If you can't change your password, and want it changed, let me or other active staff know, and we can force a reset or change it for you. ~PwnzLPs
Welcome to Zelda64. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. A valid email address is required. Your email address will NOT be sold as it is only needed to prevent spammers (and admittedly, some still get around this, but this makes it a bit more difficult, plus, if the moderators need to contact you, we have an email on file to do so). Thanks for considering us!


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[MM] Texture Offsets; in a decompressed ROM of course
Topic Started: May 25 2016, 05:57 PM (853 Views)
Garo-Mastah
Member Avatar
$99 Ninja Spy From Ikana
i want ask to everybody what if someone tried to find texture offsets in a ndec decompressed rom of Majora´s mask (U), and CloudMax´s texture explorer can find more textures,
what´s happen with that program?

i know about the rice video plugin and find by N64Rip, but i don´t know how to use and i need more tests. XD
coming soon, texture addresses and offsets for needed textures replacement and stuff.

thanks.
Edited by Garo-Mastah, May 25 2016, 07:02 PM.
Offline Profile Quote Post Goto Top
 
aroenai
Member Avatar
Sentient Hunk of Green Cheese
Depends on what texture you're trying to find. For example, the "Z" pause menu texture is compressed individually and stored in a secondary archive that is flagged as uncompressed in the file system.
Offline Profile Quote Post Goto Top
 
Garo-Mastah
Member Avatar
$99 Ninja Spy From Ikana
aroenai
May 25 2016, 11:50 PM
Depends on what texture you're trying to find. For example, the "Z" pause menu texture is compressed individually and stored in a secondary archive that is flagged as uncompressed in the file system.
well i need you help me to texture offsets for (and if someone knows):
Hero´s shield
Mirror shield, GI, face and reflect
item icons (GF sword, Hero´s shield, Mirror shield, ocarina of time, giant mask, powder keg)
giant mask textures
deku, goron, zora, and FD textures, with their instruments too
young link belt and boots textures
deku flower
powder keg, textures and GI
sun block

that´s all XD
Offline Profile Quote Post Goto Top
 
aroenai
Member Avatar
Sentient Hunk of Green Cheese
Icon textures are compressed individually, you won't find them if you search the ndec decompressed rom. Only the original Japanese roms have them stored uncompressed. You can find where the texture is located if you search for the texture in J 1.0/1.1, copy that data to it's own file, compress that file with Yaz0, and then search the U rom for that data. Replacing compressed textures is going to involve correcting a lot of hard coded offsets if the texture you replace it with compresses to a larger or smaller Yaz0 block.

To give you an idea, just replacing the L pause menu texture on the GC MM rom with the Z texture required changing 15 addresses (5x file table, 4x offset table in the texture archive containing it, 1x between the compressed blocks, and 5x in code.zasm).


Most of the others are likely going to be color indexed, which the current tools aren't able to find automatically since the palette can be located in a table or another texture elsewhere in the rom. You might be able to find the Deku Flower, Powder Keg, sun block, and Hero's shield just by using the Find Texture option in Texture Explorer.
Offline Profile Quote Post Goto Top
 
Garo-Mastah
Member Avatar
$99 Ninja Spy From Ikana
aroenai
May 26 2016, 08:58 AM
Icon textures are compressed individually, you won't find them if you search the ndec decompressed rom. Only the original Japanese roms have them stored uncompressed. You can find where the texture is located if you search for the texture in J 1.0/1.1, copy that data to it's own file, compress that file with Yaz0, and then search the U rom for that data. Replacing compressed textures is going to involve correcting a lot of hard coded offsets if the texture you replace it with compresses to a larger or smaller Yaz0 block.

To give you an idea, just replacing the L pause menu texture on the GC MM rom with the Z texture required changing 15 addresses (5x file table, 4x offset table in the texture archive containing it, 1x between the compressed blocks, and 5x in code.zasm).


Most of the others are likely going to be color indexed, which the current tools aren't able to find automatically since the palette can be located in a table or another texture elsewhere in the rom. You might be able to find the Deku Flower, Powder Keg, sun block, and Hero's shield just by using the Find Texture option in Texture Explorer.
how compress my U copy and decompress again with Yaz0?
Offline Profile Quote Post Goto Top
 
aroenai
Member Avatar
Sentient Hunk of Green Cheese
Gedecompress: http://www.goldeneyevault.com/viewfile.php?id=213

Select the Majora's Mask option and it will dump all the Yaz0 blocks as individual files which you can search through (in native n64 formats, these won't be png's). Assuming you run Gedecompress on a ndec decompressed rom, this will dump everything that is still in Yaz0 compressed blocks which is generally anything in a texture archive (pause menu icons, item name textures, area name textures, etc.)

Once you find the file you want, select the compress option in Gedecompress, then open that file in a hex editor, select everything, and search for it in the decompressed U rom. That will give you the location of the texture, if you want to actually replace it with something different you're gonna need a disassembler and patience to modify the rom and have it work without crashing.

Edit: Whoops wrong file linked
Edited by aroenai, Feb 9 2017, 10:33 AM.
Offline Profile Quote Post Goto Top
 
Garo-Mastah
Member Avatar
$99 Ninja Spy From Ikana
aroenai
May 26 2016, 02:20 PM
Gedecompress: http://www.goldeneyevault.com/viewfile.php?id=229

Select the Majora's Mask option and it will dump all the Yaz0 blocks as individual files which you can search through (in native n64 formats, these won't be png's). Assuming you run Gedecompress on a ndec decompressed rom, this will dump everything that is still in Yaz0 compressed blocks which is generally anything in a texture archive (pause menu icons, item name textures, area name textures, etc.)

Once you find the file you want, select the compress option in Gedecompress, then open that file in a hex editor, select everything, and search for it in the decompressed U rom. That will give you the location of the texture, if you want to actually replace it with something different you're gonna need a disassembler and patience to modify the rom and have it work without crashing.
i downloaded it and dont appear the MM option?
Offline Profile Quote Post Goto Top
 
Zeldaboy14
Member Avatar
Legendary Zeldaboy who does custom swords and stuff
Isn't the best way to get texture's from either zelda game (or any N64 game) by using the Project64 plugins?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Questions · Next Topic »
Add Reply