Language…
14 users online: Alex No,  AmperSam,  Anorakun, DinoMom, Golden Yoshi, Green, Hiro-sofT, Kerd, LightAligns, Papangu, Pizzagamer9791, Silver_Revolver,  Telinc1, yoshisisland - Guests: 279 - Bots: 523
Users: 64,795 (2,368 active)
Latest user: mathew

2nd Yoshi's Island LDC Discussion thread!

Link Thread Closed
Originally posted by HackerOfTheLegend
When I did that and then opened my ROM to test it in 1-1, the game froze.

Make sure you don't overwrite the samples for that song in particular. You gotta do some fancy footwork with inserts.

Follow this (unfinished detailed music data chart thing):
x0E0200 - Athletic Samples (5788 bytes)
x0E189C - Athletic Music (3363 bytes)
x0E25BF - Bonus Challenge Music (2170 bytes)
x0E2E39 - Kamek's Taunts + Boss intro + Mini-boss Music (3225 bytes)
x0E3AD2 - Cave Music (1470 bytes)
x0E4090 - Ending Samples (32092 bytes)
x0EBDEC - Ending Music (5394 bytes)
x0ED2FE - Forest/Jungle Music (1234 bytes)
x0ED7D0 - Flower Garden Music (3241 bytes)
x0EE479 - Forest/Jungle Samples (2572 bytes)
x0EEE85 - Flower Garden Samples
x0F00C1 - Final Boss Samples
x0F225D - Final Boss Music
x0F35F0 - Intro/Welcome to Yoshi's Island Music
x0F4322 - Default Music (includes map songs)
x0F5E48 - Kamek's Taunts + Boss intro + Big Boss Music + Boss victory (Maybe pre-boss is in this upload too?)
x0F705A - Castle Samples
x0F84E6 - Default Samples
x0FFEB2 - Castle Music (1680 bytes)
x100542 - Title/Story Music and Samples (+ SPC routines and SFX and stuff)
x10B5FA - End of all used music data
x110200 - End of allocated space for all music data

All of these pointers come one right after the other, and when you insert songs, try to make sure you don't overwrite necessary music data i.e. title screen music. IF you want to know how many bytes a section is, subtract the pointer from the next pointer in front of it.
I wonder what a HFD opcode would do in ASM...
Okay, wow, that is confusing me quite a lot... Jimmy, go into detail when you make readmes!
Originally posted by HackerOfTheLegend
Jimmy, go into detail when you make readmes!

I would have liked to, ideally, but TLMB wanted to start the contest, so I had to rush a release for this. (I figured that a beta/not-fully-documented AddMusic was better than no AddMusic at all!)

Anyway, I can probably whip up an ASM patch to make this easier for you guys to use, since some people are having trouble with it. I'll edit a download link into my original post once I'm finished with it.

EDIT: Finished the patch.
Yeah, that'd help a lot #fim{:D} Thanks :D
Better get back to making my level...
Is there a map for the sprites available in the sprite tileset 62 (the one used in Make Eggs, Throw Eggs)?

EDIT: never mind i don't need one
Jimmy, just saying, Asar won't work with your patch because it whines about crossing bank borders, so I think it's best to tell people to only use xkas.
Vital question: If I used AddmusicY's regular way to replace a song of YI with a custom one, then is it safe to apply the simplified patch Jimmy made to insert songs with xkas? Won't this crash the game?
Originally posted by HackerOfTheLegend
Jimmy, just saying, Asar won't work with your patch because it whines about crossing bank borders, so I think it's best to tell people to only use xkas.

That's odd.. Looks like I'm gonna have to go bug Alcaro and see what's up with that, then.

Originally posted by Rykon-V73
Vital question: If I used AddmusicY's regular way to replace a song of YI with a custom one, then is it safe to apply the simplified patch Jimmy made to insert songs with xkas? Won't this crash the game?

It actually shouldn't matter whether or not you did it the manual way first or not; applying the patch would still work. I'd still back up your ROM just in case you happen to go over the 192 KB limit, though. (But that probably won't happen unless you insert like 5 or more custom songs.)
Originally posted by HackerOfTheLegend
When I did that and then opened my ROM to test it in 1-1, the game froze.


I tried to insert the sandcanyon.mml into my game as a test. I followed the instructions, and it kept on giving me errors, but then I found out, you have to type the whole directory of the mml.bin file. After, it said it was successful, I tried to play the ROM in SNES9x, and when I went in 1-1 or a song w/the castle music, which is the one I used, I just got a blank screen. Once, I tried 1-4, and I got the song from the title screen for some reason. What am I doing wrong? I checked the offsets and everything, and yes, I looked at the readme and followed the directions like it said. Can anyone please help? I want to eventually use the music from New Super Mario Bros. from the Nintendo DS version when you go into a big castle, but I don't understand most of that music thing and how to use it on the .html file.

Edit: I tried to use xkas.

I typed: xkas.exe E:\AddMusicYBeta\insert.asm E:\AddMusicYBeta\SMW2LevelContest.smc

The files are on the E drive, and SMW2LevelContest is the name of the ROM.

I changed the names of the files in the insert.asm file to:

; Music data files
Athletic_Samples:
E:\AddMusicYBeta\00.bin
Athletic_Music:
E:\AddMusicYBeta\01.bin
Bonus_Music:
E:\AddMusicYBeta\02.bin

... all the way up to
Default_Samples:
E:\AddMusicYBeta\17.bin
Castle_Music:
E:\AddMusicYBeta\18.bin
Title_Music_Samples:
E:\AddMusicYBeta\19.bin

Then, I get the following errors:
error: E:\AddMusicYBeta\insert.asm: line 32: invalid opcode or command [E:\AddMusicYBeta\00.bin]
error: E:\AddMusicYBeta\insert.asm: line 34: invalid opcode or command [E:\AddMusicYBeta\01.bin]
error: E:\AddMusicYBeta\insert.asm: line 36: invalid opcode or command [E:\AddMusicYBeta\02.bin]

... error: E:\AddMusicYBeta\insert.asm: line 32: invalid opcode or command [E:\AddMusicYBeta\00.bin]
error: E:\AddMusicYBeta\insert.asm: line 34: invalid opcode or command [E:\AddMusicYBeta\01.bin]
error: E:\AddMusicYBeta\insert.asm: line 36: invalid opcode or command [E:\AddMusicYBeta\02.bin]


all the way up to ...

error: E:\AddMusicYBeta\insert.asm: line 66: invalid opcode or command [E:\AddMusicYBeta\17.bin]
error: E:\AddMusicYBeta\insert.asm: line 68: invalid opcode or command [E:\AddMusicYBeta\18.bin]
error: E:\AddMusicYBeta\insert.asm: line 70: invalid opcode or command [E:\AddMusicYBeta\19.bin]

What am I doing wrong?
Originally posted by Lespna1
but then I found out, you have to type the whole directory of the mml.bin file.

No you don't.

Originally posted by Lespna1
I changed the names of the files in the insert.asm file to:

; Music data files
Athletic_Samples:
E:\AddMusicYBeta\00.bin
Athletic_Music:
E:\AddMusicYBeta\01.bin
Bonus_Music:
E:\AddMusicYBeta\02.bin

You also removed the "incbin" keyword before each of the file names, which would be your problem.
I'm really curious to hear the last 2 ports that will be made available for this contest.
Someone made a port of the song I wanted, but when I insert it using xkas, it just plays the music from the title screen. It's castle music, and I tried using files 16.bin and 18.bin. Not at the same time, but I tried both of them, and the same thing happens. When I tried the music I made, it worked fine so I don't know what's wrong.

I think when I tried to insert the ported music by Lui, it gives me an error: something like line 40 invalid note duration. Can you please help, Jimmy or anyone?
Did you actually convert the song to work with the YI engine? Did you also properly change the instruments to match YI's? You'll have to do this to make the song work since, unlike SMW, YI doesn't have enough space to store that many samples.
Oh, and I have another question about the YI AM patch: Will it work only on unedited ROMS, or both unedited and edited? I tried the patch out on an already edited ROM, but when I entered world 1-1 to make sure the music played, I got nothing but a black screen.
Originally posted by Lespna1
I think when I tried to insert the ported music by Lui, it gives me an error: something like line 40 invalid note duration. Can you please help, Jimmy or anyone?

The song probably contains a dotted whole note (something like "r1.."). You need to change those since they aren't compatible with YI AddMusic; just replace all instances of "1." with "1^2" and it should work.

Originally posted by HackerOfTheLegend
Oh, and I have another question about the YI AM patch: Will it work only on unedited ROMS, or both unedited and edited? I tried the patch out on an already edited ROM, but when I entered world 1-1 to make sure the music played, I got nothing but a black screen.

Whether or not the ROM was edited shouldn't matter. If you're getting a black screen, then you're probably doing something wrong.
Originally posted by Harumi Makoto
Did you actually convert the song to work with the YI engine? Did you also properly change the instruments to match YI's? You'll have to do this to make the song work since, unlike SMW, YI doesn't have enough space to store that many samples.



I think so. It was a text file, and I just saved it as an .mml file in Wordpad and inserted it. Also, the music in the cave is different and the music in the Welcome level, I think, but like I said, I just get the music from the title screen to play in the castle levels for some reason.

Jimmy, thanks, I will try that, and r is a rest, and 1 is a whole note. I was just going by what was on the HTML file. It says you can use an = sign too, but I think if I used a value higher than 192 or something, it gave me that error before. Now, I am getting the same error in the ported music by Lui37. I don't understand the music at all. Should I upload the .mml file or something?

Edit:Inserting music data...
Error: Line 40: No value specified for 't'.
The file is nsmbcastle.mml I uploaded it to the My Files section.
Well, because I'm going to be very busy, starting from May, I'm going to post a few videos with my entry later.
So, unless you don't want to spoil it, then DON'T WATCH MY ENTRY.
EDIT: BIG WARNING: UNLESS YOU DO NOT WANT TO SPOIL THE FUN, THEN DON'T WATCH MY YI ENTRY IN ACTION. If you just want to watch, then you may do.
Link: CLICK, IF YOU WANT TO RISK IT.
EDIT2: CLICK, IF YOU RISK - this is part 2 of the video above.
I want to make video too, but I don't want to spoil my entry. Maybe, I will make one close to the end.

Also, I think you can get 100% now so when we write the text file should we say where all of the red coins are, and the judges will look at it if they get stuck? Some of the red coins might be kind of hard to get or reach. I hope I didn't make my level too hard though or too long. Well, I want to get some feedback.
Link Thread Closed