215 Commits

Author SHA1 Message Date
Kurt
6e6ced878c Update to .NET 10
Revise GameUtil to check all game branches
Closes #408
2026-01-02 10:45:29 -06:00
Kurt
5bd7003a60 Add changes for ZA DLC (Mega Dimension) (#407) 2025-12-19 15:13:38 -06:00
Kurt
0936c08eb1 LZA 1.0.2
Cumulative changes from the team.

Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
2025-11-16 15:56:12 -06:00
Kurt
31b45ee883 Minor clean
Remove unused namespace usings
2025-06-23 00:25:11 -05:00
sora10pls
59351b2422 Fix SWSH field/hidden item randomization
Item hash table contains stubbed items with an associated item ID of 0, and two entries for Reins of Unity (1607). Prevent duplicate keys/hashes in the dictionary, as well as any stubbed items
2025-04-29 12:01:26 -04:00
Kurt
ddffb91cf5 Enhance FlatSharp generated code with Attributes, TypeConverter (#391)
Fixes #390
Fixes #382
Fixes #381
Fixes #370
Fixes #355
2025-02-07 09:51:37 -06:00
Kurt
38a9c45fef Fix labeling of placement flag/work conditionals 2025-01-29 01:09:48 -06:00
nvbeusekom
cead368c50 SWSH Randomization functionality (#384)
* Fix count for SwSh 1.3.2. + DLC

* Update trading dialogue

* Add Placement (overworld item) randomization
2024-11-04 15:54:16 -06:00
abcboy101
ef0759ab05 Preserve TextFile flags (#380) 2024-08-23 18:32:28 -05:00
Dr. Victor Vasconcelos
dcc373dc34 Add value options for multiple Move variables (#352)
* Create MoveInflict.cs

* Create MoveStat.cs

* Rename pkNX.Structures/MoveStat.cs to pkNX.Structures/Move/MoveStat.cs

* Create MoveCritStage

* Rename MoveCritStage to MoveCritStage.cs

* Update MoveStat.cs

* Update MoveInflict.cs

* Update MoveStat.cs

* Update MoveInflict.cs

* Update MoveInflict.cs to include Tri Attack
2024-08-23 17:35:28 -05:00
Kurt
dcf6b0043b Fix EV yield bit ordering
oopsies

https://github.com/kwsch/PKHeX/issues/4252

also includes a minor clean for TextVariableCode
2024-04-22 13:19:03 -05:00
Kurt
4756bc1774 Update TextFile.cs
Closes #364; delete any corrupted text files as the previous save method would jumble the args and variable
2024-03-07 12:59:10 -06:00
Kurt
4c16905249 Use c#11 features 2024-03-04 20:19:09 -06:00
Kurt
4ecb98d9d1 Reduce allocations in text string read/write
Lots of work still needed to make it more elegant.
2024-03-04 09:32:42 -06:00
Kurt
7e6b3c9b27 Revise TextFile variable parse length checks 2024-03-04 00:04:11 -06:00
Kurt
c181db68ff Minor clean
Handle some nullable warnings, style c#12
2023-12-21 12:31:00 -08:00
Kurt
9d5aa0aa06 Update for SV 3.0.0 2023-12-17 17:57:24 -08:00
Kurt
bbab4ceb1c Bump to .NET 8.0 2023-11-15 21:03:53 -08:00
Kurt
8266fb72ec Minor tweaks 2023-10-05 23:33:55 -07:00
Kurt
ec9c6d88a8 SV Teal Mask Support (#348)
Closes #347 
Closes #341 

Co-authored-by: Michael Scire <SciresM@gmail.com>
Co-authored-by: sora10pls <17801814+sora10pls@users.noreply.github.com>
Co-authored-by: Lusamine <30205550+Lusamine@users.noreply.github.com>
2023-10-05 18:57:41 -07:00
duckdoom4
afec3c3a84 Remove the (unused) extra array wrapper from SpecialTutors
Also don't transfer from older generations, these are not the same anyway
2023-09-10 16:57:22 +02:00
duckdoom4
1e7cb1d6b1 Upgrade text editor 2023-09-10 13:06:18 +02:00
duckdoom4
ddc35df319 Upgrade visuals 2023-09-03 20:39:59 +02:00
duckdoom4
56cb75340a Minor refactor
Rename all the interfaces to give them a more sensible name
Rename the Set<InterfaceName> extension methods to Import<InterfaceName>, since evenI got confused about it's purpose for a while. It's supposed to be used by the data importer to fill in missing properties from older generation data. This means it should actually not set every property that is part of the interface and 'set' is therefor a confusing name.
Update PokeDataUI to fix layout of new property names
2023-07-05 19:35:57 +02:00
Lusamine
b22ad1977d Label fields 45, 46, 47 in LA fbs
RegionalForm may not be correct since it includes Eevee lines, for example, but all of these fields are nestled within the breeding data and with breeding not being in game, they have no effect in-game.
2023-05-04 12:52:37 -05:00
TalonSabre
7a762da8fd Fixed compatible TRs reading incorrectly. (#328)
* Fixed SWSH not gathering TR learnsets correctly

TR compatibility for each pokemon had been saving to the same list as TM compatibility, and for some reason it was not working as intended.
After finishing, and seeing that it built and ran, I tested the impacted features, and confirmed it is working.

* Remove Commented/Unused Section

PersonalDumperSWSH was previously commented, and is now entirely removed from PersonalDumper.cs

* Add case for TRs to SetIMovesInfo function

Changed IMovesInfo.cs
Added extra if for SWSH to account for TRs.

* Add case for SWSH to SetPersonalInfo function

new if statement in SetPersonalInfo from IPersonalInfo.cs that allows setting TRs.
2023-04-21 22:21:58 +02:00
abcboy101
d0a964ed22 Add ruby text support (#327) 2023-04-16 12:35:06 -07:00
Kurt
8e83b63d95 Flatsharp codegen (#326)
* Manually translated/attributed fbs files.

* Include fields in obj-as-table dump

* Emit fields for json too. FlatSharp generates structs with fields rather than properties at fixed offsets (maybe I'm missing a setting)

* Update .editorconfig to ignore generated code files (unsure if this actually works).
2023-04-06 18:00:19 -07:00
Kurt
441d6f027f Update to net7, c#11
Replace LZ4 dependency --
lz4net is deprecated, replaced with K4os' implementation. Use the Span api signatures.
2023-01-14 15:34:27 -08:00
Kurt
696eea1a1b Emit SV dumps with DevId->National dex
Refer to associated PKHeX commit.
f4e255067c
2023-01-14 01:17:02 -08:00
Kurt
ff271ca171 Add wander tolerance to encounter slot pkl creation (#301)
* Rough draft: 50f

* Don't skip spawn-less locations, cross pollinate

* Dump points and biomes

* Lower wander tolerance to 30f, reorder time flags

* Reorder crabrawler evo order
2022-12-10 19:25:19 -08:00
Kurt
38b784e19b Add handling for S/V load and data ripping
Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
Co-Authored-By: Lusamine <30205550+Lusamine@users.noreply.github.com>
2022-11-24 15:30:03 -08:00
Jelle
016fbeb295 More informative error messages
Added messages for issues that can occur while loading the game folder.
Got a bit sick of needing to answer the same question every time
2022-11-02 17:29:32 +01:00
Kurt
f591257e7a Minor tweaks
Cleaning things up before things go dark?
2022-10-27 11:59:42 -07:00
Kurt
930b35d52d Update dependencies, nullable all csproj
Remove amx logic (unused for too long)
2022-10-25 17:05:12 -07:00
Kurt
4634ee56bc Don't expose Span with get property
Closes #282
2022-10-22 01:04:27 -07:00
Jelle
9567667ec7 Feature update
Add a whole bunch of extra editors
Set some default parameters
Add some drop downs
Add a whole bunch of hashes (Thanks to @mvit)
2022-10-18 21:22:38 +02:00
JelleInfinity
6498f3c8eb [SWSH] Remove dynamax crystals from legal random list (#280) 2022-10-12 08:39:31 +01:00
JelleInfinity
cbb75148a1 [SWSH] Remove items with ID 1279 from legal list (#279)
1279 seems to be an ID solely used for dummy items
2022-10-12 08:04:24 +01:00
Kurt
fa4de667b0 Update PersonalInfo8SWSH.cs 2022-10-07 10:08:31 -07:00
Kurt
8d7d698d1f Fix TypeTutor write
Was missing (i >> 3); error caused it to write last 8 bits at offset 0, overwriting any previous bit flags.

Extract out a method to do all the work for us.
2022-10-07 10:07:42 -07:00
JelleInfinity
4167762c44 Some bug fixes (#276)
* Replace all uses of ModelID

* Prep work to add PokeMisc data
2022-10-05 17:01:34 +01:00
Kurt
efb34f556b Minor tweaks
Reduce allocation of button string fetch (for fun!)
Type return covariance for Editors (no longer limited by netframework!)
2022-10-02 10:24:44 -07:00
Kurt
33a2ab24f1 Minor clean 2022-10-01 17:46:11 -07:00
Kurt
2578ba073c Refactoring
File scoped namespaces for all lib projects
netstandard2.0 => net6; now uniform. bye netframework!
2022-10-01 17:08:17 -07:00
Jelle
49e5feaf4d Research task edit buttons
* Add 'Add' 'Clone' and 'Remove' research task buttons
* Add Append/Remove array extensions
* Update to DexIndexNational instead of ModelID
* Make all functions private

Fix
2022-10-01 12:11:54 +02:00
JelleInfinity
97e5999372 Fix merge error (#263) 2022-09-30 13:46:17 -07:00
JelleInfinity
3c71e74b93 SWSH personal info refactor (#256)
* Add missing properties

* Refactor swsh personal info
2022-09-29 23:04:34 -07:00
JelleInfinity
8593fdc496 Fix arg type (#255)
I read that these can't have arguments
2022-09-29 16:18:19 -07:00
JelleInfinity
c3470997d2 Updated pokemon editor (#257)
* Add PokeMisc, items drops and research task files

* Update PokeMisc/DexResearch field names

Add type converters for known properties
No throw GetEntry
GetEntries for research tasks

* Update Poke editor

* Redesign UI
* Added PokeMisc to personal section (As property grid for now)
* Added Pokedex tab for research tasks (As property grid for now)
* Allow entries up to 9999

Still a WIP
2022-09-29 16:17:48 -07:00