(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
03-28-24 11:04 PM
0 users currently in ROM Hacking.
Acmlm's Board - I3 Archive - ROM Hacking - Changing ingame music? New poll | | Thread closed
Pages: 1 2 3Add to favorites | Next newer thread | Next older thread
User Post
mortalkenshi2

Paratroopa








Since: 12-10-06

Last post: 6249 days
Last view: 6248 days
Posted on 02-13-07 07:57 PM Link
Originally posted by blackhole89
Originally posted by mortalkenshi2
Well, If I am understanding this correctly, if I wanted the SMB1 bowser theme into mario64, I would have to get the code of the music from SMB1 and then transfer that into an empty space in the rom of m64 and get the pointer to point to that particular music?

You aren't understanding it correctly.

You would have to get the music data from SMB1 and then write a compatible music data player for the N64 platform; subsequently, you'd have to compile the latter, insert it and link it up with the game code.
No, nobody here is going to teach you that.

As for editing pointers, you would likely edit them in a hex editor. If you don't know what a pointer is, you probably are in the wrong forum/having set yourself the wrong goals. No offense, but you should know about pointers and the basics of programming before trying to get into hacking.


Well, geez I knew that pointers were in a hex editor, I don't know how to edit them or like what to edit them to.
Zepper

Paragoomba








Since: 09-04-06
From: Brazil

Last post: 6249 days
Last view: 6248 days
Posted on 02-13-07 08:30 PM Link
No no no no... wait.

Each game uses a certain music engine, or a piece of program code that plays music, as another thread. It fetches sample data or music codes to play. When you want to hack music, it's a lot easy to write from scratch the music rather than pasting code from another game. Of course, you can do such thing for compatible game music engines, as MegaMan1-2 or MegaMan3-6 (NES).

Modern systems uses the entire music pre-recorded, much like a CD track, but looped. Systems like the N64 or the SNES still use tables, but with sound samples instead of wave generation, like the old NES does.

In other words, if you want to change the Mario64 music, you must find the music code (not the program code) for each track... OR to replace the instrument samples with others. With SNES was possible, no clue for N64, but I believe it is too if I'm not wrong...
mortalkenshi2

Paratroopa








Since: 12-10-06

Last post: 6249 days
Last view: 6248 days
Posted on 02-13-07 08:33 PM Link
Originally posted by Zepper
No no no no... wait.

Each game uses a certain music engine, or a piece of program code that plays music, as another thread. It fetches sample data or music codes to play. When you want to hack music, it's a lot easy to write from scratch the music rather than pasting code from another game. Of course, you can do such thing for compatible game music engines, as MegaMan1-2 or MegaMan3-6 (NES).

Modern systems uses the entire music pre-recorded, much like a CD track, but looped. Systems like the N64 or the SNES still use tables, but with sound samples instead of wave generation, like the old NES does.

In other words, if you want to change the Mario64 music, you must find the music code (not the program code) for each track... OR to replace the instrument samples with others. With SNES was possible, no clue for N64, but I believe it is too if I'm not wrong...


Alright so how to find the music code you would.........?
Zepper

Paragoomba








Since: 09-04-06
From: Brazil

Last post: 6249 days
Last view: 6248 days
Posted on 02-13-07 08:35 PM Link
Heh, you would need to have a lot of patience and hacking skills in order to trap the exact point where the program fetches the music data. ;;

You see, I'm not doing hacking since 2002... You should do this by yourself.


(edited by Zepper on 02-13-07 02:36 PM)
mortalkenshi2

Paratroopa








Since: 12-10-06

Last post: 6249 days
Last view: 6248 days
Posted on 02-13-07 08:41 PM Link
Is there any other way to edit the ingame music? Other than using a hex editor?
Raccoon Sam

Boomerang Brother
Custom Title








Since: 11-20-05
From: Correct

Last post: 6248 days
Last view: 6248 days
Posted on 02-13-07 08:51 PM Link
Originally posted by mortalkenshi2
Is there any other way to edit the ingame music? Other than using a hex editor?


It's always dependant.
Depends on the game, depends on the pointers, depends on the system, depends on everything.
HEX editor is the second best choice.

The best choice is to write your own program for it.
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6248 days
Last view: 6248 days
Skype
Posted on 02-13-07 09:23 PM Link
And no, we aren't going to tell you how to do THAT either really. The only practical way is hex, and no offence but you barely sound like you could handle it if you have such little grasp on pointers.
mortalkenshi2

Paratroopa








Since: 12-10-06

Last post: 6249 days
Last view: 6248 days
Posted on 02-14-07 01:44 AM Link
Originally posted by Yoronosuku
And no, we aren't going to tell you how to do THAT either really. The only practical way is hex, and no offence but you barely sound like you could handle it if you have such little grasp on pointers.



I don't have a good grasp on pointers because I'm very young and don't understand everything. It took me about a week to understand the 0x24 commands in Super mario 64 hacking. I had never dealt with a lot of coding so it was too hard. I know that pointers are the things that point out where the levels are in hex like how it haas 405A60 as an address and in hex since it stands for bob omb battlefield. So I sort of understand....
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6248 days
Last view: 6248 days
Skype
Posted on 02-14-07 01:52 AM Link
Young? I learned how to code in C when I was 11. On my own. Age has nothing to do with it. Pointers a re a very easy concept, they represent and ultimately lead to an address. Really not that difficult...
mortalkenshi2

Paratroopa








Since: 12-10-06

Last post: 6249 days
Last view: 6248 days
Posted on 02-14-07 02:05 AM Link
Originally posted by Yoronosuku
Young? I learned how to code in C when I was 11. On my own. Age has nothing to do with it. Pointers a re a very easy concept, they represent and ultimately lead to an address. Really not that difficult...



But you own a windows right?(most likely) Its not that hard to find an app for windows with C in it. I have only been using a computer really for about a year really. I didn't do much on the computer before. And yes that concept of pointers isn't that hard but I have never learned about it. I know about most other things in hacking but not that.
darkwitch

Red Cheep-cheep


 





Since: 10-16-06
From: Puerto Rico

Last post: 6248 days
Last view: 6248 days
Posted on 02-14-07 02:16 AM Link
Here are some links to be of some help:

Hex tutorial, read if you dont know hex!

Here is one that explains SNES pointers, couldn't find one for N64, sorry...

A very long, SNES asm doc. Couldn't find for MIPS (N64)

N64 Tracer

SNES Debugger/Tracer

That's all I could find interesting.
Xenesis

Blipper








Since: 11-19-05
From: Australia

Last post: 6249 days
Last view: 6248 days
Posted on 02-14-07 02:20 AM Link
Oh, quit using owning a mac as an excuse.

Seriously. I've been using a mac for years now, and I only learned how to hack in like 04/05. I picked up a Hex Editor and started learning how to hack. As of now, I probably know the most about Advance Wars 2 in the AW community. If you fiddle with things, you can teach yourself most things. Pointers are one of the most important concepts in hacking, and to be quite honest I figured out what pointers are by myself. You just figure things out if you go away and hack. Some things require research (IE, I had to ask people how Lz77 compression worked, and I've been asking about assembly), but most things you CAN figure out by yourself.

Also, if you desperately need to use a windows only tool, there are a myriad of Windows emulators out there to do that job. They won't play Unreal Tournament, but damn, if you want to use Unlz.gba or something like that they're invaluable. (Read, Qemu, Bochs, Virtual PC (PPC Macs)/Parallels Desktop (Intel Macs).)

Secondly, you do realise that C is a reasonably portable language, right? I bet a whole bunch of apps you've used are written in C (Or C++) in OSX.

Now go away and use that gray matter.
Zepper

Paragoomba








Since: 09-04-06
From: Brazil

Last post: 6249 days
Last view: 6248 days
Posted on 02-14-07 03:11 AM Link
Originally posted by mortalkenshi2
I have only been using a computer really for about a year really. I didn't do much on the computer before.


Oh... so, it makes the things really difficult. I got my first PC around 1996, my programming experience has started around that year too with dBASEIII Plus with Clipper Summer 87. My first C compiling was unleashed around 1998. Things were very difficult that time, as emulation in the beginning. Well, I did stupid questions too... I requested a lot of help because of being unfamiliar with computer and programming... and so on.

Actually, everything's ready and well documented, for most systems. Emulation of the SNES and N64 isn't something really obscure as they were.

*dot*
HyperHacker

Star Mario
Finally being paid to code in VB! If only I still enjoyed that. <_<
Wii #7182 6487 4198 1828


 





Since: 11-18-05
From: Canada, w00t!
My computer's specs, if anyone gives a damn.
STOP TRUNCATING THIS >8^(

Last post: 6248 days
Last view: 6248 days
Posted on 02-14-07 03:37 AM Link
If you want to play NES music in an N64 game, you have two choices:

1) Figure out the N64 game's music format and write in something from scratch that sounds like whatever you want.

2) Write an emulator that runs on N64 and plays NSF files.

If you don't know how to even edit a pointer you're not going to do #2 any time soon, so I'd suggest looking for music data. Since the format varies between games and I've never hacked music, I can't help you with that.
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6248 days
Last view: 6248 days
Skype
Posted on 02-14-07 04:42 AM Link
He won't be able to do the first one either for that matter if the same conditions apply. And um, what do you mean easier to find an application with C in it? C is a programming language, and I'm more than certain there are C compilers for the mac =| if Visual Basic, a microsoft-esque language can work on it then....seriously. You have horrible excuses. Being young is no excuse. Using a mac is no excuse. You're trying to do things far beyond your skill level and making no real attempt to improve that.
MathOnNapkins

1100

In SPC700 HELL


 





Since: 11-18-05

Last post: 6248 days
Last view: 6248 days
Posted on 02-14-07 08:40 AM Link
Well I will give him some credibility. I started C at a really young age too, like 11, and I was also on a Mac, incidentally. Understanding pointers was just... beyond me for some reason. It didn't make sense without actually working examples I could play around with. It wasn't until I started working with ASM for x86 and 65816 until I finally understood what the hell was going on. No matter how many times I read the descriptions on pointers, it sounded like gibberish to me. But that doesn't give him an excuse not to keep trying... it pays off in the end. Seriously, most textbooks and tutorials describe pointers in a terribly confusing fashion for a beginner. And while I believe that most authors try to make it sound easy, they would be better off using concrete examples than abstractions like mailboxes and slots and shit.
blackhole89
Moronic Thread Bodycount: 17
(since 2006-08-21 09:50 EST)
F5 F5 F5 F5 F5


 





Since: 12-31-69
From: Dresden/SN/DE

Last post: 6250 days
Last view: 6248 days
Skype
Posted on 02-14-07 01:59 PM Link
OSX macs mostly use Objective-C for most parts, C++' evil stepbrother. Its "Objective" part barely looks like C, but it is actually fully backwards compatible to it, i.e. an Obj-C compiler should be able to flawlessly compile every C program.

I started with C around the age of 10 or 11 (I was in grade 4... whatever age I was back then) and the concept of pointers and low-level programming seemed kind of natural and self-explaining to me from the first moment on. Then, C was only my third programming language.

But yeah, it is probably important to point out that, additionally to the two options HyperHacker suggested, there's always the option to 3) figure out whatever format the NES game stores its music data in and write an N64-based player that takes that format as input. If I was up for it, that'd probably be the option I'd choose.
jensthecomposer

Paratroopa


 





Since: 05-18-06
From: Norway

Last post: 6252 days
Last view: 6248 days
Posted on 02-14-07 02:09 PM Link
As far I've been told, SM64 is using a music format similar to standard MIDI. This means you should first work with standard MIDI and make sure you understand how that system works before you try figure out SM64's music format. I've been working a lot with standard MIDI by making music on sequencers. Believe me, you will need that knowledge or you won't be editing any N64 music in this life.
Yoronosuku

Toss Tortoise


 





Since: 11-17-05
From: Massachusetts is my new home..

Last post: 6248 days
Last view: 6248 days
Skype
Posted on 02-14-07 08:01 PM Link
Not ANY N64 music, but yes, SM64 uses a very close to MIDI format....not that knowing that is going to help him.

I'm going to tell you right now, NO, you cannot magically put in any MIDI you get from the internet in to the game. .___.;;;
Raccoon Sam

Boomerang Brother
Custom Title








Since: 11-20-05
From: Correct

Last post: 6248 days
Last view: 6248 days
Posted on 02-14-07 08:23 PM Link
Originally posted by Yoronosuku
I'm going to tell you right now, NO, you cannot magically put in any MIDI you get from the internet in to the game. .___.;;;

alrite can i import an mp3 then???+?+?+++1
Pages: 1 2 3Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - ROM Hacking - Changing ingame music? | Thread closed


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.022 seconds; used 454.27 kB (max 583.30 kB)