Jump to content
Kaphotics

pkNX: Nintendo Switch ROM Editor & Randomizer

Recommended Posts

3 hours ago, clinkz said:

Are there chances of adding new coaches in the game?
About the new scripts, do you intend to continue the update in your tool?

Script engine is the same as gen6 and gen7; however, the scripting engine reverse engineering has never been fully unlocked like prior games. I can't do everything ;)

Without script editing (and overworld editing), no addition of interactable content.

Share this post


Link to post
Share on other sites

I've got an issue, whenever I edit the stats of a trainer's pokemon then set and save it doesn't save, it just returns back to how it was originally. 

Share this post


Link to post
Share on other sites

So I did randomize the pokemon and trainers in my game, but the i wanted to randomize the pokemon evolutions and moves so i tried and now when I try to run my pokemon Lets go Pikachu it just doesnt load, it freezes and minutes later closes out, my folder is correct but i dont know whats happening.  Just in case, these are the things I changed: Wild encounters, trainers pokemon, pokemons evolutions, and pokemons movesets.

Share this post


Link to post
Share on other sites

Thank you for fixing the last couple of issues I reported. Here's a few more that I've found, if you're still interested:

Trainers: When editing the IV/EV/AV stats of trainer Pokémon, the changes often don't save. Sometimes I can get the stats to save if I don't edit any other properties of trainer Pokémon and actually don't click the save button before closing the window (just edit the stats for a single Pokémon then close the window without clicking the save button).

Trainers: If using the randomizer on trainers to only boost the levels of Pokémon, but not add or randomize any of the existing Pokémon, the program will still add two Pokémon to all encounters with Jessie and James (trainers 7, 8, 20, 21, 24, 25, 32, 33, 50 and 51). It also removes the Jolteon/Raichu from an encounter with the rival (trainers 30 and 31).

Trainers: When modifying trainers manually, if you select the "view" option on an Alolan Pokémon, the form value gets set to 0. So if you make any changes to that Pokémon and "set" it to save the changes, it gets changed to the non-Alolan variant of that Pokémon.

Pokémon: When modifying the Base EXP of Pokémon, the program will change the RandomGender value for most Pokémon. This value isn't visible within the program, but if you dump the tables before and after modifying, you can see the values have changed for the RandomGender column when comparing the two tables. This happens whether modifying the Base EXP manually or with the randomizer tool to scale the EXP for all Pokémon.

Edited by Dziggy

Share this post


Link to post
Share on other sites

RandomGender: It's a derived property (gets a random valid gender), so the dual gendered mons may return a different random gender. Ignore that column -- I just removed it from the export by changing the inner logic (no longer a Property)

I'll investigate the others for Trainers

edit: @Dziggy thanks, all should be resolved now :)

Share this post


Link to post
Share on other sites
On 1/27/2019 at 6:32 AM, AvatarMew said:

I've got an issue, whenever I edit the stats of a trainer's pokemon then set and save it doesn't save, it just returns back to how it was originally. 

 

On 2/17/2019 at 11:04 PM, Dziggy said:

Thank you for fixing the last couple of issues I reported. Here's a few more that I've found, if you're still interested:

Trainers: When editing the IV/EV/AV stats of trainer Pokémon, the changes often don't save. Sometimes I can get the stats to save if I don't edit any other properties of trainer Pokémon and actually don't click the save button before closing the window (just edit the stats for a single Pokémon then close the window without clicking the save button).

Trainers: If using the randomizer on trainers to only boost the levels of Pokémon, but not add or randomize any of the existing Pokémon, the program will still add two Pokémon to all encounters with Jessie and James (trainers 7, 8, 20, 21, 24, 25, 32, 33, 50 and 51). It also removes the Jolteon/Raichu from an encounter with the rival (trainers 30 and 31).

Trainers: When modifying trainers manually, if you select the "view" option on an Alolan Pokémon, the form value gets set to 0. So if you make any changes to that Pokémon and "set" it to save the changes, it gets changed to the non-Alolan variant of that Pokémon.

Pokémon: When modifying the Base EXP of Pokémon, the program will change the RandomGender value for most Pokémon. This value isn't visible within the program, but if you dump the tables before and after modifying, you can see the values have changed for the RandomGender column when comparing the two tables. This happens whether modifying the Base EXP manually or with the randomizer tool to scale the EXP for all Pokémon.

I'm still experiencing  all of these issues, and I'm not seeing any versions on the dl link other than 0.1.0...

Share this post


Link to post
Share on other sites

Is there any specific reason as to why the first coach trainer on route 3 crashes when you randomize trainer classes. I had randomized trainer classes and when the battle was about to start it just crashed. So I went back into pknx and changed it back to Coach Trainer and the battle continued. I then thought it would be like this for all coach trainers, so I saved in front of the coach trainer on route 4 and but that coach trainer was fine with a randomized class.

Share this post


Link to post
Share on other sites
8 hours ago, LilPuff420 said:

Hi

I am using pknx and it works? Changing shiny rate and spawn works 100% but when i edit trainer pokes and set the edited pokes then save, I get no folder with my games title ID like I do with the spawn modifier and shiny rate changes

Help?

Close the program to save / flush all changes.

Share this post


Link to post
Share on other sites
4 minutes ago, LilPuff420 said:

Thanks! 

Also, how come it has all the Pokemon in let's go only uses 152 plus meltan?

 

Ask GameFreak.

  • Like 1

Share this post


Link to post
Share on other sites

I am trying to increase the level of Trainers Pokemon by 1.5 but it isn't working. My rivals Pokemon isn't level 9 like it should be. Instead it is 45. 

Share this post


Link to post
Share on other sites
40 minutes ago, Thetubbs99 said:

I am trying to increase the level of Trainers Pokemon by 1.5 but it isn't working. My rivals Pokemon isn't level 9 like it should be. Instead it is 45. 

Restore backups and only randomize/bump levels once. If you keep repeating the action, it'll compound their levels.

Share this post


Link to post
Share on other sites

Hi, I just built the latest version pkNX that is supposed to have Sword/Shield support. However, when I try to open the folder with the romfs/exefs, it says invalid game/the game can't be recognized. Any reason why?

Share this post


Link to post
Share on other sites
12 minutes ago, Kobazco said:

Hi, I just built the latest version pkNX that is supposed to have Sword/Shield support. However, when I try to open the folder with the romfs/exefs, it says invalid game/the game can't be recognized. Any reason why?

Double check the file count in the rom folder. If you've dirtied it by unpacking game files inside of it, the file count won't match the expected count.

41,702 is the magic number for sw/sh!

Share this post


Link to post
Share on other sites
11 minutes ago, Kaphotics said:

Double check the file count in the rom folder. If you've dirtied it by unpacking game files inside of it, the file count won't match the expected count.

41,702 is the magic number for sw/sh!

Thanks this fixed it! I had some backup files that were auto made by HxD when I was doing some trainer editing on my own a few days ago lol. Thanks for all your hard work.

Share this post


Link to post
Share on other sites

I tried building the newest build and i get the following error in Visual Studio 2019: 

A numeric comparison was attempted on "$(MsBuildMajorVersion)" that evaluates to "" instead of a number, in condition "($(MsBuildMajorVersion) < 16)".    pkNX.WinForms                

 

Also the following Warnings:


Warning        The referenced component 'System.Drawing' could not be found.    pkNX.WinForms                
Warning        The referenced component 'System.Xml' could not be found.    pkNX.WinForms                
Warning        The referenced component 'Newtonsoft.Json' could not be found.    pkNX.WinForms                
Warning        The referenced component 'System' could not be found.    pkNX.WinForms                
Warning        The referenced component 'System.Windows.Forms' could not be found.    pkNX.WinForms                
Warning        The referenced component 'Costura' could not be found.    pkNX.WinForms                
Warning        The referenced component 'System.Data' could not be found.    pkNX.WinForms                
               

Edited by Mindinfinity

Share this post


Link to post
Share on other sites

Is there any chance someone has a compiled version they could share? I have a pretty small SSD in my current system and can't really spare the 12 or so GB required for Visual Studio to compile this myself.

Share this post


Link to post
Share on other sites
4 hours ago, LetsGoTyranitar said:

Is there any chance someone has a compiled version they could share? I have a pretty small SSD in my current system and can't really spare the 12 or so GB required for Visual Studio to compile this myself.

Same, thats what I am waiting for.

Share this post


Link to post
Share on other sites

Here's my build of what was on github as of this posting.

But anyways, I have a bug report I guess? Opening "Wild_SW" or "Wild_SH" works once, but then after closing, even without saving, reopening only shows blanks for all areas. Deleting the folder created after opening it fixes this, but I assume that's not intended.

pkNX.zip

Share this post


Link to post
Share on other sites
2 minutes ago, Shadowth117 said:

Here's my build of what was on github as of this posting.

But anyways, I have a bug report I guess? Opening "Wild_SW" or "Wild_SH" works once, but then after closing, even without saving, reopening only shows blanks for all areas. Deleting the folder created after opening it fixes this, but I assume that's not intended.

It wasn't fully finished; the flatbuffer re-encoding wasn't thoroughly checked as we were more focused on reading rather than writing.

Share this post


Link to post
Share on other sites
3 hours ago, Kaphotics said:

It wasn't fully finished; the flatbuffer re-encoding wasn't thoroughly checked as we were more focused on reading rather than writing.

Sry, I assumed because it said Sword & Shield update in the Github logs it was some what ready. Did not want to make it sound like I was trying rush. Thx for all your hard work.

Edited by Mindinfinity

Share this post


Link to post
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...