Commit Graph

3897 Commits

Author SHA1 Message Date
Mia
972f89fa28 Replays: Fix crash in uploading replays with un-rounded ratings
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-11-23 20:06:44 -06:00
HoeenHero
ad3b40f1c9 Specify room identity with info commands to properly fix ignoring spectators/opponent
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-11-06 15:34:27 -05:00
Mia
874aa6f73c Fix link extraction in smogtours art credit field
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
GOD. FUCK. FUCK THIS. WOW. CANNOT BELIEVE IO SUFFERED THROUGH DEBUGGING THIS FOR HOURS _THE FIRST TIME_ AND MANAGED TO FORGET IT EVEN THOUGH THE METHOD I HAD TO FIX IT WITH IS _FOURTEEN LINES ABOVE_. FUCK.
2025-10-28 13:42:30 -05:00
TurboRx
8fb533e4b9
Config: Arrays are not valid for Config.subprocesses (#11532)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-25 23:04:35 -07:00
Alex "Mathy
bc044e3037
IPTools: Fix CIDR ranges at 128.* and up (#11466)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-25 18:26:44 -04:00
Guangcong Luo
0c69a1f7e3 Fix crash on startup with serialized bestof games
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
The parent bestof game doesn't get serialized, but their subgames do,
which crashes PS when they get deserialized. Setting the correct flag
prevents that crash.
2025-10-20 02:29:35 -07:00
Mia
debd7bebc3 Fix crash on startup
Chat being loaded after roomlogs causes a crash in room initialization.
2025-10-19 23:26:20 -05:00
Marty-D
5bef393f6f
Add new avatars
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-19 20:29:24 -04:00
Slayer95
4b8c6a4d6d
Refactor startup (#11346)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
This minimizes side effects of import/require across the codebase,
and lets the caller be responsible of initializing child processeses,
as well as other async logic, such as restoring saved battles.
2025-10-17 19:37:47 -07:00
Aurastic
b7c444cee5
make plza default (#11511) 2025-10-17 13:07:19 -06:00
Lusamine
8a75295b1b
Wi-Fi: Change Z-A GA background for readability (#11512) 2025-10-17 13:07:01 -06:00
Aurastic
558a799c81
Wi-Fi: Add support for PLZA (#11505)
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-10-15 20:35:51 -06:00
Mia
f1adacf0ee Chat: Ensure CommandContext#pmTransform properly handles /raw messages
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-10-12 11:59:48 -05:00
Mia
805b17ba3e Ensure /dt works in PMs 2025-10-12 11:51:12 -05:00
Mia
ef70c3193a Prevent /dt from bypassing ignore spectators 2025-10-11 20:00:33 -05:00
Kris Johnson
68c6f9aa35 Tour Settings: Make autoconfirmed only actually work
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-09-20 18:04:29 -06:00
Alex "Mathy
6bf169523d
Datacenters: Log to upperstaff (#11450)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-09-16 21:32:34 -05:00
Alex "Mathy
ee81fdcca9
IPTools: Fix CIDR implementation (#11448)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-09-15 17:38:55 -05:00
Mia
8af9d9cfab Best-of: Nullify child game parent rooms on expiry rather than destroy 2025-09-15 13:12:44 -05:00
Mia
42294611bb Bo3: Remove parent expiry cap, store roomids instead of direct references
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-09-14 16:10:48 -05:00
Kris Johnson
336f1d58f1 Make SCL rooms super secret
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-09-11 18:00:58 -06:00
ACakeWearingAHat
c3e0bbd61d
Revamp Gen 9 Free-For-All Random Battle (#11406)
* WIP free-for-all revamp

* bonus touches

* Create ffa-sets.json

* Most stuff besides items

* Fix plate distribution logic

* The Palafin thing

* Update teams.ts

* Update index.ts

* Update server/chat-plugins/randombattles/index.ts

Co-authored-by: pyuk-bot <21160928+pyuk-bot@users.noreply.github.com>

---------

Co-authored-by: MacChaeger <21160928+pyuk-bot@users.noreply.github.com>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
2025-08-31 23:58:46 -06:00
Kris Johnson
8797d4628c Remove inactive ladders 2025-08-31 23:57:15 -06:00
Mia
06325a0b57 Room-battle: Fix crash in ladder update
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-17 13:43:37 -05:00
Mia
16765c31f7 Helptickets: Add usercard for reporter 2025-08-17 13:42:19 -05:00
Mia
ffe2f3111b Helptickets: Properly log claim duration for text tickets
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-14 21:51:44 -05:00
Karthik99999
7143879536 Best-of: Check for overall winner after ties
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-13 22:26:26 -04:00
Mia
99c0799376 Teams: Don't crash on close when database not enabled
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-12 11:05:11 -05:00
Karthik99999
f1055d9c1c Spotlights: Fix missing comma in source
I'm bad
2025-08-11 18:48:06 -04:00
Karthik99999
2ceb8375b6 Spotlights: Remove image dimensions from source 2025-08-11 18:42:34 -04:00
Mia
fdffa2abdd Rooms: Prevent expiry of Bo3 parent rooms
Apparently some games last long enough that the parent rooms will expire due to the 15 minute limitation, terminating the child games as well. So we're just going to prevent those from expiring while child games exist. If they're truly inactive, they'll get hit once the child games expire.
2025-08-11 16:57:07 -05:00
Mia
d1efa30cf4 Fix TeamValidatorAsync global
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-11 15:31:42 -05:00
Lucas
7e6cea3605
Mafia: Add Search Capability (#10682)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-10 13:52:03 -04:00
Waleed Hassan
ea3a0579bc
PW replay should persist through roomid changes (#11342) 2025-08-07 16:51:04 -07:00
Lucas
ccd9b5cae7
Update ChatBats winrates tracking (#11338)
* Update ChatBats winrates tracking

Set ChatBats to have no minimum ELO to start tracking winrates

* Update winrates.tsx

* Update winrates.tsx
2025-08-07 16:13:29 -06:00
Slayer95
018ea4abef
Support running PS in a single process again (#11331)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-07 00:29:18 -07:00
Waleed Hassan
f891287bac
/savereplay: Stop re-generating passwords (#11328)
The same password is now used across all `/savereplay`s in a battle so
replay links now don't get broken just because someone saved the replay
after you.
2025-08-06 20:19:08 -07:00
Emikatana
21495a92f1
Add new Pet Mods Leader's Choice (ChatBats) and Remove Previous Leader's Choice (#11309)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
* adding ChatBats

* ChatBats abilities

* adding Format data for ChatBats

* items for ChatBats

* moves for ChatBats

* chatBats pokedex

* chatbats learnsets

* Delete data/mods/ccapm2024 directory

* ChatBats random sets

* ChatBats teams.ts

* snow -> snowscape

* fix

* updating PRNG code

* fixing outdated prng code

* fixing more outdated PRNG code

* fixing more outdated code

* (hopefully) fixing error messages

* level fixes

* fixing errors for real

* fix??

* fuck this im manually doing. forme change

* fix

* im an idiot

* fix ???

* fixing setAbility not properly overriding cantsuppress abilities

* fixing Koraidon not having proper max HP

* oop i bad

* still dumb somehow

* fix????

* fixing duplicate message

* nvm

* fixing message errors

* wording change

* updating link

* wording update part 2

* removing testing hardcodes

* +Magneton

* +magneton

* +Magneton

* +Magnet Bomb changes

* +Magneton

* +Magneton

* animation test

* adding test hardcodes

* fixing magneton getting weird sets

* fixing Order Up breaking when used by Mew + Magnet Bomb fix

* more tests

* fixing Biogenesis to properly apply mew's base types

* fixing Mew again

* fixing Biogenesis for real

* removing test hardcodes

* removing debug message I accidentally left in

* enforcing Salamence to test BSC

* im badly

* Testing done, reverting changes

* adding description for Magnet Bomb

* Add Chatbats to rwr tracking

* Fix linting issues

* fixing lint issues

* fixing lint issues

* fixing lint issues

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* suggested change from review

Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>

* fixing mistake

* making Thunder Kick a seperate move

* adding Zarel's suggestion

Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>

* fixing lint issues

* fixing lint issues

* fixing lint issues

* now??

* i hate this

* why does it care about how many indentations are in front of comments

* add hail mary (Delibird ability)

* add delibir

* Add Delibird

* add Delibird

* add Delibird

* Add Delibird

* ok so I'm an idiot

* Update config/formats.ts

* Apply suggestions from code review

* fixing a problem

* fix

* fixing errors

* fix

* fix

* fixing most of the errors

* fix

* apparently this file is not needed?

* fixing thunderkick not working

* fixing all the errors

* fixes

* fixing errors

* fix

* fixing lint issues

* fixing

* updating teambuilder

* ok

* final fixes

* ok ok ok

* fuck this stupid bss factory shit

* i hate

* ughhh

* plsss

* deleting all the BSS factory code as it's not needed and keeps throwing errors

* finishing

* Cleaning up teams.ts

* oop

* fixing

* fixes

* fix lint

* adding Data Preview to ChatBats

* Update teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update config/formats.ts

* Update data/random-battles/chatbats/teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update data/random-battles/chatbats/teams.ts

* Update config/formats.ts

* Update config/formats.ts

* Apply suggestions from code review

* Apply suggestions from code review

* oops

* Update moves.ts

* Apply suggestions from code review

---------

Co-authored-by: Lucas <33839844+Lucas-Meijer@users.noreply.github.com>
Co-authored-by: ORH <emi@ORHs-MacBook-Air.local>
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
Co-authored-by: Guangcong Luo <guangcongluo@gmail.com>
2025-08-06 01:05:03 -06:00
Kris Johnson
2f03ce912d /dt: Move crit rate next to weight 2025-08-05 23:55:04 -06:00
JCLH-ETS
2586a8f39b
/dt: Show crit rates for Pokemon in Gen 1 (#11336)
* Changed /dt1 command to show gen 1 Pokemon crit rates

* Fixed code style to be lint-approved

---------

Co-authored-by: Jean-Christophe <legerhe@gmail.com>
2025-08-05 23:51:24 -06:00
Mia
4a8341586a Database: Fix PG syntax error in update, remove unnecessary set method
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-05 16:38:28 -05:00
Mia
d32ad3dc98 Teams: Insert dates properly after migration
Numbers don't get validated right ffor dates, here. Only ISO strings and __maybe__ date objects? Definitely ISO strings, though
2025-08-04 22:03:29 -05:00
Mia
70f9725113 Seasons: Remove logging for failed ladder requests 2025-08-04 22:00:29 -05:00
Mia
18cdce9803 Fix merge errors 2025-08-04 21:55:33 -05:00
Guangcong Luo
31a4289cc6
Refactor Teams plugin to use lib/database (#11109)
* Refactor Teams.save

Fixes a bug where passwords were changed every time a team was updated.

* Refactor Teams to use lib/database

* Add unit tests

(This found a bug which has also been fixed)

* Test more things

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2025-08-04 21:51:42 -05:00
dot-Comfey
15c2716034
Update help ticket page for lost password (#11275)
* Update help ticket page for lost password

* Update server/chat-plugins/helptickets.ts

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>

---------

Co-authored-by: Mia <49593536+mia-pi-git@users.noreply.github.com>
2025-08-04 21:49:09 -05:00
Mia
7b8acfeadb Add server version to /version
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run
2025-08-04 15:55:28 -05:00
Mia
3b5e0b558b Ladder tracker: Allow viewing leaderboard without broadcasting 2025-08-04 15:02:03 -05:00
Mia
d51d959669 Ladder tours: Stop logging failed requests 2025-08-04 14:07:41 -05:00
Mia
bd0d0ebedb Teams: Trim arguments on save
Some checks failed
Node.js CI / build (18.x) (push) Has been cancelled
2025-08-02 00:36:26 -05:00