Commit graph

430 commits

Author SHA1 Message Date
Kaphotics
3351c7f9bb Add simple trainer editor (past gen)
Fixed save invalidation as well. GameVersions were detected based on
checksum validity.
Gonna change that so an invalid save can still be recognized (based off
of other markers)
2016-06-21 17:35:12 -07:00
Kaphotics
68f144e040 Re-add PKM property verification
Item/move/species (didn't add Ball and Version) being imported from a
.pkm or forcefully input now requires the user to OK before it is set to
the save.

EX: Hyperspace Fury isn't in X/Y, drag from another instance of the
program with OR/AS loaded and a Hyperspace Fury move... the user will be
alerted of the incompatibility and will be allowed to continue (and fix,
if desired).
2016-06-20 23:02:26 -07:00
Kaphotics
a1d9d25a01 Hide TSV/PSV on gen<6 2016-06-20 21:11:48 -07:00
Kaphotics
5386bb738d Fix PID changing for gen4 pkm
Filling the EC textboxes when it is not visible is unnecessary as well.
2016-06-20 20:58:35 -07:00
Kaphotics
28141729a9 Limit PKX dropdowns when Version changes
Filters out choices that are not obtainable in the loaded version of
game (such as new Mega Stones).
2016-06-20 18:58:06 -07:00
Kaphotics
1da183a8cc Minor tweak
SAV5 change didn't get saved
no need to "take" the rest of the data when footer checking.

this logic can be expanded if other emulators behave differently...
2016-06-19 22:13:57 -07:00
Kaphotics
e6a4f4cce1 Add .dsv support
Even catches the 1MB misconfigured DSV's (stuffs the bak data in with
the footer).

Works by searching for the DeSmuME footer signature in the input data,
if present, breaking up the info.
2016-06-19 22:11:53 -07:00
Kaphotics
6378eb7f56 Current progress
Still a few milestones left to hit before official release.
2016-06-19 21:22:43 -07:00
Kaphotics
b3e742fb96 Load current stats if hax
Can probably get status and what not but no need.
Checking HPMax != 0 is a simple way of checking if any stats are
present, as a box pkm would have zeroes and any party pkm would have >=1
2016-05-26 08:30:06 -07:00
Kaphotics
8a4ebf461b Add loading encrypted pkm files
Also fix 220 byte pkm file loading
2016-05-20 18:55:06 -07:00
Kaphotics
7aa96a3a16 Fix Secret Base editor button not appearing
Default state is not-visible instead of not-enabled; flip the correct
property.
2016-05-17 17:36:31 -07:00
Kaphotics
abc33893c8 Use exact methods when transferring save pkm
Allows bad hacks to be transferred.
2016-05-17 00:00:10 -07:00
Kaphotics
a6d94f237c Fix bad eggs aborting past gen dump
Thanks xtreme1!
2016-05-16 23:05:21 -07:00
Kaphotics
03821c1f9d Add past gen save file box dumping (gen4/5)
Dumps all of the box contents to a user specified folder.
2016-05-15 15:35:43 -07:00
chenzw95
fde1c95700 Distinguish between Leagues of both regions
An oddity will otherwise force the smaller index (Kalos') to be selected instead.
2016-05-08 18:47:22 +08:00
Kaphotics
0f69fcb7f8 Add load modifyPK6 override
Extracted existing dialog from openFile to a method.
For loadBoxesFromDB and opening a box binary.

Thanks Eskuero for the suggestion!
2016-05-05 18:52:43 -07:00
Kaphotics
0c92f180c6 Update OT gender color on clickOT
load from save -> load gender, also fetch color.

Thanks Eskuero!
2016-05-05 18:47:40 -07:00
Kaphotics
34cb70e16b Commit the rest
Why github do you just ignore if I save
2016-04-30 20:25:12 -07:00
Kaphotics
3213db3020 Keep gender when changing species
Only do gender detection if it's from previous games
2016-04-30 14:43:47 -07:00
Kaphotics
7a94640c0c Add wc6full bin
Include loading into the database
2016-04-29 23:24:23 -07:00
Kaphotics
1de3f31e9f Minor refactor
cleanup, remove parenthesis/unused

EV total backcolor matches IV backcolor instead of a defined color (for
those who alter their default color schemes)
2016-04-28 21:43:16 -07:00
Kaphotics
397fb30df5 Remove Code Generator
Using the Cache for CyberGadget removes any need for a code generator,
as the code generator had many holes (partial writes if data already was
correct); future games would be odd to balance.
2016-04-27 21:07:35 -07:00
Kaphotics
dc43dea409 Fix demo & opening wc6 form
ctrl + drop wc6 -> window errors out, caught exception masks the
failure.

Prevent it by default
2016-04-26 23:01:59 -07:00
Kaphotics
2233747d87 Box Dump tweak
Disable for ORAS demo
Use box name for folder name instead of "BOX #"

Minor modifications adding if (SAV.XY) for future game branching.
2016-04-25 22:03:16 -07:00
Kaphotics
d3b5968efd Add more savegame specific safeguards for pk6set 2016-04-24 12:40:46 -07:00
Kaphotics
cb2e3d9a04 Add legal EC generation
Wurmple evolution is accounted for, as is past gen EC matching PID.
2016-04-21 19:44:22 -07:00
Kaphotics
2c523dcd97 Allow wc6fulls to be added to DB
Minor load/save improvements
2016-04-21 18:47:51 -07:00
Kaphotics
027e0e19b1 Refactoring 2016-04-18 18:21:50 -07:00
Kaphotics
f39730b2b3 Init default savefile
No need to have warning when importing a wc6 as PKHeX has the default
info now.

Resolves #99 indirectly.
2016-04-17 15:41:28 -07:00
Kaphotics
802ecc9c66 Add wc6 import prompt if no SAV loaded 2016-04-16 11:32:25 -07:00
Kaphotics
707285cf0d Improve form centering, cleanup
Center database/report forms on load; doesn't happen by default as there
is no parent assigned when it is called by Show().

Add a form->form centering method, cleaned up the code behind the 16byte
hex seed fields.
2016-04-15 16:11:46 -07:00
Kaphotics
309d521201 Add loading override for Battle Vido
for those who want to check pk6's without modifications
2016-04-14 17:10:06 -07:00
Kaphotics
4ff64a2ff8 Fix transporter string
Cosmetic bug due to shuffling the languages around
2016-04-14 02:36:40 -07:00
Kaphotics
e590aaf0d4 Fix hotkey exit (Q) prompt 2016-04-12 18:40:37 -07:00
Kaphotics
115d1f0591 Language loading fix
PKHeX pt would cause exception

Flip ja/en order to match ingame values
2016-04-10 09:33:38 -07:00
Kaphotics
76e62ccd46 Fix language change deleting data
create a new pk6 separate from the form's pk6 storage which can be
modified.
2016-04-09 18:56:29 -07:00
Kaphotics
1f35c4a577 Fix jksv detection
Root of 3DS's sd card, not in the Nintendo 3DS folder
2016-04-09 18:09:13 -07:00
Kaphotics
cfe982dbe1 Add JKSV detection 2016-04-08 22:14:16 -07:00
Kaphotics
1c531b0673 Bring popup to front instead of alert
Any call to open a form that is already open (special characters, box
report, database) would alert that it's already open. Just bring it to
the front. Since it may be hidden, just move it back into view (align to
main program's top-left location)
2016-04-07 22:16:08 -07:00
Kaphotics
1eff57bd87 Simplify move suggestion method
Relying on linq... so rich.

Take the suggested moves, select a string array, and join.
2016-04-07 17:42:53 -07:00
Kaphotics
53e046fd7f Disallow exporting backup if sav is not exportable
CTRL-B could bypass the 'export' option being disabled.
2016-04-06 18:36:10 -07:00
Kaphotics
d3fbaed225 Remove moveID references, use language strings
Fixes #96
The legality core should not rely on text resources for legality output,
and move IDs are meaningless to the common user.
2016-04-06 18:13:43 -07:00
Kaphotics
cb9cab9ac0 wc6full fix
fix typo, add filter
2016-04-06 17:46:34 -07:00
Kaphotics
e0a2226228 Add cache detection to other sav detection methods 2016-04-05 20:37:36 -07:00
Kaphotics
4f6f0dddf0 Add cache folder detection to main window open 2016-04-05 20:27:57 -07:00
Kaphotics
d1cd61f0c4 Fix ctrl held at launch exception 2016-04-04 20:41:26 -07:00
Kaphotics
09811c32e4 Add verbose export
Partial commit error fixed
2016-04-03 17:11:58 -07:00
Kaphotics
cf7ca51d83 Let the program handle genderless pkm on load
Previously a Male Arceus would load (gender 0 = male), just have the
program handle the gender/species.
2016-04-02 14:03:04 -07:00
chenzw95
2ac37336dd Reset OpenFileDialog path only if it does not exist 2016-03-31 01:14:32 +08:00
chenzw95
f6c593ac7d Explicitly set InitialDirectory when creating new OpenFileDialog
Probably fixes most "no disk in drive" issues.
2016-03-31 00:24:58 +08:00