SM64 Help Thread « 1 ... 30 31 32 33 34 ... 36 »
Users browsing this thread: 1 Guest(s)

Hello. Keep getting a weird error with the level importer (Super Mario 64 Editor 2.0.6).

I'll load a fresh, extended ROM into the editor. It asks me to install an importer patch. Seems like it's installing, but then i get a Microsoft .NET Framework error.

"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Unable to read beyond the end of the stream."

Gives me a "Details" option, or Continue or Quit buttons. Here's the details:

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

************** Exception Text **************
System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
  at System.IO.BinaryReader.ReadByte()
  at ObjImportGUI.MainForm.ReadMusicData()
  at ObjImportGUI.MainForm.RomFile_TextChanged_1(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
  at System.Windows.Forms.Control.set_Text(String value)
  at System.Windows.Forms.TextBoxBase.set_Text(String value)
  at System.Windows.Forms.TextBox.set_Text(String value)
  at ObjImportGUI.MainForm.LoadROM_Click(Object sender, EventArgs e)
  at System.Windows.Forms.Control.OnClick(EventArgs e)
  at System.Windows.Forms.Button.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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1076.0 built by: NETFXREL3STAGE
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
SM64 Editor
   Assembly Version: 0.15.0.0
   Win32 Version: 0.15
   CodeBase: fileUndecided//CUndecidedUsers/Sam%20Fortunato/Desktop/ROMs/N64/Super%20Mario%2064%20Hacking/SM64%20Editor%202.0.6/SM64%20Editor.exe
----------------------------------------
System.Windows.Forms
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1055.0 built by: NETFXREL2
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1075.0 built by: NETFXREL3STAGE
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1055.0 built by: NETFXREL2
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1055.0 built by: NETFXREL2
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1067.0 built by: NETFXREL3STAGE
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
   Assembly Version: 4.0.0.0
   Win32 Version: 4.6.1055.0 built by: NETFXREL2
   CodeBase: fileUndecided//CUndecidedWindows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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:


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


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.

If I hit Quit and relaunch the importer and reload the same ROM, I get these errors:

Quote:Your ROM is not compatible with version 1.7S or later.

Then:

Quote:SM64 ROM not prepared correctly! Importing is disabled, proceed with caution.

I can load in an OBJ file, but, as the message says, importing is disabled.

I'm using a ROM ripped from an actual Super Mario 64 cartridge, by using a Retrode 2. The ROM is extended with the M64 Rom Extender.

Halp me make elite mario hacks pls.

FOUND SOLUTION: Take SM64 ROM rip, change the file extension from .n64 to .z64, and just load the ROM directly into Super Mario 64 Editor 2.0.6.
(This post was last modified: 22-01-2017, 01:34 AM by sfortun.)

(21-01-2017, 11:43 PM)sfortun Wrote: I'm using a ROM ripped from an actual Super Mario 64 cartridge, by using a Retrode 2. The ROM is extended with the M64 Rom Extender.

We don't use the M64 Rom Extender anymore, since it's outdated and causes issues on console. You can simply insert the 8MB ROM into SM64 Editor 2.0.6, and it will automatically extend your ROM for you. If that still doesn't work then I would recommend finding a "Super Mario 64 (U) [!].z64" ROM online somewhere, as that is what we base our tools on.
(This post was last modified: 22-01-2017, 01:23 AM by David.)

Awesome, I changed the extension of the ROM rip from .n64 to .z64, and put it right into the importer. It worked. Thanks!

(21-01-2017, 07:05 PM)David Wrote: I made a post on smwcentral a long time ago about macro & special objects, which may or may not be helpful to you. 
Link: http://smwc.me/1207463

I already knew of your post on smwc, and it is still very useful! Thanks!

I was wondering if I was interpreting the Y axis rotation and preset ID of macro objects correctly. To check that, I have compared my output with the TT64 one (assuming the last one was correct). However, the rotation parameter does not match.

[Image: i49YCea.png]

The object I was analyzing is the bubble shooting cannon. It's object placement list entry is the following:
Code:
E0 91 05 6C 0B 66 F6 B1 00 00

VL-Tone notes said that of the first two bytes (E0 91) the first 7 bits represent the rotation around the Y axis, and the last 9 bits represent the preset ID. So that's how I interpreted those two values:
Code:
E    0    9    1
1110|0000|1001|0001
YYYY YYYP PPPP PPPP
YRotation = 1110000b = 112
PresetID = 010010001b = 145 = 0x91

However, TT64 gives these values:
Code:
YRotation = 315
PresetID = 0x91 = 145

Only the preset ID is correct, but not the rotation angle. I wondered a bit about that since the angle span is 0 - 359 degrees, so there should be 360 different possible combinations to have a 1 degree precision. However, 7 bits make possible only 2^7 = 128 combinations. The conclusion is that I think the 7 bit value is multiplied by some greater than 1 multiplier, to make the angle span between 0 - 359 degrees, even if with less precision.

I did the ratio between the two values and i got the following value:
Code:
TT64value / 7bitValue = 315 / 112 = 2.8125

Am I correct? Is 2.8125 the right multiplier to be applied?

Edit: It would also make sense, since 360 / 128 = 2.8125
(This post was last modified: 04-02-2017, 11:01 AM by Fendoroid.)

(04-02-2017, 10:40 AM)Fendoroid Wrote: VL-Tone notes said that of the first two bytes (E0 91) the first 7 bits represent the rotation around the Y axis, and the last 9 bits represent the preset ID. So that's how I interpreted those two values:
Code:
E    0    9    1
1110|0000|1001|0001
YYYY YYYP PPPP PPPP
YRotation = 1110000b = 112
PresetID = 010010001b = 145 = 0x91

However, TT64 gives these values:
Code:
YRotation = 315
PresetID = 0x91 = 145

Only the preset ID is correct, but not the rotation angle. I wondered a bit about that since the angle span is 0 - 359 degrees, so there should be 360 different possible combinations to have a 1 degree precision. However, 7 bits make possible only 2^7 = 128 combinations. The conclusion is that I think the 7 bit value is multiplied by some greater than 1 multiplier, to make the angle span between 0 - 359 degrees, even if with less precision.

I did the ratio between the two values and i got the following value:
Code:
TT64value / 7bitValue = 315 / 112 = 2.8125

Am I correct? Is 2.8125 the right multiplier to be applied?

Edit: It would also make sense, since 360 / 128 = 2.8125

I think this value is a scaled integer (0 = 0 degrees, 128 = 360 degrees), so your computation is correct, although I would compute it with: rotationDegrees = rotationValue * 360 / 128;

Hello everyone i have a problem.
I make a custom Health Meter but i don't know how to put it in the game !

thank you in advance

Go on N64Rip @ AD57EC 32x384 RGBA16
Gone for good.

OK thanks, but everytime i launch the game , he is very buggy
(This post was last modified: 12-02-2017, 05:48 PM by shygoo. Edit Reason: merged double post )

I can't find obj importer to make my custom 3d model remplacement for mario
help

SM64 Help Thread « 1 ... 30 31 32 33 34 ... 36 »
Users browsing this thread: 1 Guest(s)