Commit Graph

10771 Commits

Author SHA1 Message Date
Kurt
fd3af56ec4 Legality: add date sanity check, shinyleaf/mood
date: If location specified, ensure valid date; if no location, ensure zeroed.
shinyleaf: check bad bits, check crown has all leafs.
mood: rename from pokeathlon, now sbyte. All values possible, only flag outside of party in HG/SS.

Revise HGSS slot setter to wipe mood to match game behavior (and thus not retain mood to be flagged by the legality check).
There's currently no editor for it, but maybe I can add it in a future commit.
2025-08-08 00:19:33 -05:00
Kurt
101aa17a8d Update translations for dex revisions
see previous commits
2025-08-08 00:08:57 -05:00
Kurt
b291378e78 Localizations: better thread safety init
No need for a dictionary, just allocate an array and index in via one of the supported languages.

Updates GameInfo to use the abstraction to prevent some duplicate work on a very-hot startup. Threads repeating the same work vs Thread n++ simply waiting for previous thread to finish init is the ~same amount of time, with less overall CPU usage (so this is a positive improvement).

EnterScope is "safer" than explicit `lock (x)` due to the using syntax releasing the lock even on exception (not expected, but might alleviate issues on developer-initiated feature upgrades).

Co-Authored-By: HexByt3 <80122551+hexbyt3@users.noreply.github.com>
2025-08-07 21:15:32 -05:00
Kurt
4ed1d12859 Widen batch editor GUI
Fiddled with the spacing to be more 4px spaced rather than inconsistent.
Dropdown for property select is now wider, and doesn't cut off long names like OT memory feeling.
2025-08-07 21:15:32 -05:00
Kurt
28e20c4ea3 Enhance gen6 dex interactions
Uses the rewritten Gen5 object as the base rather than the old zukan abstraction
Adds National Dex unlocked flag for editing

probably best to extract an interface as there's no need to have a shared abstract Zukan class across generations.
2025-08-05 09:55:58 -05:00
Kurt
ceff28210a Fix PBR init
Closes #4534
2025-08-05 09:52:03 -05:00
Kurt
031f7f4e6c Update Zukan5.cs 2025-08-04 02:56:57 -05:00
sora10pls
d78aff9e03 Add latest distribution outbreak data ❄️ 2025-08-03 20:15:14 -04:00
Kurt
112086d85b Update SAV_Pokedex5.cs
am i gen 4 or gen 5? why not gen4.5?
2025-08-03 14:34:34 -05:00
Kurt
d732520762 Rewrite Gen5 dex editor & backend
Closes #4533
2025-08-03 14:24:22 -05:00
Kurt
1d57facd22 Minor tweaks
extract max/min level to const
fix max species ID in filtered sources
2025-08-02 21:02:11 -05:00
Kurt
720ac7ead7 Misc tweaks
add localization for ` @ lv{0}` for verbose report
2025-08-02 01:40:18 -05:00
Kurt
0f106c9c82 oops
not actually exclusive
for eggs, assume that ability inheritance flips the bit
2025-07-31 23:12:17 -05:00
Kurt
8d99a7a56d Misc gen5 PID random number updates
Use 64bit RNG for PID creation, mimic how the game generates PIDs with the impossible value quirks
shiny lock the HA eevee in castelia
remove duplicate encounters (no longer needed due to form mutation API being mature)

ty @Lusamine for obtaining some samples and testing the PID generating algo
2025-07-31 22:40:56 -05:00
HexByt3
b1464a0941 Update StartupArguments.cs (#4532)
BallDataSource => VersionDataSource
2025-07-30 15:19:38 -05:00
Kurt
4c0ad92edb Allow bulkanalysis w/o save file
secret constructor that was for tpci, now available for all /s
2025-07-30 01:25:20 -05:00
Kurt
11f33985c4 Move files, xmldoc, simplify
External check can call AddLine. The intent is to not allow it to remove previous parse results.
2025-07-30 01:24:02 -05:00
Kurt
90cfa59102 Misc tweaks
Pass Analysis to external localizer
Cache index for bulk analysis flagged slots
2025-07-29 20:12:41 -05:00
Kurt
223840f943 Revert "Convert sln to slnx"
This reverts commit 5d2ebf4d0a.
2025-07-28 21:51:16 -05:00
Kurt
efefd78caa Update dependencies
pipeline will stay broken until nuget 6.15 releases (it's been 2 month
2025-07-28 21:51:10 -05:00
Kurt
5d2ebf4d0a Convert sln to slnx 2025-07-28 19:07:25 -05:00
Kurt
47092a2df0 Misc tweaks 2025-07-28 18:45:30 -05:00
Kurt
13154d70f8 Split missing/invalid ribbon results
Generating the message is repeat work, but the deferred message is still better in the long run.
1x -> 3x, but that's worst case.
2025-07-28 18:12:14 -05:00
Kurt
c331d97e89 Fix 2 localization mis-mapped
tested 100k, no more thrown Exception's
2025-07-28 02:11:26 -05:00
Kurt
fb814ac878 Add xmldoc 2025-07-28 00:14:33 -05:00
Kurt
904fd2020c Add external legality check functionality 2025-07-27 23:47:45 -05:00
Kurt
b3d3c9e562 Minor fixup on localization resources 2025-07-27 21:49:22 -05:00
Kurt
65420b0878 Actually test the bulk check result formatting 2025-07-27 21:20:34 -05:00
Kurt
d99ec943fe Fix stragglers from dual PR merge 2025-07-27 21:03:19 -05:00
Kurt
44486fdf85 Merge branch 'master' of https://github.com/kwsch/PKHeX 2025-07-27 21:00:38 -05:00
Kurt
f370c0cc39 Memory<byte> Refactoring (#4527)
`SaveFile` and `PKM` classes now use `Memory<byte>` instead of `byte[]` to store their primary backing array data.
2025-07-27 20:57:10 -05:00
Kurt
13a4d472bc Deferred Humanization of LegalityAnalysis (#4531) 2025-07-27 20:54:58 -05:00
Easy World
a5cdb0e27c Update Simplified Chinese translations (#4529)
* Update translation

* Update Simplified Chinese translations

Improves and corrects Simplified Chinese translations in legality check strings, program messages, and WinForms UI. Updates terminology for better localization accuracy and user clarity.

* revert legality check strings

Will be manually updated in future commit by kwsch -- avoiding merge conflicts for now

---------

Co-authored-by: Kurt <kwsch@users.noreply.github.com>
2025-07-27 16:57:16 -05:00
sora10pls
ba2c397cb9 Add placeholder Shiny Treasures of Ruin date ranges
Wonder Card IDs to be determined, 9996-9999 until released
2025-07-27 15:49:49 -04:00
sora10pls
a49f832f3a Add placeholder Shiny Treasures of Ruin date ranges
Wonder Card IDs to be determined, 9999 until released
2025-07-27 10:06:43 -04:00
abcboy101
fef5ff3edb Translate DataGridViewColumn header text (#4528)
* Localization update

* Translate DataGridViewColumn header text

Temporary label hack in SAV_FolderList is no longer needed

* Localization update
2025-07-26 08:43:23 -05:00
Kurt
6fd644069c GUI: swap gen3 marking visual order
https://projectpokemon.org/home/forums/topic/66916-order-of-cosmetic-markings-in-gen-3/#comment-296256
2025-07-24 14:46:59 -05:00
Kurt
747d083975 Update EncounterEnumerator5.cs 2025-07-23 23:13:53 -05:00
Kurt
a02712e375 Add gen5 spin trade as valid link trade loc
ty Cappy for reporting, and @PP-theSLAYER & @Lusamine for testing.
https://projectpokemon.org/home/forums/topic/57375-pkhex-new-update-legality-errors-contribution-page/page/32/#findComment-296214

gen4 spin trades in pt/hgss do not set the wrong value -- gen5 only bug.
2025-07-23 22:37:39 -05:00
Kurt
9d49458787 add a new 0xFFFFFFFF legality check for gen5 eggs
lol nice gamefreak
2025-07-23 22:37:39 -05:00
Fábio H. Attard
ed9d46cad9 Fix SAV1 fallback detection for Yellow version, when starter is not set yet (#4526) 2025-07-23 01:03:22 -05:00
sora10pls
025a812e2c Add latest distribution outbreak data 🍃 2025-07-22 20:15:54 -04:00
Kurt
a548614646 Safeguard moveset suggestions for Gen2->Gen1 enc
Removes all gen2 moves from a suggestion when requestor is a gen1 format mon (can't have gen2 moves). This is the only case where moves are less available (ignoring HOME's multi-format moving, which cannot transfer moves to less-available contexts anyway).

ty Asia81
https://projectpokemon.org/home/forums/topic/66877-pokemon-red-unknown-suggested-moves-for-poliwhirl/
2025-07-21 17:05:49 -05:00
Xzonn
577278b7b8 Update Chinese translations from official translations (#4525)
* Update Chinese translations from 52Poke Wiki

* Fix memory translations

* Update feelings
2025-07-21 15:30:43 -05:00
Kurt
42835e9aac Misc tweaks
Adds a debug hex file loader from clipboard
sav1 current box if empty -> set if box is desync'd
wb7: add comment note of "real" value
2025-07-16 23:02:57 -05:00
Kurt
0e9a3129b4 Misc stuff
Adds GameSync ID for Gen5
Add GiftRibbons to gen3 mainline saves
Add defined chars from Transporter update 7 (latest)
2025-07-13 01:00:43 -05:00
Kurt
b4edc389bb Rearrange gen3/4 deferral enum
null check necessary for unset deferral needing to ignore max
2025-07-12 01:29:37 -05:00
sora10pls
6a9af0a4a3 Add latest distribution raid data 🤜🤛 2025-07-10 20:05:14 -04:00
Kurt
cdb5770f5f Minor tweaks
Fixes cosmetic issue on gen4 seed example times
no functional change otherwise
2025-07-08 23:00:27 -05:00
Kurt
0b77aa5729 Add swsh string check
Replace debug assert in SWSH encounter finder
Add dir arg for pogo pickle reload for debug builds
re-add latest outbreaks
2025-07-06 18:48:49 -05:00