tge-was-taken / Amicitia

Editor for file formats used in Atlus' Persona games
74 stars 16 forks source link

Crash when editing .spr file #17

Open ElderLink opened 4 years ago

ElderLink commented 4 years ago

So, I wanted to integrate this new menu for a possible french translation, and this is what the editor shows me l5bSlHML png medium here is the full message : Consultez la fin de ce message pour plus de détails sur l'appel du débogage juste-à-temps (JIT) à la place de cette boîte de dialogue.

** Texte de l'exception ** System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à AmicitiaLibrary.PS2.Graphics.PS2PixelFormatHelper.WritePSMT4(BinaryWriter writer, Int32 width, Int32 height, Byte[] indicesArray) dans D:\dev\Amicitia\Source\AmicitiaLibrary\PS2\Graphics\PS2PixelFormatHelper.cs:ligne 443 à AmicitiaLibrary.PS2.Graphics.PS2PixelFormatHelper.WritePixelData[T](PS2PixelFormat fmt, BinaryWriter writer, Int32 width, Int32 height, T[] array) dans D:\dev\Amicitia\Source\AmicitiaLibrary\PS2\Graphics\PS2PixelFormatHelper.cs:ligne 471 à AmicitiaLibrary.Graphics.TMX.TmxFile.WritePixels(BinaryWriter writer) dans D:\dev\Amicitia\Source\AmicitiaLibrary\Graphics\TMX\TMXFile.cs:ligne 451 à AmicitiaLibrary.Graphics.TMX.TmxFile.Write(BinaryWriter writer) dans D:\dev\Amicitia\Source\AmicitiaLibrary\Graphics\TMX\TMXFile.cs:ligne 310 à AmicitiaLibrary.Graphics.SPR.SprFile.Write(BinaryWriter writer) dans D:\dev\Amicitia\Source\AmicitiaLibrary\Graphics\SPR\SPRFile.cs:ligne 206 à AmicitiaLibrary.IO.BinaryBase.Save(Stream stream, Boolean leaveOpen) dans D:\dev\Amicitia\Source\AmicitiaLibrary\IO\BinaryBase.cs:ligne 41 à AmicitiaLibrary.IO.BinaryBase.GetMemoryStream() dans D:\dev\Amicitia\Source\AmicitiaLibrary\IO\BinaryBase.cs:ligne 61 à Amicitia.SupportedFileManager.<>c.<.cctor>b2_23(Object o) dans D:\dev\Amicitia\Source\Amicitia\SupportedFileManager.cs:ligne 62 à Amicitia.SupportedFileInfo.GetStreamWrapper(Func`2 getStream, Object obj) dans D:\dev\Amicitia\Source\Amicitia\SupportedFileInfo.cs:ligne 58 à Amicitia.SupportedFileInfo.<>c__DisplayClass7_0.<.ctor>b0(Object o) dans D:\dev\Amicitia\Source\Amicitia\SupportedFileInfo.cs:ligne 24 à Amicitia.ResourceWrappers.ResourceWrapper1.GetResourceMemoryStream() dans D:\dev\Amicitia\Source\Amicitia\ResourceWrappers\ResourceWrapper.cs:ligne 162 à Amicitia.ResourceWrappers.PAKFileSystemWrapper.<Initialize>b__3_2(ResourceWrapper1 wrap) dans D:\dev\Amicitia\Source\Amicitia\ResourceWrappers\PAKFileSystemWrapper.cs:ligne 40 à Amicitia.ResourceWrappers.ResourceWrapper1.RebuildResource() dans D:\dev\Amicitia\Source\Amicitia\ResourceWrappers\ResourceWrapper.cs:ligne 657 à Amicitia.ResourceWrappers.ResourceWrapper1.Export(String path, SupportedFileType type) dans D:\dev\Amicitia\Source\Amicitia\ResourceWrappers\ResourceWrapper.cs:ligne 286 à Amicitia.MainForm.SaveToolStripMenuItemClickEventHandler(Object sender, EventArgs e) dans D:\dev\Amicitia\Source\Amicitia\MainForm.cs:ligne 238 à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) à System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) à System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.ScrollableControl.WndProc(Message& m) à System.Windows.Forms.ToolStrip.WndProc(Message& m) à System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Assemblys chargés ** mscorlib Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4180.0 built by: NET48REL1LAST_B CodeBase : file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Amicitia Version de l'assembly : 1.9.2.0 Version Win32 : 1.9.2.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/Amicitia.exe

System.Windows.Forms Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4150.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4001.0 built by: NET48REL1LAST_C CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.4180.0 built by: NET48REL1LAST_B CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

OpenTK.GLControl Version de l'assembly : 3.0.0.0 Version Win32 : 3.0.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/OpenTK.GLControl.DLL

OpenTK Version de l'assembly : 3.0.0.0 Version Win32 : 3.0.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/OpenTK.DLL

System.Windows.Forms.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll

AtlusFileSystemLibrary Version de l'assembly : 1.0.0.0 Version Win32 : 1.0.0.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/AtlusFileSystemLibrary.DLL

AmicitiaLibrary Version de l'assembly : 1.9.2.0 Version Win32 : 1.9.2.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/AmicitiaLibrary.DLL

netstandard Version de l'assembly : 2.0.0.0 Version Win32 : 4.8.3752.0 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll

System.Numerics.Vectors Version de l'assembly : 4.1.4.0 Version Win32 : 4.6.26515.06 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/System.Numerics.Vectors.DLL

System.Numerics Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

AssimpNet Version de l'assembly : 4.1.0.0 Version Win32 : 4.1.0 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/AssimpNet.DLL

System.Drawing.Common Version de l'assembly : 4.0.0.1 Version Win32 : 4.6.26919.02 CodeBase : file:///C:/Jeux/Mod%20P4/amicitia-rel-1.9.2/System.Drawing.Common.DLL

Accessibility Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

mscorlib.resources Version de l'assembly : 4.0.0.0 Version Win32 : 4.8.3752.0 built by: NET48REL1 CodeBase : file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll

** Débogage JIT ** Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette application ou cet ordinateur (machine.config) doit avoir la valeur jitDebugging définie dans la section system.windows.forms. L'application doit également être compilée avec le débogage activé.

Par exemple :

Lorsque le débogage juste-à-temps est activé, les exceptions non gérées seront envoyées au débogueur JIT inscrit sur l'ordinateur plutôt que d'être gérées par cette boîte de dialogue.

tge-was-taken commented 4 years ago

Can you upload the files you're trying to edit?

ElderLink commented 4 years ago

p4g_menu01_e this one (data00004/title/title.bin/p4g_menu01spr.spr)