Commit graph

7728 commits

Author SHA1 Message Date
Evan Dixon
8bd9322571 Merge pull request #1 from kwsch/master
Pull latest changes
2016-07-29 20:17:20 -05:00
Kaphotics
3b6f1e2c58 Attempt at a FlowLayoutPanel scroll hack
Thanks @evandixon for the link to a 'fix', lets see if it works.

#149
2016-07-29 16:00:56 -07:00
Kaphotics
9b3d6e5177 Fix Gen3 checksum calc
Also when checking the active save, check the block0 for both save files
since it is always updated.
2016-07-29 15:47:56 -07:00
Kaphotics
2365e974cb Generated form tweaks
Click label to invert checkbox, widen Ribbons so 5 appear per row,
reduce margins.
2016-07-29 08:31:02 -07:00
Kaphotics
cd909d5cc5 Add Batch Editor => Shiny PID command
Also added Box/Slot filtering, for whatever reason is desired.

Thanks /u/exegg for the suggestion!
2016-07-28 23:05:26 -07:00
Kaphotics
654ff292e6 Add nature/gender recalc PID on <=gen4 2016-07-28 22:54:29 -07:00
Kaphotics
1411749fbd Move shiny PID creation to PKM class 2016-07-28 22:33:16 -07:00
Kaphotics
cd32c79ba9 Center SimpleTrainer on open
Accidentally omitted.
2016-07-28 22:09:39 -07:00
Kaphotics
57899a7da9 Add unknown gen3 game detection
Bad cheats invalidating that Game Code!

Thanks @poutros !

Resolves #146
2016-07-28 22:08:23 -07:00
Kaphotics
67a375ecae Fix SAV4:Gen4 met locations
Do gen4 metloc check after gen3, THEN do gen5.

Thanks @poutros !

Fixes #140
2016-07-28 21:46:30 -07:00
Kaphotics
1755b49a9c Fix EncounterLink OT
Set the "Receiver is OT" to false for Glalie/Steelix, else true.

Thanks @poutros !

Fixes #147
2016-07-28 21:30:38 -07:00
Kaphotics
f63cbb4c26 Tweak move bindingsource iteration
Create datasource before the foreach to avoid multiple .Where(),
possibly fixing #151
2016-07-28 18:36:02 -07:00
Kaphotics
2805f699ac Fix HGSS CurrentBox
Thanks @poutros !

Resolves #143
2016-07-28 18:23:35 -07:00
Kaphotics
750751cdab Set checksum on PGT/PCD -> PK4
Thanks /u/SubMana!
2016-07-28 16:30:48 -07:00
Kaphotics
2a05037892 Fix Event Flag save
Casting issue, OfType to get all Checkboxes because the foreach doesn't
auto filter the Control[] to CheckBox[].

Thanks Armodillomatt12!

Also, don't forget to actually save the changes back to the main save
file...
2016-07-28 15:53:13 -07:00
Kaphotics
a9aadc0191 Fix Gen3 Item inventory edits
Resolves #145 and Key Items missing bug for Emerald
2016-07-28 15:31:05 -07:00
Kaphotics
e362a62410 Fix gen3 save exporting
Thanks BeyondTheHorizon!
2016-07-28 08:52:04 -07:00
Kaphotics
aa98fb1210 Fix import/export text for wc6
Thanks @poutros !

Resolves #142
2016-07-28 08:33:59 -07:00
Kaphotics
9ffa97cb1f 7/28/16 release
Update changelog and event database
2016-07-27 19:47:03 -07:00
Kaphotics
7f2dd7a3a4 Fix form clearing on load
y tho
2016-07-27 19:25:36 -07:00
Kaphotics
2f25fa99d9 Tweak Gen3 Version Detect Inputs
International = Yes
Japanese = No

FR = Yes
LG = No

Reassigns Personal Table for FR/LG so that Deoxys stats are calculated
correctly.
2016-07-27 18:59:10 -07:00
Kaphotics
b6f4c696f7 Fix Party retrieval
"Party" variable was undefined in gen3 (and others), thus returning
blank party information. Use the abstract method to get the true offset
of a party slot (which is implemented differently per gen).
2016-07-27 18:51:11 -07:00
Kaphotics
07f0d688dc Fix gen3 unown form display/edit 2016-07-27 18:20:15 -07:00
Kaphotics
47c6168ac4 Add gen4 formes to personal
Manual tweaks
2016-07-27 18:08:08 -07:00
Kaphotics
282030b1e7 Add Pokémon Link I/O
Thanks @suloku !

Resolves #137

Added recalculation for data's internal checksum.
2016-07-26 20:18:48 -07:00
Kaphotics
d56a55965d Add SaveFile version detect bools 2016-07-25 23:11:17 -07:00
Kaphotics
f9bd271967 Bug fixes
Box Wallpapers
Stop returning the first box wallpaper regardless of box

EXP:
Changing level/exp wouldn't update stats (EXP needed to be set back to
PKM object)

Drag&Drop:
If the file exists and is locked for editing, the try { } will fail ->
so will delete since the file is locked.
Never seen or heard it happen, but is possible.
2016-07-25 22:40:05 -07:00
Kaphotics
3d0ffabe75 Minor tweaks
Fix off by one and add a safety check for sav6
2016-07-24 21:19:08 -07:00
Kaphotics
cc1621879e Add gen3-5 box wallpapers
Put the [BoxWallpaper] fetching into a single class.
2016-07-24 21:11:11 -07:00
Kaphotics
3274cdaac7 Fix dexlist arg ordering
Old code skipped 0th entry, but assigned numbers are off by one. Fun.
Take the existing datasource and skip the None entry.
2016-07-24 17:52:25 -07:00
Kaphotics
cd5ed794bc Mystery Gift editor updates
Prevent popup of "USED" prompt when opening the form.
Allow QR's for all generations (won't work for injection, just for
sharing).
Remove ".wc6" from Import/Export buttons (translation file).
Importing gift from QR now type checks.
2016-07-24 15:44:44 -07:00
Kaphotics
0b95833b74 Add version diff check
BW vs B2W2 will prevent flags

Defer layout when adding controls (increase speed).
2016-07-24 15:04:04 -07:00
Kaphotics
794b1478a6 Minor tweaks
no functional change
2016-07-24 01:31:02 -07:00
Kaphotics
01a1e61d2f Fix g3 ribboncount set 2016-07-23 23:18:23 -07:00
Kaphotics
945ac79b1f Misc gen3 fixes
Fix boolean get/set, fix met location, add gen3 egg gift location
2016-07-23 14:55:12 -07:00
Kaphotics
2443ace5f8 Fix loading past gen formats
Mainly from database viewer, also skip annoying MessageBox if loaded
from Database.
2016-07-23 14:16:23 -07:00
Kaphotics
419ed553cb Add randomization for PID/EC 2016-07-23 11:44:37 -07:00
Kaphotics
a41cb8bae0 Add advanced search to database
Can run certain queries using the same format as BatchEditor

Improved property filtering if filter is invalid.
2016-07-23 01:04:55 -07:00
Kaphotics
1dd4919adc Speed up form translation
defer layout until after translation
2016-07-22 00:01:52 -07:00
Kaphotics
da1f7c7426 Add movepp tables for 3->6
Split from the PKX table (now removed); since PP differs between gens we
have to keep track. Not gonna add a separate binary, just use a
reference table.
2016-07-21 23:49:52 -07:00
Kaphotics
5293c30766 Continue glue removal
PersonalTable.RS exists, no need to have a hard coded ability table.
(re)moved some unnecessary stuff.
2016-07-21 23:20:10 -07:00
Kaphotics
1bceb99306 Fix gen3 ability setting
main form wouldn't set back properly, simplify loading,
fix pk4->pk4
disassociate from PKX.Gen3Abilities (to be deleted now that
PersonalTable.RS exists).
2016-07-21 23:13:58 -07:00
Kaphotics
0362268e41 Unnecessary changes
Simplify usages
2016-07-21 22:45:20 -07:00
Kaphotics
dc11719902 Improve batch editor alerts
Add detection for incomplete commands (instead of throwing and catching
exceptions).
Add 'error' skip tracking, add counter for actual files iterated over
(930 -> actual count of nonempty files for a gen6 save).

Processing folder files now writes back ONLY if the file is modified.
2016-07-20 22:43:26 -07:00
Kaphotics
583859ffd3 Change Property combo to DropDown
Allows the user to type in the property -> SuggestAppend

When the typed text is not within the list of items, the selectedindex
is -1, so abort.
2016-07-20 22:21:09 -07:00
Kaphotics
e0b2f164dc Simple out of bounds checking
PKHeX currently won't supply species > length, but if this code is
reused elsewhere -> default to species 0 like the games.
2016-07-20 20:43:18 -07:00
Kaphotics
6029913b55 Move stat calc to PKM object
ref PersonalInfo entry to calculate from

Fixes species with changed BST between gens.
Worked fine before PKX Personal was split from SAV (to fix box report),
this fixes by requiring the actual personal reference instead of looking
it up.
2016-07-20 20:40:03 -07:00
Kaphotics
45d99406f6 Only list settable & public properties
If there's anything private (like ribbon bytes) don't display em.
2016-07-19 22:26:07 -07:00
Kaphotics
985a3eec23 Update getGenderIsValid
never used, just copy the gen3/4 implementation with the earlier return
2016-07-18 23:31:09 -07:00
Kaphotics
027feebe77 Add gen3 met locations to Report view
Remove unnecessary pkx function
2016-07-18 23:28:36 -07:00