Replacing the samples in Cave Story and OrgMaker!

Mar 25, 2015 at 7:45 PM
squidward
"The Ultimate Sword of Extraordinary Magnitude"
Join Date: Jan 27, 2009
Location: ✨✨✨✔✔✔
Posts: 289
Age: 29
Have you ever wanted to put funky beats in your mod? (using melody instruments or entire songs is not ideal.)

No?

Either way, here it is.

I will be using Audacity as my sample editor and HxD as my hex editor.

First off, you need to download noxid's drum hack.

http://www.cavestory.org/forums/threads/4040/

First link, ORGKutsu Manual Version folder.

If you want to use some other hex patcher skip the next few steps.

Start off by copying your .exe into the ORGKutsu folder.
Run the AutoHacker python file and change Doukutsu.exe to the name of your .exe.
Install the hack.

Now you are going to need a sample.
Open whatever sample you want in your sample editor.
p194896-0-z9e9zmp.png


If it isn't already, you are going to need to make the sample Mono with a sample rate of 22050 Hz.

p194896-1-vbaghbo.png


Do this by clicking the small arrow next to the name of your sample.

You may have to adjust the speed after this.
Go to effects, change speed, and 100% if the sample rate was 44100 Hz before you changed it to 22050.

Now, you want to export it by going to file, export audio, and then stop.

p194896-2-jyzmxdf.png


Set it to "Other uncompressed files."

Then, go to the options button.

p194896-3-rehjag3.png


Make sure you have the Header set to "WAV (Microsoft)"
and the Encoding to "Unsigned 8-bit PCM."

Navigate to the instruments folder and replace whichever sample you want.
You cannot have more than 28. (probably)

After that, open up your newly saved sample in a hex editor.

p194896-4-qgwylf9.png


You will see something like this at the very top.

p194896-5-spymhhx.png


This is what the other samples have at the top.
Take note of the "fact" in the other samples.

What I do is just copy everything before data,

p194896-6-1osfyf3.png


... And replace the top of the new sample.

There is probably a way to do this that makes sense, but it worked fine for me (most of the time, but if it doesn't work, copy from another sample.)
Save your sample. It should now be 176kbps and ready to be imported.

If your .exe isn't in the ORGkutsu folder, move it there now.
Click RunMe.bat to import all of the samples into your .exe.

If everything worked out, your sample should be in Cave Story!
You have to move your .exe back into its folder now, by the way.


For OrgMaker, simply open ResHacker and go to the WAVE folder. (make sure you back up orgmaker first.)
Make sure you are changing the same sample relative to what you have in your mod.

Right click the sample you want to replace.

p194896-7-jlmarnw.png


Follow this format and click replace.
Save the .exe.

Now you should be able to use your samples in orgmaker too!







pizza


Here is an example org with the orgmaker to go with it.
 
Mar 25, 2015 at 11:40 PM
Amaya
Discord Group Moderator
"What're YOU lookin' at?"
Join Date: Jan 18, 2013
Location: Somewhere quiet with many birds
Posts: 1118
Age: 25
I was waiting for some reference to pizza the entire time and you didn't disappoint. :3

Right now the extent of my modding is messing about with simple assembly hacks, so I'll give this a try later! Might be neat to use different samples - thanks for the guide. ^_^
 
Mar 26, 2015 at 3:33 PM
Senior Member
"Fly, Fly, Fly!"
Join Date: Jul 5, 2014
Location: The Cross-Dimensional Void
Posts: 147
Age: 25
Most of this went over my head...
But good to know nontheless.
 
Mar 29, 2015 at 3:11 AM
Tommy Thunder
Discord Group Admin
Org Discord Moderator
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 24, 2011
Location: New Westminster, BC
Posts: 1368
Age: 28
Right, so after 3 days of work on this I finally have something to show off. Here are some samples at work:

https://www.youtube.com/watch?v=eQIMXQn_L_Y

Melody samples can come out sounding damn close to the original (as heard in the video), but it is a pain to get sounding right. Stick with percussion samples if you don't want much hassle.
 
Jul 7, 2015 at 3:31 AM
Junior Member
"It's dangerous to go alone!"
Join Date: Apr 24, 2015
Location: Eastern U.S.
Posts: 35
I converted some MMX samples in Audacity and then opened a copy of ORG Maker into ResHacker but when I saved the exe after replacing the samples ORG crashed when I tried to do anything. Any ideas what I might have done wrong to cause this? I replaced 29 samples I think if that could be an issue.

EDIT: I didn't read the original post carefully enough where it says melody instruments aren't ideal, which I'm guessing means the note won't be sustained and will just play for the length of the sample. And as much as I love the MMX drums they're not enough to switch me from the standard version and mess up my percussion whenever anyone else wants to play any of my org files. I guess I'll have to suck it up and learn a new program, no need to bother with solving the crashing.
 
Dec 19, 2015 at 5:10 PM
The "C" in "college" is for "crippling debt".
Bobomb says: "I need a hug!"
Join Date: Nov 12, 2014
Location: East Coast America
Posts: 759
Age: 23
Alright, I figured it would be safe to open bump this thread because I have a legitimate question about this.

I've followed these instructions to the letter and it's not working.

EDIT:

To elaborate, when I change the part before "data" in the last few steps, it makes the WAV unplayable.
 
Last edited:
Dec 19, 2015 at 5:40 PM
squidward
"The Ultimate Sword of Extraordinary Magnitude"
Join Date: Jan 27, 2009
Location: ✨✨✨✔✔✔
Posts: 289
Age: 29
Sometimes it doesn't work for a reason unknown to me, but try copying the stuff from any other one of the samples until it works. If I copy the stuff before data from any original sample and close it out, then I paste it in a sample that needs to be changed , it almost always seems break the sample. So, i just do it when they're both open. ????? I can't really explain that.
 
Dec 19, 2015 at 5:53 PM
The "C" in "college" is for "crippling debt".
Bobomb says: "I need a hug!"
Join Date: Nov 12, 2014
Location: East Coast America
Posts: 759
Age: 23
Sometimes it doesn't work for a reason unknown to me, but try copying the stuff from any other one of the samples until it works. If I copy the stuff before data from any original sample and close it out, then I paste it in a sample that needs to be changed , it almost always seems break the sample. So, i just do it when they're both open. ????? I can't really explain that.

Alright I fixed it, thanks!
 
Top