• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Forum moderator applications are now open! Click here for details.
  • 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)

WrathOfArceus

Arceus Tamer
15
Posts
12
Years
  • Seen Aug 16, 2011
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.
 

ipatix

Sound Expert
145
Posts
15
Years
Can you give me your .s file or the patch of your ROM?

That could help me!
 
Last edited:

ipatix

Sound Expert
145
Posts
15
Years
@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 ;-)
 

Full Metal

C(++) Developer.
810
Posts
16
Years
Haha, okay. I really was going to just try and debug WOA's issue, but it looks like you've got it figured out. (:
 
3
Posts
12
Years
  • Seen Aug 11, 2011
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?
 

ruup20

Gonna splash everybody!
118
Posts
13
Years
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:

ipatix

Sound Expert
145
Posts
15
Years
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!
 

SK3

Pokemon Hacking Company™ CEO
276
Posts
12
Years
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? :(
 

ipatix

Sound Expert
145
Posts
15
Years
I think you did use a not correct song pointer offset.
Make sure you did the calculation like I showed in the first post.

You can also look if some other songs now have changed!
 

SK3

Pokemon Hacking Company™ CEO
276
Posts
12
Years
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:

johnr754

I am JOHN, heck yeah!
78
Posts
14
Years
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:

supershadow64ds

Confused Noob Programmer
25
Posts
12
Years
  • Seen Nov 14, 2023
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.
 

Dylanrockin

That guy
276
Posts
12
Years
  • Age 28
  • Seen Jun 9, 2016
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