• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Tool: M4A build in assembler (Music)

Visual C# 2008 (.NET 3.5)

I see.
I was going to ask to see the source, and maybe debug it with/for you. Unfortunately, I'm not so sharp at...C# ( no pun intended. x) )
 
Details Of My Error

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException: Retrieving the COM class factory for component with CLSID {DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7} failed due to the following error: 800700c1.
at System.Windows.Forms.OpenFileDialog.CreateVistaDialog()
at System.Windows.Forms.FileDialog.RunDialogVista(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
at WindowsFormsApplication1.Form1.button2_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4961 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
M4A build in Assembler
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Owner/AppData/Local/Temp/Rar$EX83.752/M4A%20build%20in%20Assembler.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4961 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4957 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
@WrathofArceus:
Did you overwrite a song that was damaged?
Because it seems that the program has crashed after getting the length of the old trackdata to remove them.

@Full Metal:
Okay you can get the source code, but I can't give it to you now because my other PC got a virus.
I will tell you when I can give you the source ;-)
 
Haha, okay. I really was going to just try and debug WOA's issue, but it looks like you've got it figured out. (:
 
Yesss! Finally a replacement for sappy!

Just one part I don't understand though. Does the delete byte have to be anything in particular? If so, how do we know what it is?
 
You can find the voicegroups for FR here
Oh, and is the delete byte just FF or 00? And I really don't know how to place it in a town like Pallet town. :(
 
Last edited:
For all people that don't understand: Your old trackdata will get filled with the value of "delete byte" for saving space.

So usually the delete byte is "0xFF" but you can use any other value you want!
 
Okay I tried to replace Pallet Town, and I believe I put all of the right values, and the tool said song successfully imported, but when I opened my ROM Pallet Town still played? :(
 
Yeah, I multiplied the Pallet Town song number (012C) by 0x8 and then added the songlist pointer to that, and then I completed the rest of the steps and nothing happened.

I'll check to see if the other songs changed though.

Edit: So the music that plays when Oak first confronts you changes to the song I inserted XD. I don't know how that happened.
 
Last edited:
I did not try it out yet, but I hope I can import songs from Mother 1+2 and Mother 3 to my hack. If I can, I would change Pallet Town to.....let's just say Eagleland after defeating Giygas. And, several others. I would not do Sappy anyways. I guess Sappy is sappy right now!
 
Last edited:
Alrighty, I can insert the song and it plays, however, the song is just on 1 channel, and it's just a "boop" noise, something that sounds like an undefined instrument. Is there something I'm doing wrong? Am I compiling the song wrong in MID2ABG?
If it helps, I don't strip the MIDI into seperate files for each track because I can't recompile the .s files into one large .s file.
 
I keep getting this error, I am not quite sure what this means or how to get around it. Deleting temporary files...
Running ARM Assembler...

Assembly failed!
Song import halted!
 
Back
Top