How to replace compressed textures / YAY0 blocks 1 2 »
Users browsing this thread: 1 Guest(s)

Hi, I heard that people were having trouble with YAY0 block editing so I decided to make a thread. Tools needed:
YAY0 hex compressor (originally made for Luigi's Mansion): http://www.mediafire.com/download/5f6sjn6ryzwognc/szp.7z
Universal game decompressor (originally made for Golden Eye): http://goldeneyevault.com/files/n64tools/gedecompress.zip
Hxd HEX editor: http://mh-nexus.de/downloads/HxDen.zip
Paper Mario ROM: find one yourself or go on the pirate thread.
Step 1: make a new folder and put inside it the paper mario ROM, open Universal game decompressor and select the paper mario rom. 
Note: All the newly generated files are YAY0 compressed. For this test I'm editing the press start button.
Step 2: Open N64rip, disable verify rom, select the rom folder and put all files, open the uncompressed block and go to your adress (in this case 27DA76C.bin/1290) select image size (128x32) select image format (I8) select 1:1 ratio and import your image.
Step 3: Close N64rip and move your bin file over szp.exe
Step 4: open Paper Mario ROM and your newly generated file in HxD and replace from the block you are currently using to the next one (in this case from 27DA76C to 27E7190) with your new file.
Step 5: choose save as option for Paper Mario and run the newly generated rom in your emulator, video proof:




Mod edit:
Merged two additional tutorials, see them here
http://origami64.net/showthread.php?tid=428&pid=7367#pid7367
http://origami64.net/showthread.php?tid=428&pid=7720#pid7720
(This post was last modified: 18-07-2017, 03:31 PM by shygoo.)
Lorem Ipsum.

I can't use HxD...
Can you make video how to use it?
I have this: (Step 4)
[Image: zvvxcvzv.png]
(This post was last modified: 13-06-2016, 11:15 AM by Kazu.)

(13-06-2016, 11:06 AM)Kazu Wrote: I can't use HxD...
Can you make video how to use it?
I have this: (Step 4)
[Image: zvvxcvzv.png]

OK sure...

(13-06-2016, 12:02 PM)RobiNERD Wrote:
(13-06-2016, 11:06 AM)Kazu Wrote: I can't use HxD...
Can you make video how to use it?
I have this: (Step 4)
[Image: zvvxcvzv.png]

OK sure...


(This post was last modified: 13-06-2016, 12:20 PM by RobiNERD.)
Lorem Ipsum.

Thank you very much!
[Image: rear.png]
Now i want to edit those textures:
[Image: thisisisi.png]
Can someone give me adresses?
(This post was last modified: 13-06-2016, 04:28 PM by Kazu.)

(13-06-2016, 04:18 PM)Kazu Wrote: Thank you very much!
[Image: rear.png]
Now i want to edit those textures:
[Image: thisisisi.png]
Can someone give me adresses?
Not a master of Tile Molester so ask here, http://origami64.net/showthread.php?tid=382
Actually I can say only thet the Paper Mario text and background are in RGBA32... actually Nemu64 sucks because it will tell you texture formats and everything, but not the adresses Undecided
(This post was last modified: 13-06-2016, 04:50 PM by RobiNERD.)
Lorem Ipsum.

I found a bug! Sad
The game freeze in "Mario ! You won't regret this!"
Look:
[Image: freeze.png]
(This post was last modified: 21-06-2016, 07:07 AM by Kazu.)

(21-06-2016, 07:05 AM)Kazu Wrote: I found a bug! Sad
The game freeze in "Mario ! You won't regret this!"
Look:
[Image: freeze.png]
It's because the hex was not replaced properly... there is a fix that conists in filling up a portion of the ROM with 00, but a crash means a corruption was made to the rom...
Lorem Ipsum.

Probably worth noting that if the new compressed block is bigger than the original you are going to corrupt something

(21-06-2016, 02:09 PM)shygoo Wrote: Probably worth noting that if the new compressed block is bigger than the original you are going to corrupt something

I tink in his case it's smaller, because the yay0 compressor that I gave him compressed better than the original game
Lorem Ipsum.

(13-06-2016, 04:18 PM)Kazu Wrote: Thank you very much!
[Image: rear.png]
Now i want to edit those textures:
[Image: thisisisi.png]
Can someone give me adresses?

I don't like to bring up old threads, but these are not textures, but text strings.
"Delete File" would be "24 45 4C 45 54 45 F7 26 49 4C 45", at 16C0BC.
"Copy File" would be "23 4F 50 59 F7 26 49 4C 45", at 16C0D0.
"Cancel" would be "23 41 4E 43 45 4C", at 16C0C8.
"Enter a file name" would be "25 4E 54 45 52 F7 41 F7 46 49 4C 45 F7 4E 41 4D 45", at 16C1C5.
You can search for anything by having the text table and notepad and work out what the stuff is in the Paper Mario format (with space inbetween), search it with the HxD search feature, select Hex Values,  paste the text from notpad at the top, select all on search direction and then reverse engenere the text you create, replace the old one with the new one, if your text is longer than the original string length, you cant import it, if instead its shorter, fill in with F7 the original unused space instead of deleting it, hope it helps
Lorem Ipsum.

How to replace compressed textures / YAY0 blocks 1 2 »
Users browsing this thread: 1 Guest(s)


  EN ・日本語