Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
User reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Nintendo Switch
How to compile and use pkNX for Sword and Shield
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="OkazakiTheOtaku" data-source="post: 8882372" data-attributes="member: 396035"><p>(This is the same as from my GameBanana page)</p><p></p><p>This tutorial assumes you have intermediate knowledge of installing software and navigating common computer tasks, as well as navigating your hard drive. To be blunt, if these prerequisite skills are out of reach then perhaps using unreleased software is a bit irresponsible.</p><p>Also, I of course do not take responsibility for any issues or damage to any of your equipment.</p><p></p><p>Also, right click images and open them in a new window to see them larger.</p><p></p><p><strong>Step 1: Installing Visual Studio 2019</strong></p><p>Do you know how to run an installer? Good. Do that.</p><p></p><p><a href="https://visualstudio.microsoft.com/" target="_blank">Go to this page</a> and download Visual Studio Community 2019. <em>Not </em>Visual Studio Code. When installing just go through the process like normal. If asked, all you need to install is this package:</p><p><img src="https://imgur.com/UplfXiW.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Everything else can be left as default.</p><p><strong></strong></p><p><strong></strong></p><p><strong>Step 2: Cloning the source code</strong></p><p>[spoiler]<img src="https://imgur.com/bLt1ll7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/spoiler]</p><p>Open Visual Studio 2019 and click on "Clone or check out code" on the right-hand side.</p><p>[spoiler]<img src="https://imgur.com/CvkxC0c.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/spoiler]</p><p>Enter this URL: <a href="https://github.com/kwsch/pkNX" target="_blank">https://github.com/kwsch/pkNX</a></p><p>Keep all of the other options default, just click "Clone."</p><p><strong></strong></p><p><strong></strong></p><p><strong>Step 3: Compiling the source code</strong></p><p>All of PPorg's software is dead-simple to compile. After the GitHub repo is finished being cloned by VS 2019, you will see a window similar to this:</p><p>[spoiler]<img src="https://imgur.com/iDqmyQ7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/spoiler]</p><p>On the right-hand side of the screen, right-click on "pkNX.sln"</p><p>[spoiler]<img src="https://imgur.com/43qaoil.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/spoiler]</p><p>Click "Build"</p><p><img src="https://imgur.com/VhHIM5Z.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p><strong>Step 4: Finding your binary</strong></p><p>Depending on how fast your computer is, it will take a certain amount of time for the binary file to compile. When it is done, the bottom of the VS 2019 window will tell you "Build Succeeded" and also tell you where the actual .exe is.</p><p>[spoiler]<img src="https://imgur.com/X77WkPO.png" alt="" class="fr-fic fr-dii fr-draggable " style="" />[/spoiler]</p><p>Assuming that you kept all other options as default, the steps below will help you find it.</p><p>Hit the Win+R keys on your keyboard to open the "Run" prompt. In it, type Source like so:</p><p><img src="https://imgur.com/x9HExMA.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>In Windows Explorer, open repos, then pkNX, then pkNX.WinForms, then bin, then Debug.</p><p><img src="https://imgur.com/hQwOmhf.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>This is your pkNX binary. These files need to be kept together. You can move them wherever you want on your hard drive, but they need to be together.</p><p></p><p><strong>Step 5: Setting up your game files for pkNX</strong></p><p>Obtain your Pokémon Sword or Shield romfs. Dump it yourself. Obtaining it is not in the scope of this guide.</p><p></p><p>When you have your romfs, you must structure them in a very specific way for pkNX to accept it. This is the best way to do it, using Sword as an example:</p><p></p><p>Have a top-level folder named Pokemon [Game]</p><p><img src="https://imgur.com/Fm8uvlf.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>Inside of that folder you put your clean, unedited romfs.</p><p><u>In the same directory as the romfs folder, you need to have an exefs folder. </u></p><p><u>It can be completely empty, but it needs to be there. </u></p><p><img src="https://imgur.com/Et5FQcX.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Step 6: Using pkNX</strong></p><p>Open your brand-new pkNX.exe and drag your top-level Pokemon Sword folder onto the window. It will load it in.</p><p></p><p>Using all of the actual elements of the tool is a bit complicated and outside of the scope of this guide, but what you need to know is this:</p><p>When you make your edits, the tool is keeping track of everything you changed. When you close pkNX, the software writes a file with the titleID of the game next to the romfs and exefs folders from step 5</p><p><img src="https://imgur.com/yKCwGeh.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>This file gets loaded in with Atmosphere LayeredFS and is all you need to use your mod. You never need to actually edit the romfs folder.</p><p></p><p>When opening pkNX, if this Title ID folder exists, it will use it and display the modifications from it. If it does not, it will just base it off of the vanilla game and write a new folder.</p><p></p><p><strong>Step 7: ???</strong></p><p></p><p><strong>Step 8: <a href="https://gamebanana.com/gamefiles/10453" target="_blank">Profit</a></strong></p><p></p><p><strong>Troubleshooting</strong></p><p>Some users are having issues regarding an error message to the effect of</p><p><em>project.assets.json' not found </em>and/or<em> A numeric comparison was attempted on "$(MsBuildMajorVersion)" that evaluates to "" instead of a number, in condition "($(MsBuildMajorVersion) < 16)". </em></p><p></p><p>This seems to happen when building on Windows 10. I was able to reproduce this in a clean VM with no variables and was able to fix it. A full tutorial is planned but if you get these issues then here is a quick-and-dirty solution:</p><p></p><p>In VS 2019, go to View -> Other Windows -> Package Manager Consoleand enter <em>dotnet build</em></p><p>When that finishes, if you still receive the numeric comparison issue, then follow these steps: </p><p></p><p>1. In the right-hand side of VS 2019, double click the pkNX.sln file</p><p>2. Go to Tools -> NuGet Package Manager ->Manage NuGet Packages for this Solution</p><p>3. Under Installed, find Costura.Foddy and click on it.</p><p>4. On the right-hand side of the pane that appeared, select all of the pkNX choices and hit "uninstall"</p><p>5. Accept all of the resulting warnings and dialogue boxes</p><p>6. When it finishes, in the NuGet Package Manager, go to Browse and find Costura.Foddy</p><p>7. Do the same as step 4 but Install instead. Accept all of the warnings.</p><p></p><p>It should build properly after this.</p></blockquote><p></p>
[QUOTE="OkazakiTheOtaku, post: 8882372, member: 396035"] (This is the same as from my GameBanana page) This tutorial assumes you have intermediate knowledge of installing software and navigating common computer tasks, as well as navigating your hard drive. To be blunt, if these prerequisite skills are out of reach then perhaps using unreleased software is a bit irresponsible. Also, I of course do not take responsibility for any issues or damage to any of your equipment. Also, right click images and open them in a new window to see them larger. [B]Step 1: Installing Visual Studio 2019[/B] Do you know how to run an installer? Good. Do that. [URL='https://visualstudio.microsoft.com/']Go to this page[/URL] and download Visual Studio Community 2019. [I]Not [/I]Visual Studio Code. When installing just go through the process like normal. If asked, all you need to install is this package: [IMG]https://imgur.com/UplfXiW.png[/IMG] Everything else can be left as default. [B] Step 2: Cloning the source code[/B] [spoiler][IMG]https://imgur.com/bLt1ll7.png[/IMG][/spoiler] Open Visual Studio 2019 and click on "Clone or check out code" on the right-hand side. [spoiler][IMG]https://imgur.com/CvkxC0c.png[/IMG][/spoiler] Enter this URL: [URL]https://github.com/kwsch/pkNX[/URL] Keep all of the other options default, just click "Clone." [B] Step 3: Compiling the source code[/B] All of PPorg's software is dead-simple to compile. After the GitHub repo is finished being cloned by VS 2019, you will see a window similar to this: [spoiler][IMG]https://imgur.com/iDqmyQ7.png[/IMG][/spoiler] On the right-hand side of the screen, right-click on "pkNX.sln" [spoiler][IMG]https://imgur.com/43qaoil.png[/IMG][/spoiler] Click "Build" [IMG]https://imgur.com/VhHIM5Z.png[/IMG] [B]Step 4: Finding your binary[/B] Depending on how fast your computer is, it will take a certain amount of time for the binary file to compile. When it is done, the bottom of the VS 2019 window will tell you "Build Succeeded" and also tell you where the actual .exe is. [spoiler][IMG]https://imgur.com/X77WkPO.png[/IMG][/spoiler] Assuming that you kept all other options as default, the steps below will help you find it. Hit the Win+R keys on your keyboard to open the "Run" prompt. In it, type Source like so: [IMG]https://imgur.com/x9HExMA.png[/IMG] In Windows Explorer, open repos, then pkNX, then pkNX.WinForms, then bin, then Debug. [IMG]https://imgur.com/hQwOmhf.png[/IMG] This is your pkNX binary. These files need to be kept together. You can move them wherever you want on your hard drive, but they need to be together. [B]Step 5: Setting up your game files for pkNX[/B] Obtain your Pokémon Sword or Shield romfs. Dump it yourself. Obtaining it is not in the scope of this guide. When you have your romfs, you must structure them in a very specific way for pkNX to accept it. This is the best way to do it, using Sword as an example: Have a top-level folder named Pokemon [Game] [IMG]https://imgur.com/Fm8uvlf.png[/IMG] Inside of that folder you put your clean, unedited romfs. [U]In the same directory as the romfs folder, you need to have an exefs folder. It can be completely empty, but it needs to be there. [/U] [IMG]https://imgur.com/Et5FQcX.png[/IMG] [B]Step 6: Using pkNX[/B] Open your brand-new pkNX.exe and drag your top-level Pokemon Sword folder onto the window. It will load it in. Using all of the actual elements of the tool is a bit complicated and outside of the scope of this guide, but what you need to know is this: When you make your edits, the tool is keeping track of everything you changed. When you close pkNX, the software writes a file with the titleID of the game next to the romfs and exefs folders from step 5 [IMG]https://imgur.com/yKCwGeh.png[/IMG] This file gets loaded in with Atmosphere LayeredFS and is all you need to use your mod. You never need to actually edit the romfs folder. When opening pkNX, if this Title ID folder exists, it will use it and display the modifications from it. If it does not, it will just base it off of the vanilla game and write a new folder. [B]Step 7: ???[/B] [B]Step 8: [URL='https://gamebanana.com/gamefiles/10453']Profit[/URL][/B] [B]Troubleshooting[/B] Some users are having issues regarding an error message to the effect of [I]project.assets.json' not found [/I]and/or[I] A numeric comparison was attempted on "$(MsBuildMajorVersion)" that evaluates to "" instead of a number, in condition "($(MsBuildMajorVersion) < 16)". [/I] This seems to happen when building on Windows 10. I was able to reproduce this in a clean VM with no variables and was able to fix it. A full tutorial is planned but if you get these issues then here is a quick-and-dirty solution: In VS 2019, go to View -> Other Windows -> Package Manager Consoleand enter [I]dotnet build[/I] When that finishes, if you still receive the numeric comparison issue, then follow these steps: 1. In the right-hand side of VS 2019, double click the pkNX.sln file 2. Go to Tools -> NuGet Package Manager ->Manage NuGet Packages for this Solution 3. Under Installed, find Costura.Foddy and click on it. 4. On the right-hand side of the pane that appeared, select all of the pkNX choices and hit "uninstall" 5. Accept all of the resulting warnings and dialogue boxes 6. When it finishes, in the NuGet Package Manager, go to Browse and find Costura.Foddy 7. Do the same as step 4 but Install instead. Accept all of the warnings. It should build properly after this. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Nintendo Switch
How to compile and use pkNX for Sword and Shield
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
AncientBoi
Loading…
Bunjolio
Loading…
@
BigOnYa
:
Its all good, I'm here to talk to you.
Today at 5:37 AM
@
BigOnYa
:
Hello
Today at 5:39 AM
@
MysticStarlight
:
It's me
+1
Today at 5:43 AM
@
BigOnYa
:
I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
+1
Today at 5:43 AM
@
MysticStarlight
:
I'm wondering why a stray tuxedo cat has a cloudy eye
Today at 5:45 AM
@
MysticStarlight
:
I've been playing TOTK all day also
+1
Today at 5:46 AM
@
MysticStarlight
:
Oh you reminded me of those elevator nightmares
Today at 5:47 AM
@
BigOnYa
:
Awesome game, fun how they force you to build, but you can build as you want
Today at 5:47 AM
@
MysticStarlight
:
It is super fun, I actually prefer it over BoTW
+1
Today at 5:48 AM
@
BigOnYa
:
The guy holding the sign always cracked me up, esp when you fail, and it falls
Today at 5:48 AM
@
MysticStarlight
:
Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
Today at 5:50 AM
@
MysticStarlight
:
I'm 120 hours in and am still like 44.4% done
+1
Today at 5:51 AM
@
BigOnYa
:
Good times. Building is starting to get good around now for you. You making me want to make run thru again.
Today at 5:52 AM
@
BigOnYa
:
Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
Today at 6:02 AM
@
Veho
:
https://i.imgur.com/E1U7Nlt.mp4
+1
Today at 6:22 AM
@
K3Nv2
:
All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
Today at 8:45 AM
@
K3Nv2
:
@BigOnYa
, tell your wife not to forget her wallet
+1
Today at 8:47 AM
@
K3Nv2
:
https://youtu.be/YMAa6obDNZs?si=rymChLKeTdyS8nqk
Today at 10:57 AM
@
K3Nv2
:
https://youtube.com/shorts/uc3tthE-mJ8?si=TPR_EM9yWrpcHHy7
Today at 2:00 PM
@
The Real Jdbye
:
bitches
Today at 2:12 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=HYaFp_WnSP8
Today at 2:47 PM
@
K3Nv2
:
https://www.goodrx.com/conditions/l...305176&utm_content=weekly&utm_param2=05-30-24
Today at 3:04 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=AV8dBxGdNxk
Today at 3:08 PM
@
Bunjolio
:
bleh
+1
19 minutes ago
@
AncientBoi
:
What the hell was that Syl?
16 minutes ago
Submit
@
AncientBoi
:
What the hell was that Syl?
16 minutes ago
Chat
2