Commit Graph

70 Commits

Author SHA1 Message Date
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
Kurt
e432370a40 Add Pokémon Legends: Arceus support
.NET5.0 -> .NET6.0

Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2022-02-04 18:43:21 -08:00
Kurt
639f8156ab Handle FlatBuffers in-process with FlatSharp, and add more flatbuffer editors. (#166)
Thanks @sora10pls for double checking some editors, and @Lusamine for some field identification.

Closes #115 -- tested the pokedex after randomization and it no longer crashes when randomizing+saving with the latest code in this pull request.

Adds:
* Shop editor (SWSH + LGPE)
* Move editor
* Item editor
* Symbol (Overworld Pokemon) Behavior editor
* Default Rental team editor
2021-09-02 19:47:41 -07:00
Lusamine
9d37e36ec8 Clean up a little, remove unused HiddenMain3 enum (#165) 2021-09-02 14:53:18 -07:00
Lusamine
485bb775cd Claim reserved byte in SWSH pkl 2021-07-23 06:11:32 -05:00
Lusamine
537f3deed3 Only dump accessible encounter slots and include metadata for SWSH 2021-07-22 22:23:28 -05:00
Kurt
e772a99341 Add index to dumped bcat nests 2021-04-18 12:02:30 -07:00
sora10pls
12975fcd6d Denote if a Raid Boss can be captured
Comments out any such encounters in the PKHeX output. This is a pretty lazy solution for now, but it works.
2021-03-31 22:43:56 -04:00
sora10pls
b7191a6103 Revert implicit casting 2021-03-31 22:42:32 -04:00
Kurt
49efb96db9 Export bridge->stony crossover tree shake slots, don't export empty slots
See PKHeX prior to this commit for rationale

9864f23427

Reduces the amount of work PKHeX does when loading.
2021-03-17 18:10:26 -07:00
Koopa
c28622f9b0 Remove 'é' from enum member name.
This causes a compile error on my machine with "dotnet build".
2021-02-28 01:33:27 -05:00
Kurt
6136ccff78 Minor clean
Replace linq usages with array methods
Handle warnings (yay serialized objects with reflection assignments)
Minor preference (brackets, ternary, locals)
2021-01-14 21:57:11 -08:00
Michael Scire
a1f2ee0eff Add support for dumping static encounter spawners 2021-01-14 18:24:55 -08:00
sora10pls
b6c1910fe3 Update static/gift exports, update encounter scenario enums
One of them is used for several Legendaries + Keldeo, not exclusively the dogs. Also use better names.
2021-01-14 12:27:01 -05:00
sora10pls
e8ddd9be61 Update PKHeX exports
Target typed new for Nests, Dynamax Adventures, and Trades
2021-01-01 13:34:47 -05:00
Kurt
22ef506b4e Update for c#9 syntax sugar 2020-12-27 12:47:46 -08:00
Kurt
fec96c3ef6 Target type'd new for pkhex exports 2020-12-27 11:48:43 -08:00
sora10pls
4a8427a6a3 Rework Darmanitan altform rand
Make it 50/50 between Unovan Standard and Galarian Standard (no Zen Mode)
2020-11-05 11:31:23 -05:00
sora10pls
295e14c433 Misc changes
Update personal length count for FormRandomizer, properly randomize Gift/Trade balls
Show Species enums in Dynamax Adventure editor
2020-10-25 18:41:01 -04:00
Kurt
d407506c30 Mior clean
reduce compiler messages
2020-10-25 13:17:04 -07:00
Kurt
8d7b5cea3c Crown Tundra Update
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
Co-Authored-By: SciresM <8676005+SciresM@users.noreply.github.com>
2020-10-23 18:02:01 -07:00
sora10pls
2c990d2b7d Simplify IV set when randomizing 2020-10-01 13:48:21 -04:00
sora10pls
051a516469 Further improvements to SWSH dumpers
Better IV output (6IV, pure random, 3IV, set)
Gift/Trade ball output (only used for Toxel as of now, futureproof?)
2020-09-28 14:27:20 -04:00
sora10pls
10c3160368 Update dumpers
Futureproof for Crown Tundra, denote Ability 3 as "Ability = 4" for PKHeX dumps
2020-07-12 21:07:48 -04:00
sora10pls
b52cc87c5a Fix Trainer/Item Info dumps
Game Freak left in DLC 2 item data, so we should only iterate on items with names present.
2020-06-21 22:24:59 -04:00
sora10pls
b719ca17ee Document statics Field_10 2020-06-20 15:29:10 -04:00
Michael Scire
e4580ea7e9 Fix nest dumping, improve ahtb dumping 2020-06-18 15:30:07 -07:00
sora10pls
0b38bee882 Merge branch 'master' of https://github.com/kwsch/pkNX 2020-06-18 12:55:25 -04:00
sora10pls
12b5395b14 Add PKHeX format dumping for static/gift 2020-06-18 12:55:09 -04:00
Michael Scire
3e01d17c89 pknx: don't output crown tundra tables to pkhex packs 2020-06-18 02:36:10 -07:00
Michael Scire
f9dd6f7c17 Update Static fb for rigel 2020-06-17 14:02:41 -07:00
Michael Scire
ff96283b24 Improve dumpers for Isle of Armor 2020-06-17 11:00:35 -07:00
sora10pls
7fd6fe849b Initial Isle of Armor support 2020-06-17 12:41:26 -04:00
sora10pls
5b992dbbb9 Fix SWSH trade dump 2020-06-12 18:23:00 -04:00
Kurt
4cf69da7e5 Minor clean
no functional change
2020-06-02 07:11:11 -07:00
Kurt
3128e293ff Skip entries with 0 probability
as evident in 6/2 distribution raids; the tables have dummied encounters with 0 probability
2020-06-02 07:10:46 -07:00
sora10pls
2db23faee6 Use enums in generic editors
Ball, Species, Nature, Gender, ShinyLock.
We'll hold off on Legendary swapping until DLC 2 comes out and adds in all of them.
Closes #16
2020-05-31 00:19:00 -04:00
sora10pls
bca171111f Add Shiny output to distro raid comment
Also document Field_03, which is the rate of which you will find a distribution raid from a den in 1/16s. Thanks Anubis!
2020-05-29 10:07:13 -04:00
Matt
ce9c121e48 Reorder IVs in SWSH Flatbuffer Schemas (#75)
Properly reflects results in-game.
Also document Field_0C in EncounterStatic8 (unused for now, might be used in DLC).
2020-05-26 09:40:12 -07:00
Kurt
ad058f42d0 Refactoring / clean
remove some compiler messages
2020-05-24 13:00:34 -07:00
Kurt
63c6aab3bf Prep for dlc: unknown location hashes
We'll probably crowdsource the location labeling -- needs to be manually entered into the SWSHInfo tables. Location names aren't decipherable otherwise (yay fnvhashed refs)
2020-05-24 12:31:30 -07:00
CatAxe
0d25537de0 * Added editing drop tables and bonus drop tables.
- added some info in NestHoleReward8Archive.cs to make things pretty in the PropertyGrid editor uses and also to fix exclude stuff from the json/fb serialization/deserialization process.
* Fixed a bug in FlatBufferConverter.cs related to creating a json file for a particular structure when saving, not deleting it and next time when serializing a different structure, that json file would be used because it would be first returned.
2020-05-06 06:22:33 +03:00
Matt
adbca6b8ae Document EncounterTrade8 (#58)
If anybody is able to figure out UnknownRequirement, please PR!
Now with most Gift/Trade fields documented, it should make DLC discoveries much easier.
Also update summary output to match PKHeX.
2020-04-01 13:37:04 -07:00
Matt
23b3e9b483 Document more of GiftEncounter8 (#56)
Also fix field sizes to prevent crashes ingame.
Strangely, declaring IsEgg as a bool doesn't work as intended.
2020-03-27 17:47:04 -07:00
Kurt
8b8363e385 Export crystal table & hex format files
Ability is now identified
2020-03-25 19:02:37 -07:00
Kurt
d2fe183434 Handle latest mewtwo raid
Out of bounds fetch for drop table (??? 6), uses fixed ability ID 0 (first ability)
Use minRank instead for drop table indexing

add shiny to pretty output
2020-02-26 16:43:53 -08:00
Kurt
9fe628b5c9 Add ROM raid editor 2020-01-10 15:48:54 -08:00
Kurt
4b3bf3380b Add static/gift/trade generic editors 2019-11-30 18:10:28 -08:00
Kurt
1ef510bcf0 Add split file encounter dumping, weather groups
Diferent weather allows for different Mark values (ribbon), and only
Symbol encounters can wander into adjacent maps
Need to have separate exports with appropriate metadata

add nest dumper I forgot to push before working on slot dump v2
2019-11-27 22:29:13 -08:00