kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
352 stars 108 forks source link

Can't randomize Pokemon #154

Closed tkdfredrik04 closed 3 years ago

tkdfredrik04 commented 3 years ago

whenever i try to open pkNX and selex the pokemon folder in the SD card this error message comes up See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'D:\switch\nxdumptool\RomFS\Pok__mon Sword v0 (0100ABF008968000) (BASE)\exefs\main.npdm'.
File name: 'D:\switch\nxdumptool\RomFS\Pok__mon Sword v0 (0100ABF008968000) (BASE)\exefs\main.npdm'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)
   at pkNX.Game.GameLocation.<GetGameFromCount>g__GetTitleID|22_0(<>c__DisplayClass22_0& )
   at pkNX.Game.GameLocation.GetGameFromCount(Int32 fileCount, String romfs, String exefs)
   at pkNX.Game.GameLocation.GetGame(String dir)
   at pkNX.WinForms.Controls.EditorBase.GetEditor(String loc, Int32 language)
   at pkNX.WinForms.Main.OpenFolder(String path)
   at pkNX.WinForms.Main.OpenPath(String path)
   at pkNX.WinForms.Main.Menu_Open_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
pkNX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/pkNX.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4341.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
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.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
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.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
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/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.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/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.8.4084.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
----------------------------------------
System.Resources.Extensions
    Assembly Version: 5.0.0.0
    Win32 Version: 5.0.20.51904
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/System.Resources.Extensions.DLL
----------------------------------------
System.Memory
    Assembly Version: 4.0.1.1
    Win32 Version: 4.6.28619.01
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/System.Memory.DLL
----------------------------------------
System.Runtime.CompilerServices.Unsafe
    Assembly Version: 4.0.4.1
    Win32 Version: 4.6.28619.01
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/System.Runtime.CompilerServices.Unsafe.DLL
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 4.1.4.0
    Win32 Version: 4.6.26515.06
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/System.Numerics.Vectors.DLL
----------------------------------------
pkNX.Structures
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/pkNX.Structures.DLL
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
pkNX.Game
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/fresk/source/repos/test/pkNX.WinForms/bin/Debug/net461/pkNX.Game.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.
kwsch commented 3 years ago

Per the first line of the error message; it wasn't able to find the required file.

System.IO.FileNotFoundException: Could not find file 'D:\switch\nxdumptool\RomFS\Pok__mon Sword v0 (0100ABF008968000) (BASE)\exefs\main.npdm'.

Please ensure the npdm file exists in the above path.

tkdfredrik04 commented 3 years ago

On Mon, 28 Jun 2021 at 00:38, Kurt @.***> wrote:

Per the first line of the error message; it wasn't able to find the required file.

System.IO.FileNotFoundException: Could not find file 'D:\switch\nxdumptool\RomFS\Pok__mon Sword v0 (0100ABF008968000) (BASE)\exefs\main.npdm'.

Please ensure the npdm file exists in the above path.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kwsch/pkNX/issues/154#issuecomment-869233495, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQE2HTQKLCUGWL7WMLYYOTTU6R57ANCNFSM47M2NXHQ .h

Would that be the name of the SD card?

kwsch commented 3 years ago

main.npdm is dumped from the exefs, hence the expected path being {rom}\exefs\main.npdm

Don't edit files directly on the SD card. They should really be present on the computer that is running the program.

tkdfredrik04 commented 3 years ago

On Mon, 28 Jun 2021 at 00:45, Kurt @.***> wrote:

main.npdm is dumped from the exefs, hence the expected path being {rom}\exefs\main.npdm

Don't edit files directly on the SD card. They should really be present on the computer that is running the program.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kwsch/pkNX/issues/154#issuecomment-869234191, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQE2HROEMPKWJCIEC5ITSDTU6SZ3ANCNFSM47M2NXHQ .

Sorry for being a burden but how can i fix this issue?

kwsch commented 3 years ago

Look inside your dump folder that you are trying to open into pkNX, and ensure that main.ndpm is present inside the exefs folder.

tkdfredrik04 commented 3 years ago

On Mon, 28 Jun 2021 at 00:59, Kurt @.***> wrote:

Open your dump folder that you are trying to open, and ensure that main.ndpm is present inside the exefs folder.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kwsch/pkNX/issues/154#issuecomment-869235834, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARQE2HUF2SPTXRNIYXUEHN3TU6UMDANCNFSM47M2NXHQ .

Oh i see. I checked that folder and it was empty. Ive tried to make a new dump but the problem keeps coming up and i am out of ideas. Any way to fix that?