Jump to content

pkNX: Nintendo Switch ROM Editor & Randomizer


Recommended Posts

  • 2 weeks later...

My PkNX keeps freezing when I try to randomize the movesets of wild Pokemon. Does anyone have a fix or do I just have to wait 4 hours?

 

-edit, nvm it works

 

Edited by KlikAas
Link to comment
Share on other sites

Okay I'm using pknx to edit raids. Having trouble understand two things. 1st problem I dont know what dens correspond to pkhex dens. No good map anywhere for this. Second problem is, I dont understand the form values for raids. I tried to edit pokemon 555 into zen mode by using the values 1 and 2 and both come up as a egg.

 

Pokechamp you need to make sure your pkhex file has the den active as well. Even those the values dont correspond correctly. For example in pknx its den 90, in pkhex its den 26. If that doesnt correct your issue make sure your editing the 12 set in the den your choosing.

Link to comment
Share on other sites

  • 2 weeks later...

Does anyone else have issues joining a "missingno" raid locally? I can join non-missingno raids normally, but as soon as the Pokemon ID is set to something that isn't actually in the game it just doesn't show up in the Y-COMM.  Everything else works great though.

Link to comment
Share on other sites

8 hours ago, Yorgei said:

Does anyone else have issues joining a "missingno" raid locally? I can join non-missingno raids normally, but as soon as the Pokemon ID is set to something that isn't actually in the game it just doesn't show up in the Y-COMM.  Everything else works great though.

Support is generally only going to be provided when you use the tool to make edits that are at least somewhat within the boundaries of the game. Anything related to "MissingNo. raids" isn't a problem with the tool and you should look elsewhere for help pertaining to it.

  • Like 1
Link to comment
Share on other sites

15 hours ago, sora10pls said:

Support is generally only going to be provided when you use the tool to make edits that are at least somewhat within the boundaries of the game. Anything related to "MissingNo. raids" isn't a problem with the tool and you should look elsewhere for help pertaining to it.

Ah sorry, my bad! It was just something I noticed while playing with randomizers/edits.
 

Link to comment
Share on other sites

So i downloaded a the newest build for the dlc, i made the dupe , created the files but what ever i do i keep getting. Unhandled exception has occurred in your application. Index was outside of the bounds of the array.

Details 
 

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at pkNX.Structures.PersonalTable.SplitBytes(Byte[] data, Int32 size)
   at pkNX.Structures.PersonalTable..ctor(Byte[] data, GameVersion format)
   at pkNX.Game.GameManagerSWSH.Initialize()
   at pkNX.Game.GameManager..ctor(GameLocation rom, Int32 language)
   at pkNX.Game.GameManager.GetManager(GameLocation loc, Int32 language)
   at pkNX.WinForms.Controls.EditorBase.GetEditor(String loc, Int32 language) in D:\a\1\s\pkNX.WinForms\MainEditor\EditorProvider.cs:line 66
   at pkNX.WinForms.Main.OpenFolder(String path) in D:\a\1\s\pkNX.WinForms\Main.cs:line 130
   at pkNX.WinForms.Main.Menu_Open_Click(Object sender, EventArgs e) in D:\a\1\s\pkNX.WinForms\Main.cs:line 62
   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.4180.0 built by: NET48REL1LAST_B
    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:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
----------------------------------------
pkNX.Structures
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
pkNX.Game
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
pkNX.Containers
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------

************** 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>

Its kinda annoying cus i made the previous build from copying the code into Visual studio, but i cant do that anymore since my trial is done and i dont know what other program to use. I got this version from a pre-build on azure pipelines.

Link to comment
Share on other sites

3 hours ago, Joordy said:

So i downloaded a the newest build for the dlc, i made the dupe , created the files but what ever i do i keep getting. Unhandled exception has occurred in your application. Index was outside of the bounds of the array.

Details 
 

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at pkNX.Structures.PersonalTable.SplitBytes(Byte[] data, Int32 size)
   at pkNX.Structures.PersonalTable..ctor(Byte[] data, GameVersion format)
   at pkNX.Game.GameManagerSWSH.Initialize()
   at pkNX.Game.GameManager..ctor(GameLocation rom, Int32 language)
   at pkNX.Game.GameManager.GetManager(GameLocation loc, Int32 language)
   at pkNX.WinForms.Controls.EditorBase.GetEditor(String loc, Int32 language) in D:\a\1\s\pkNX.WinForms\MainEditor\EditorProvider.cs:line 66
   at pkNX.WinForms.Main.OpenFolder(String path) in D:\a\1\s\pkNX.WinForms\Main.cs:line 130
   at pkNX.WinForms.Main.Menu_Open_Click(Object sender, EventArgs e) in D:\a\1\s\pkNX.WinForms\Main.cs:line 62
   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.4180.0 built by: NET48REL1LAST_B
    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:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
    Assembly Version: 4.0.0.0
    Win32 Version: 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
----------------------------------------
pkNX.Structures
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
pkNX.Game
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------
pkNX.Containers
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///D:/Roms/PKHeX/pkNX/pkNX.exe
----------------------------------------

************** 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>

Its kinda annoying cus i made the previous build from copying the code into Visual studio, but i cant do that anymore since my trial is done and i dont know what other program to use. I got this version from a pre-build on azure pipelines.

Hi I'm getting the same error. I used a program to merge the update + dlc with the game nsp, then used yuzu to dump the romfs of the merged file, but when trying to load the folders with the newest pknx build it gives me the same error. If you find a solution do you mind telling me how to fix it please?

Link to comment
Share on other sites

4 hours ago, anonimous said:

Hi I'm getting the same error. I used a program to merge the update + dlc with the game nsp, then used yuzu to dump the romfs of the merged file, but when trying to load the folders with the newest pknx build it gives me the same error. If you find a solution do you mind telling me how to fix it please?

Personaly i'm not using Yuzu i'm using Nxdumptool. i tried diffrent things but nothing helps sadly. feels bad there isnt more info on this.

Link to comment
Share on other sites

4 hours ago, Joordy said:

Personaly i'm not using Yuzu i'm using Nxdumptool. i tried diffrent things but nothing helps sadly. feels bad there isnt more info on this.

You need to check the "use update/DLC" section and select the 1.2.0 UPD file when using the dump tool. The new version needs ROM with 1.2.0 patch.

  • Like 1
Link to comment
Share on other sites

can you remove the pokemon that aren't in the game from the editor? There is no point in showing them in the editor if they can't be added to trainer teams or in the wild and its very tedious because I have to keep looking up which pokemon are in the game and which not... 

Link to comment
Share on other sites

16 hours ago, I Dont Know said:

You need to check the "use update/DLC" section and select the 1.2.0 UPD file when using the dump tool. The new version needs ROM with 1.2.0 patch.

Dude you are a legend ! It works Thankyou ❤️

1 hour ago, Hello, it's me! said:

anyone who has managed to load up their game in pknx after the dlc update, how did you do it and what program did you use to dump the nsp/xci ?

i keep getting either "invalid folder" or "unhandled excpetion" error :(

the post quoted above this is exactly what i did and it worked !

Link to comment
Share on other sites

Hello there! I extract my card game (Pkmn sword 1.20) with nxdumptool on my sdcard as a *.nsp and decrypt that also with the program "NCA-NSP-XCI_TO_LayeredFS_v1.6" to get the exefs and romfs folder. Then I tried to load these with PKnx to randomize it but I get these error code in the spoiler. What I'm doing wrong here?

Spoiler

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.IndexOutOfRangeException: Der Index war außerhalb des Arraybereichs.
   bei pkNX.Structures.PersonalTable.SplitBytes(Byte[] data, Int32 size)
   bei pkNX.Structures.PersonalTable..ctor(Byte[] data, GameVersion format)
   bei pkNX.Game.GameManagerSWSH.Initialize()
   bei pkNX.Game.GameManager..ctor(GameLocation rom, Int32 language)
   bei pkNX.Game.GameManager.GetManager(GameLocation loc, Int32 language)
   bei pkNX.WinForms.Controls.EditorBase.GetEditor(String loc, Int32 language) in d:\a\1\s\pkNX.WinForms\MainEditor\EditorProvider.cs:Zeile 66.
   bei pkNX.WinForms.Main.OpenFolder(String path) in d:\a\1\s\pkNX.WinForms\Main.cs:Zeile 130.
   bei pkNX.WinForms.Main.Menu_Open_Click(Object sender, EventArgs e) in d:\a\1\s\pkNX.WinForms\Main.cs:Zeile 62.
   bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
   bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4180.0 built by: NET48REL1LAST_B.
    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/xKaito/Downloads/pkNX/pkNX/pkNX.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 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_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
pkNX.Structures
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/xKaito/Downloads/pkNX/pkNX/pkNX.exe.
----------------------------------------
pkNX.Game
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/xKaito/Downloads/pkNX/pkNX/pkNX.exe.
----------------------------------------
pkNX.Containers
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/xKaito/Downloads/pkNX/pkNX/pkNX.exe.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

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

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

 

 

 

Link to comment
Share on other sites

I'm having trouble using pkNX on Sword post Isle of Armor DLC. Changes to trainers aren't being saved and some of them aren't reflected properly when I load my game. Also, another issue I've noticed is that certain trainers with multiple battles namely Klara/Mustard when opened erase all the changes I've made to other trainers. Galarian Slowpoke also seems to have its moveset swapped with Galarian Weezing. 

I'm not sure what the fix is, but I'm using the latest build of pkNX and it's still an issue for me. Do I have to use a clean Pokemon Sword romfs as well?

Edited by Amusement
Link to comment
Share on other sites

On 6/18/2020 at 7:21 PM, I Dont Know said:

You need to check the "use update/DLC" section and select the 1.2.0 UPD file when using the dump tool. The new version needs ROM with 1.2.0 patch.

Would dumping the DLC  instead of the UPD cause an issue?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...