Commit graph

9233 commits

Author SHA1 Message Date
Kaphotics
cfb8d71f84 Fix ribbon name
Exception was thrown in ribbon editor, easy to replicate by giving all
ribbons to a pk4 (gen4 save file).

Property name now matches pk5/pk6.
2016-09-09 23:59:13 -07:00
Kaphotics
ca6a0da9db ShowdownSet Improve error handling
Because people can't follow directions and try to type it out manually
-> incorrect input
2016-09-09 19:13:48 -07:00
Kaphotics
92448f478d Fix box0 sort/delete
Closes #248

Thanks @exegg
2016-09-09 08:40:57 -07:00
Kaphotics
eaa12f59bd Disallow out-of-bounds puff values
Closes #246

Might as well use the SAV property "Puffs" when loading instead of only
when saving.
2016-09-08 20:29:12 -07:00
Kaphotics
f0d13da35a MaxMoney capping 1-4
Closes #245

Thanks @sora10pls !
2016-09-08 20:20:32 -07:00
Evan Dixon
9e9a506ac2 Merge branch 'master' 2016-09-08 15:33:54 -05:00
Evan Dixon
4c87b7f887 Merge branch 'master' 2016-09-08 15:31:17 -05:00
Kaphotics
de6205ac4b Fix gen1/2 visibility
Closes #242

Thanks @sora10pls !
2016-09-07 09:10:38 -07:00
Kaphotics
822fc47dc4 Remove invalid pk sizes
export always is in list format for gen1/2, these were introduced in
9b6552d314
which was an incorrect 'fix' for getting files dumped from dumpBoxesToDB
to show up in SAV_Database. This underlying issue has been resolved with
the two previous commits.
2016-09-06 19:52:03 -07:00
Michael Scire
b2860ea3de Simplify box bin loading 2016-09-06 19:40:54 -07:00
Michael Scire
8b608389eb Fix box dumping/loading for Gens I/II 2016-09-06 19:35:36 -07:00
Kaphotics
b483cd8002 Check if 'wc6' exists
Thanks Destinyy!
2016-09-06 17:19:30 -07:00
Kaphotics
06942089fa Add Event Flag warning
Closes #236
Altering Event Flags may impact other story events. Save file backups
are recommended.
2016-09-06 17:01:31 -07:00
Kaphotics
7d4a60efdd Tweak IV/EV events
#237

Hides the Shiny star on gen1, and re-hides the extrabytes for gen1/2
Adds missing click event for Label_SPC, as it was recently added.
Replaces the Label_SPA in gen1.
2016-09-06 16:46:00 -07:00
Kaphotics
7ef4a73fcd Hide met tab for gen1 saves, fix verifiedPKM
6->1->translate->6 needs translation done for the Met tab as it being
removed does not list it in the control list when translating, so just
trigger it again.

Other methods had to be tweaked to not reference the tabMain tabs by
index (instead by control names!)

Simplify the verifiedPKM method. removes unnecessary goto and fixes
recent added bug :)
As a side effect the color tracking variables are no longer, now using
the ResetForeColor/ResetBackColor methods of the control -- duh
2016-09-05 23:13:46 -07:00
Kaphotics
12fc528d34 Tweak HGSS Ball set
PGT -> PK4 doesn't have HGSS ball data (value=0)
Return the higher of the two
When setting, consider the Fateful Encounter status before writing to
0x86
2016-09-05 20:20:56 -07:00
Kaphotics
75fbaab26f Reset pkm before repopulating
Clear init states too.

Also updates program text (window title) to indicate if it is in HaX or
not (makes it clear when people take screenshots).
2016-09-05 19:44:15 -07:00
Kaphotics
39ed9c4d0d Fix Drag&Drop gen1 error
Dunno why it manifests itself only in gen<3, but this fixes the index
out of range

Reference #235
2016-09-05 17:05:27 -07:00
Kaphotics
1eff18b6f8 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-05 15:57:30 -07:00
Kaphotics
421dbf31f3 Fix extrabytes
Visible returns false if the tab is not active -- even if it is defined
as true in an earlier line, so use Enabled instead.

Move the AbilityNumber visibility to the end so that the logic isn't
repeated.
2016-09-05 15:57:28 -07:00
Michael Scire
fb313edeac Fix 1 -> 2 Conversion bug, gender issues (Closes #232) 2016-09-05 15:54:34 -07:00
Kaphotics
ed76235e9a Minor hax tweaks
Display overrides for visual neatness

why resx do you keep modifying yourself
2016-09-05 15:46:38 -07:00
Kaphotics
24126c1e96 Fix gen4 met location datasource providing
Copy paste copy paste copy paste

Closes #233
2016-09-05 15:27:22 -07:00
Kaphotics
36a3757418 2digit minute/second
as to not show 20:6:2 (20:06:02)

As shown in #233 first picture
2016-09-05 15:27:02 -07:00
Kaphotics
57122d2f9d Redesign first 3 tabs of editor
Uses many FlowLayoutPanel to automatically collapse controls so that
when future properties are hidden, the remaining aren't 'randomly'
spaced out.

With the collapsing of controls, N's sparkle was added for gen5 pkm.
2016-09-05 14:26:21 -07:00
Kaphotics
fed18d1d51 Ban gen3/4 balls on g4 starters
Thanks /u/Subject21_J !
2016-09-04 21:36:41 -07:00
Kaphotics
9b6552d314 Database/MysteryGift fixes gen1/2
Fix unhandled exception loading gen1/2 to gen3+
Fix unhandled exception loading gen1/2 save and opening Database
Fix not loading pk1/pk2 dumped files as they aren't in the "List" format
(rather, party and stored).
2016-09-04 18:17:13 -07:00
Kaphotics
f9cfdd6c18 Add more descriptive backup names
\u02D0 = ː

If anyone has problems with this, speak up (and . will be used instead)
2016-09-04 15:54:16 -07:00
Kaphotics
fff75df848 gen1 OT length fix 2016-09-04 15:44:54 -07:00
Kaphotics
d18e17a599 Fix moves 2->1
Unsync'd
2016-09-04 15:33:53 -07:00
Kaphotics
db660355cc Simplify 1<->2 conversion 2016-09-04 15:32:48 -07:00
Kaphotics
463a889d65 Revert "Tweak 1<->2 conversion"
This reverts commit ce1202ead8.
2016-09-04 15:32:08 -07:00
Kaphotics
ce1202ead8 Tweak 1<->2 conversion
Delete gen2 only moves on 2->1 instead of refusing to convert; fix moves
afterwards.
Simplify PKMConverter checks
2016-09-04 15:29:55 -07:00
Michael Scire
45df87f8cc PK2 -> PK1 Conversion fix 2016-09-04 15:21:46 -07:00
Michael Scire
1bb5388b4b PK1 <-> PK2 Conversion 2016-09-04 15:03:40 -07:00
Kaphotics
387ed9cbcc Refactoring
Gen1/2 arrays to legality tables

Add PP tables for gen1/2 too
2016-09-04 14:00:52 -07:00
Kaphotics
80938b6983 Remove unused options
Carryover from SAV_Database

Fix impossible null ref in both, won't ever happen in current state
2016-09-04 11:02:27 -07:00
Kaphotics
5fe650f5a9 Fix too-many-slots gen1/2
Closes #216
2016-09-04 10:42:56 -07:00
Kaphotics
8e3fbf4e98 Add mystery gift database &search
Closes #227
2016-09-04 10:38:53 -07:00
Evan Dixon
ee3b2aac54 Merge branch 'master' 2016-09-04 08:33:45 -05:00
Evan Dixon
296e28454b Merge branch 'master' 2016-09-04 08:33:09 -05:00
ajtudela
b126299295 Merge pull request #5 from kwsch/master
Update 2 gen
2016-09-04 11:31:25 +02:00
Michael Scire
d3c6b9886e Add additional Gen II Save file size 2016-09-04 00:28:14 -07:00
Kaphotics
316e9a2795 Misc cleanup
( ͡° ͜ʖ ͡°)
2016-09-03 23:54:11 -07:00
Michael Scire
64205beae3 Fix SpD previewing for Gen II 2016-09-03 23:45:10 -07:00
Kaphotics
aa11abfe94 Merge pull request #226 from kwsch/gsc-support
Add support for editing Gen II files
2016-09-03 23:26:04 -07:00
Michael Scire
7c9ca12e02 Final resources.resx fix 2016-09-03 23:20:15 -07:00
Kaphotics
d1697835f2 Minor qol improvements
Deleting bad egg (red) slot sets the slot background to transparent
instead of just deleting the image (rather than just doing both, let the
quickFiller method handle it)

Using GetType() returns the namespace with the string (ie PKHeX.PK6),
return the actual type name ("PK6") because the PKHeX prefix is
meaningless when shown to the user.
2016-09-03 23:19:11 -07:00
Michael Scire
8dde129cb5 Merge master in preparation of pull request 2016-09-03 23:18:50 -07:00
Michael Scire
5fb03b8730 Japanese G/S support. 2016-09-03 23:15:09 -07:00