Code Monkey home page Code Monkey logo

pkhex-plugins's Introduction

About

This project uses PKHeX.Core and PKHeX's IPlugin interface to add enhancements to the PKHeX program, namely Automated Modifications to simplify creation of legal Pokémon. This Fork is owned by @santacrab2 The original project is owned by @architdate (Discord: thecommondude#8240) and @kwsch (Discord: Kurt#6024).

Building

This project requires an IDE that supports compiling .NET based code, such as Visual Studio 2022, and the .NET 8.0 SDK.

Regular Builds
Regular builds will usually succeed unless there are changes that are incompatible with the NuGet PKHeX.Core package dependency specified in the .csproj files of the projects. If building fails, use the bleeding edge method instead.

  • Clone the PKHeX-Plugins repository using: $ git clone https://github.com/architdate/PKHeX-Plugins.git.
  • Right-click on the solution and click Rebuild All.
  • These DLLs should be placed into a plugins directory where the PKHeX executable is.
    • The compiled DLL AutoModPlugins.dll for AutoLegality will be in the AutoLegalityMod\bin\Release\net7.0-windows directory.

Bleeding Edge Builds
Use this build method only if the regular builds fail. The Azure Pipelines CI will always use the bleeding edge build method. More details regarding this can be seen in the azure-pipelines.yml file.

  • Clone the PKHeX repository using: $ git clone https://github.com/kwsch/PKHeX.git.
  • Clone the PKHeX-Plugins repository using: $ git clone https://github.com/architdate/PKHeX-Plugins.git.
  • Open the PKHeX solution, change your environment to Release, right-click on the PKHeX.Core project, and click Rebuild to build the project.
  • Open the PKHeX-Plugins solution and right-click to Restore NuGet Packages.
  • Next, replace the most recent NuGet packages with the newly-built PKHeX.Core.dll files.
    • Copy the PKHeX.Core.dll file located in PKHeX.Core\bin\Release\net7.0 to the following folder with the most recent date:
      • C:\Users\%USERNAME%\.nuget\packages\pkhex.core\YY.MM.DD\lib\net7.0
  • Right click the PKHeX-Plugins solution and Rebuild All. This should build the mod with the latest PKHeX.Core version so that it can be used with the latest commit of PKHeX.
  • The compiled DLLs will be in the same location as with the regular builds.

Usage

To use the plugins:

  • Create a folder named plugins in the same directory as PKHeX.exe.
  • Put the compiled plugins from this project in the plugins folder. If you downloaded the plugins from online, you will need to unblock them.
  • Start PKHeX.exe.
  • The plugins should be available for use in Tools > Auto Legality Mod drop-down menu.

Support Server

Please refer to the Wiki first for usage information and help first, as most queries are answered there. If you have looked and need additional help, you can join the dedicated Discord server for this mod!


Website with Links to downloads for this and other projects by Santacrab The Sea Tavern's website

Contributing

To contribute to the repository, you can submit a pull request to the repository. Try to follow a format similar to the current codebase. All contributions are greatly appreciated! If you would like to discuss possible contributions without using GitHub, please contact us on the support server above.

Please ensure you run the unit tests prior to submitting a pull request to the repository.

Credits

Original Repository Owners

Credit must be given where due... This project would not be as amazing without the help of the following people who have helped me since the original Auto-Legality-Mod.

  • @kwsch for providing the IPlugin interface in PKHeX, which allows loading of this project's Plugin DLL files. Also for the support provided in the support server.
  • @berichan for adding USB-Botbase support to LiveHeX.
  • @soopercool101 for many improvements to Smogon StrategyDex imports and various other fixes.
  • @Lusamine for all the help with stress testing the code with wacky sets!
  • @ReignOfComputer for the sets found in RoCs-PC which are used for unit testing.
  • TORNADO for help with test cases.
  • @Rino6357 and @crzyc for initial help with the Wiki.
  • @hp3721 for help with adding localization based on PKHeX's implementation.
  • @Bappsack for his help on Discord in voice chats!
  • @chenzw95 for help with integration.
  • @BernardoGiordano for many ideas on improving speed.
  • @olliz0r for developing and maintaining sys-botbase as well which is necessary for LiveHeX to work.
  • @SteveCookTU and @olliz0r for LedyLib from which a lot of the NTR processing code is liberally referenced.
  • @fishguy6564 for creating USB-Botbase (by extending sys-botbase).
  • FlatIcon for their icons. Author credits (Those Icons, Pixel perfect).
  • Project Pokémon for their Mystery Gift Event Gallery.
  • And all the countless users who have helped improve this project with ideas and suggestions!

pkhex-plugins's People

Contributors

abyzab avatar architdate avatar arleypadua avatar bappsack avatar bdawg1989 avatar berichan avatar bert-w avatar ca1e avatar devyukine avatar djpanda065 avatar easyworld avatar foohyfooh avatar griffing1 avatar hp3721 avatar jisagi avatar koi-3088 avatar kwsch avatar legofigure11 avatar lusamine avatar manu098vm avatar me2suzuran avatar pifopi avatar pplloufh avatar reignofcomputer avatar santacrab2 avatar soopercool101 avatar sora10pls avatar thesuperiorsid avatar xiaolong11123 avatar xxphoenix1996xx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pkhex-plugins's Issues

Legendary issues

Why do non ScaVi legendaries usually not generate a correct met location with auto legality?

Error with visual studio when I rebuild the project

I have many problems when I rebuild the plugins project

I did the Bleeding Edge Builds method to update pkhex and ALM (your branch), I put the pkhexcore.dll into the pkhexcore's nuget folder but when I rebuild I have the errors (image), before I never had a problem when I rebuild but now I have these problems

image

Living dex generation priority

Describe the bug
I'm not sure if this is actually a bug or not, but does prioritize game version affect living dex generation? I'm setting it to US for example and my game is UM, Lugia is always generated from the Space Wilds Encounter but Ho-Oh always ends up being an event. Native only set to true or false has no affect

To Reproduce
Steps to reproduce the behavior:
Set prioritize gameversion to true
Set to US
Generate living dex in UM
Ho-Oh is always an event

Expected behavior
Am hoping to get the US/UM encounter for each, is there another feature or setting I can toggle?

Fusion forms

i've noticed that when a "living dex" is generated with all forms, it lack every fusion form (calyrex with glastrier etc , necrozma etc) is it possible to implement all fusions forms while generating living dex?

Repo Rebuild

Im unsure if this is something to even report but wanted to know if it means anything. i have copied the repo and then done a rebuild on the release. its builds fine but i get this message in visual studio wanted to pcik your brains if possible please.
image

possible to legalize the missing HOME tracker?

Describe the bug
After I updated both Pkhex and this plugin.
any Pokemon that you generated from encounter database or anywhere.
used to be "legal" in older version of pkhex.
will have warning for missing home tracker. this is normal.
it is not a bug in pkhex.

but I wonder if it is possible to legalize this problem of missing home tracker?

as I was playing around, I put in random tracker number and it became legal! but
I will NOT be expecting that Pokemon to be able to transfer to HOME at all!!!!!
I think HOME trackers are server-side and they will verify.

To Reproduce
load up your save from scarlet or violet.
check the Pokemon and some of them would have warning about missing tracker.
Or use the encounter database and search for one of Pokemon like Keldo or any Pokemon that is not from Scarlet or Violet.

Expected behavior
It will show that it is illegal and warn you that it wont be able to be transferred to HOME.
I know this is normal and it should happen if it do not have HOME tracker.

Screenshots

Additional context

Santa's Notes on things to be fixed

  • pk3 tests are causing the entire program to freeze inconsistently, sometimes a set freezes things, sometimes it doesnt.....sigh....
  • a bunch of sets are passing 50% of the time...this also makes no sense to me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.