Commit Graph

205 Commits

Author SHA1 Message Date
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
JelleInfinity
9346f482da
Improved auto fill (#254)
* Rename fields

Rename to `HatchedSpecies`
`Species` here is actually `ModelID`. To get Species `DexIndexNational` should be used

* Update interfaces

Use DexIndexRegional
Replace `RegionalFormIndex` with `Form`

Add national dex index

* Add debug assert

* Add set functions for easy assignment of personal info

* Update auto-fill

* All missing SWSH data is now filled based on USUM data
* Accounts for form data
* Ignores all forms that are not carried over to next gen
* Adds form number and national dex number

* Update PLA filler to account for forms and other missing entries
2022-09-29 16:14:44 -07:00
JelleInfinity
7f051d06ed
Move IMovesInfo to own file (#252) 2022-09-27 11:17:20 -07:00
Lusamine
53d3e456d3 Fill in remaining NHO information 2022-09-27 03:35:42 -05:00
JelleInfinity
8ac8ae78ac
Refactor evolution code from PKHeX source (#251)
* Add evo table resources and re-arrange files

* Add array from byte span utility function

* Update evolution related code from pkHex
2022-09-24 17:39:41 -07:00
JelleInfinity
ea9ce5dec6
Add auto-fill from old databases (#246)
This adds the option to fill in the missing info using swsh and usum databases
2022-09-21 16:05:30 -07:00
JelleInfinity
e1d7cc790a
PersonalInfo interface fixes (#243)
Improved the inheritance graph and renamed some variables to merge some into an interface
2022-09-21 15:55:54 -07:00
JelleInfinity
dff97a4105
Feat/pokemon editor (#242)
* Make PersonalTable saveable

* Add poke editor
2022-09-20 16:46:04 -07:00
JelleInfinity
21a87b454d
Update legality from PKHeX (#237)
* Update legality from PKHeX

* Move to folder

* Remove namespace wrapping

Co-authored-by: Kurt <kwsch@users.noreply.github.com>
2022-09-18 12:48:03 -07:00
JelleInfinity
3a8328c0cd
Use interfaces for personal info to make updating the data easier (#234)
* Use GameVersion instead

* Fix formatting

* Update Personal info code

* Use interface versions in code

* Remove unnecessary param

* Remove TableLength

* Fix integration

Rename Forme to Form
Typed numbers
2022-09-18 12:44:51 -07:00
JelleInfinity
86cf8027ca
Add SWSH/PLA to GameUtil (#232)
* Add SWSH/PLA to GameUtil

* Set to PLA instead
2022-09-13 20:13:27 -07:00