Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teambuilder/Battle/Sprite support for mods #1697

Closed
wants to merge 73 commits into from
Closed

Teambuilder/Battle/Sprite support for mods #1697

wants to merge 73 commits into from

Conversation

scoopapa
Copy link

@scoopapa scoopapa commented Dec 20, 2020

EDIT: This is now mostly ready to go. I'm still willing to refactor anything that needs it. There is one issue that I wanted to ask a dev about: where should custom sprites go? Right now it looks for sprites on the server at data/mods/[modName]/sprites but I want to double check before I finalize that aspect.

Took the "Batteries not included" version of pokemon-showdown-client from the main repo and copied in the changed files from my custom client for Dragon Heaven (Smogon Pet Mods basically)
Missing Space edition
forgot to save the file edition
Not sure about this one, it seems to be asking for semicolons in nonsensical places and finding trailing spaces where there are none. Am I in the wrong file?
Copy link
Collaborator

@AnnikaCodes AnnikaCodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend that you read over the contributing and style guide.

build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
build-tools/build-indexes Outdated Show resolved Hide resolved
scoopapa and others added 9 commits December 20, 2020 14:08
Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Annika <annika0uwu@gmail.com>
Co-authored-by: Annika <annika0uwu@gmail.com>
@scoopapa
Copy link
Author

scoopapa commented Jan 23, 2021

This (or a version very similar to it) has been used and tested for many weeks here: https://dragonheaven.herokuapp.com/
Some people have come from the main server to use its support for Megas For All, the current PMOTS. It supports 20+ mods so far.

This now has:

  • Teambuilder support for changed and custom Items / Abilities / Moves / Pokemon / Learnsets / Tiers
  • Search support, with custom features only showing up in their respective mods
  • Battle UI and tooltip support to display everything properly for the mod during battle
  • Sprite support for Pokemon, Pokemon Icons, Type Icons, and Item Icons

Please let me know if you need me to refactor anything. I have generally minimized the size of teambuilder-tables (it's about twice as big with 20 mods as it is with 0), as mentioned before, and moved some data into other build tables with more appropriate names. I'm willing to do a lot if you'll point me in the right direction, but I also understand if this is too much to change with Zarel's current overhaul of the client.

@scoopapa scoopapa marked this pull request as ready for review January 23, 2021 08:43
testing after I made changes for typescript errors showed a new issue, so i fixed that
mods now load directly from the mod folder
the occasional optional config data is now specified in scripts.ts in the mod folder rather than in a statement at the top of build-indexes
but I'm not sure if that's where they should be stored
loading past gens as mods changes the tiersets of some of the past gen formats and is totally unneccessary, so I think it's best to just exclude them
@scoopapa scoopapa changed the title Teambuilder support for mods Teambuilder/Battle/Sprite support for mods Jan 24, 2021
Shortens and simplifies the code in multiple places, and makes it easier to add/retrieve new types of data from the build tables. Also made a change that marginally decreased the size of teambuilder-tables
@Zarel Zarel force-pushed the master branch 2 times, most recently from f5d3242 to c24cbd6 Compare April 13, 2021 21:06
@scoopapa scoopapa closed this May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants