Jump to content
  • How to Compile The Latest Version of PKHeX

    I decided to make a quick video and guide on how to compile PKHeX since most of the guides or "tutorials" I see out there are either outdated or way too complicted for the average user that just wants to quickly get the latest version of PKHeX. I know when I first started to get into the compiled versions of PKHeX, I had so much trouble getting things to work. Ill also include a video I just made explaining it too.

     

    1. Go and download Microsoft Visual Studio Community 2017 Here: https://www.visualstudio.com/downloads/

    001.jpg

    2. Install and make sure Microsoft VS opens properly (you may need the latest .NET installed)

     

    3. go to https://github.com/kwsch/PKHeX and download the latest master

     

    Untitled-2.thumb.png.004d32c67d3e302e3d52cad90220e3c5.png

     

    4. Unzip the "PKHeX-master" folder from the zip you just downloaded and open "PKHeX.sln"

     

    Untitled-3.png.b593d36e1904094a8ef464424396fea9.png

     

    5. click on "Build" and then "Build Solution"

     

    Untitled-4.thumb.png.67caefab3cac87ac9ba699d072ab70a4.png

     

    6. Make Sure it Says that 0 Failed. If any Files Fail to Build I Would Just Retry Step 5

     

    Untitled-5.thumb.png.3b9c9f90d993ff65e4deb644c1740271.png

     

    7. Go back to the "PKHeX-master" Folder from Earlier and Enter (PKHeX.WinForms>>bin>>Debug) If Everything Worked you Should see All of the PKHeX Files in this Folder. (You Only Need the PKHeX Program (the one with the PKHeX Logo) and the PKHeX.Core.dll File. The Rest of the "PKHeX-master Folder Can be Deleted.

     

    Untitled-6.png.4c975f4928d3cec4d5badcccc7129678.png

     

    Congrats! You Just Learned How to Compile PKHeX. If You Need Any More Clarification Just Check Out My Video Tutorial Above.B|

    Edited by NinFanBoyFTW

    • Like 2
    • Thanks 2



    User Feedback

    Recommended Comments



    No, i mean the pkhex.sln file. Also, I figured out how to change the project.

    Share this comment


    Link to comment
    Share on other sites

    @BlackShark So I ran it, and here are the 4 files i have in my folder:

    PKHex.Core.dll

    PKHeX

    PKHeX.exe

    PKHeX.pdb

    Do I just need to move the first 2 files and i can delete the entire "PKHeX-master" folder?

    Share this comment


    Link to comment
    Share on other sites

    5 minutes ago, BigPapiBrian said:

    It's under build config manager, right?

    Well what I meant was this, but you can change it that way as well.

    release.png.1466d5a6bcf64542425c0fc4ac19fc1e.png

    3 minutes ago, BigPapiBrian said:

    @BlackShark So I ran it, and here are the 4 files i have in my folder:

    PKHex.Core.dll

    PKHeX

    PKHeX.exe

    PKHeX.pdb

    Do I just need to move the first 2 files and i can delete the entire "PKHeX-master" folder?

    What exactly is the file type of the first two files? If they are XML Configuration files you don't need them. You just need the exe.

    Share this comment


    Link to comment
    Share on other sites

    The 1st and 3rd are XML Configs, the 2nd is an Application, and the 4th is a Program Debug (I couldn't see the rest of the type). Also, I may have done an oopsie. I ran the application, and i hit no to bak file. I can restart the process if I need to, as it doesn't take long. Last thing. I tried to import a ROM, but it said the file was too large. Is there any way I can do this?

    Edited by BigPapiBrian

    Share this comment


    Link to comment
    Share on other sites

    @BigPapiBrian You don't need to restart the process. You can create a new folder in the directory where your PKHeX.exe is and call it bak. Also there should be an option in PKHeX's settings to enable automatic bakups.

    You don't import ROMs in PKHeX, you need to get the save file. Check the tutorials for how to mange saves for different console types https://projectpokemon.org/tutorials/

    Since this is going off topic now (this thread is about compilation only) move further discussion into the PKHeX sub forums https://projectpokemon.org/home/forums/forum/83-pkhex/ or send me a private message.

    Share this comment


    Link to comment
    Share on other sites

    Hello Guys, I've tried to stick to the guideline, but it does not work. Can someone please help me?  I habe just 1/4 Projects. When opening Pkhex.sln, it says that at least one project was not loaded successfully. What am i doing wrong? Many thanks in advance

    image.png.84c84d299aebbf5d33b2133b5f24911c.pngimage.png.0f3a907651f434eefe448a79f8a7b8ce.png

    Share this comment


    Link to comment
    Share on other sites

    2 hours ago, OG93 said:

    Hello Guys, I've tried to stick to the guideline, but it does not work. Can someone please help me?  I habe just 1/4 Projects. When opening Pkhex.sln, it says that at least one project was not loaded successfully. What am i doing wrong? Many thanks in advance

    image.png.84c84d299aebbf5d33b2133b5f24911c.pngimage.png.0f3a907651f434eefe448a79f8a7b8ce.png

    You'll need to install the .Net Core SDK 3.0 to build PKHeX. Alternatively, you can find the latest development build of PKHeX here:

     

    Share this comment


    Link to comment
    Share on other sites

    Anyone know how to fix net sdk/net core issues? Tried different versions, turned the extension on in visual studios, and dont know how to find or make a globaljson

    Share this comment


    Link to comment
    Share on other sites

    I got 5 errors which basically all said that project.assets.json were missing and needed to use NuGet Restore. I can go to the manager of NuGet but no Restore options. What do I do?

    Share this comment


    Link to comment
    Share on other sites

    I installed these components but the Build menu doesn't have Build solution.

    vc.thumb.jpg.0235460e305a4fc28674364d4236c12f.jpg

    What is the minimum that I need to download in order to compile it? I'd be greatful if anyone compiles the latest version for me :(

     

    Share this comment


    Link to comment
    Share on other sites

    35 minutes ago, der_bayer36 said:

    What is the minimum that I need to download in order to compile it? I'd be greatful if anyone compiles the latest version for me

    .NET desktop development is all you need. You can just get the latest development build from here.

     

    Share this comment


    Link to comment
    Share on other sites

    16 hours ago, BlackShark said:

    .NET desktop development is all you need. You can just get the latest development build from here.

     

    Thank you :)

    Edited by der_bayer36

    Share this comment


    Link to comment
    Share on other sites

    I keep getting 3 succeeded 1 failed no matter how many times i redownload the file or rerun the build... any suggestions?

    Share this comment


    Link to comment
    Share on other sites

    15 minutes ago, gremlin said:

    I keep getting 3 succeeded 1 failed no matter how many times i redownload the file or rerun the build... any suggestions?

    the error is specifically saying that pkhex.winforms is restricted or has an internet mark that needs to be removed...:

    4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3075,5): error MSB3821: Couldn't process file Subforms\Save Editors\SAV_Inventory.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
    4>Done building project "PKHeX.WinForms.csproj" -- FAILED.
    4>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(3075,5): error MSB3821: Couldn't process file Subforms\Save Editors\SAV_Inventory.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files.
    4>Done building project "PKHeX.WinForms.csproj" -- FAILED.

    "

    Share this comment


    Link to comment
    Share on other sites

    On 4/22/2020 at 1:47 PM, BigPapiBrian said:

    @BlackShark I installed it, but it still says 0/4 projects.

    2020-04-22 (1).png

    I have this issue as well, and it didn't magically start working. Someone clue me in please? I really want to start getting the gender pokemon that I want without having to restart umpteen million times

    Share this comment


    Link to comment
    Share on other sites

    1 hour ago, Omi-Wan Kenobi said:

    I have this issue as well, and it didn't magically start working. Someone clue me in please? I really want to start getting the gender pokemon that I want without having to restart umpteen million times

    You can get the latest development build of PKHeX which includes the latest commits from github from here.

     

    If you still want to build it from source, first make sure you have .NET desktop development installed in Visual Studio Installer. If you don't have it, install it then redownload the source.

    Share this comment


    Link to comment
    Share on other sites

    22 minutes ago, BlackShark said:

    You can get the latest development build of PKHeX which includes the latest commits from github from here.

     

    If you still want to build it from source, first make sure you have .NET desktop development installed in Visual Studio Installer. If you don't have it, install it then redownload the source.

    I downloaded the zip folder. do i just need to drag the two highlighted items (1st attachment) to say my desktop and PKHex will work without the VS and having to compile PKheX? and I DID make sure I had the .NET desktop development installed in Visual Studio, and I just redownloaded the source (from https://github.com/kwsch/PKHeX) and tried to run PKheX.sln but had this pop up (2nd attachment) then it gives me this (3rd attachment). Thank you for your quick response to my first comment btw!

    Screenshot 2020-12-29 193726.png

    Screenshot 2020-12-29 193800.png

    Screenshot 2020-12-29 193852.png

    Share this comment


    Link to comment
    Share on other sites

    2 hours ago, Omi-Wan Kenobi said:

    I downloaded the zip folder. do i just need to drag the two highlighted items (1st attachment) to say my desktop and PKHex will work without the VS and having to compile PKheX? and I DID make sure I had the .NET desktop development installed in Visual Studio, and I just redownloaded the source (from https://github.com/kwsch/PKHeX) and tried to run PKheX.sln but had this pop up (2nd attachment) then it gives me this (3rd attachment). Thank you for your quick response to my first comment btw!

    You didn't install the right stuff.

    Ask yourself why you need to compile it yourself. You likely don't, and can just use whatever the latest release is.

    Share this comment


    Link to comment
    Share on other sites

    okay, thanks. i was just following this site's guide which led me to believe that i had to do all this compiling. if i can just use the latest release i'm all for that. i'm going to have enough issues trying to figure out the homebrew/CFW thing. i'm used to using powersaves, so only one program and an adapter to plug the game into my computer >.<'

    Share this comment


    Link to comment
    Share on other sites

    Hi there,

    I finally got it all working and opened up PKHeX once, and now when I open the application I get the "Starting up PKHeX... ProjectPokemon.org" little screen/picture with the logo and everything except it's translucent and doesn't open, it just closes immediately after. I got it where all builds were successful, etc. no fails or anything and now it won't open! Any ideas? Thanks for the great tutorial regardless I never would've figured any of this out myself

    PKHeX startup.jpg

    Share this comment


    Link to comment
    Share on other sites

    29 minutes ago, marblebird said:

    there is no build option in here 

    You can get the latest development build of PKHeX from the download below, it's always up to date with the latest commits.

     

    Share this comment


    Link to comment
    Share on other sites

    2 hours ago, BlackShark said:

    You can get the latest development build of PKHeX from the download below, it's always up to date with the latest commits.

     

    thx

    Share this comment


    Link to comment
    Share on other sites

    I kept trying but I never managed to compile it. I would be greateful if anyone posts the compiled exe of the lastest version on github.

    Share this comment


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