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
Conversation
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?
Co-authored-by: Annika <annika0uwu@gmail.com>
There was a problem hiding this 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.
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>
…showdown-client" This reverts commit dfaa02b, reversing changes made to aec5deb.
This (or a version very similar to it) has been used and tested for many weeks here: https://dragonheaven.herokuapp.com/ This now has:
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. |
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
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
f5d3242
to
c24cbd6
Compare
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.