Commit graph

249 commits

Author SHA1 Message Date
Kaphotics
1c53243283 Remove ram2sav
Also removed injectiondebug and trade packet handling.

Improved BAK suggested filename (last saved timestamp)
2016-01-27 20:24:32 -08:00
Kaphotics
dee466cf73 Add Min/Max button 2016-01-24 10:23:57 -08:00
Kaphotics
35465b837e Minor refactoring
Load used WC even if dismissed, i/o for main display operates by passing
PK6 instead of byte[]
2016-01-24 10:19:30 -08:00
Kaphotics
436141b073 Design/Internal tweaks (Refactoring)
Saving of counts is done on close instead of on change.
Simplified the representation of generating random berry plots.
2016-01-23 14:50:22 -08:00
Michael Scire
6230dd7bd6 Add Pokeblock editing support. 2016-01-23 13:00:44 -08:00
Kaphotics
0a7f10140c WC Editor Tweaks
Don't auto-load first wondercard (prevents "GIFT USED?" spam)
Simplify img preview, also add 30% opacity for used gifts to indicate
status.
2016-01-23 10:16:07 -08:00
Kaphotics
0369a817c5 Remove unneeded check
if ORASDEMO is true, then ORAS is already true
2016-01-23 10:15:12 -08:00
Kaphotics
cfc93ef96e Minor Tweaks (ORASDEMO)
Simplifies checking for ORAS so that ORAS includes ORASDEMO by default.

Hide tab pages properly.
2016-01-23 08:42:11 -08:00
Kaphotics
808e4b6a9f Add Adventure Start editing
Seconds Since 1/1/2000; can go negative (more than 32 bits, but we can't
ever realistically do that).
2016-01-22 19:39:03 -08:00
Kaphotics
ea000cc95d Avoid invalid cast errors
Should only use Util.getIndex when a BindingSource is set with a
retrievable value. The method will now throw an exception instead of
handling it to let the programmer know that the wrong fetch method was
used.
2016-01-21 22:55:20 -08:00
Kaphotics
e70fa13d12 Cleanup & Bugfix
int offsetTime = Main.SAV.SuperTrain + 0x10;
did not match the offset read from ( + 0x8)
2016-01-21 22:38:26 -08:00
Kaphotics
c17cea9211 Redesign Trainer Info Editor 2016-01-20 22:45:48 -08:00
Kaphotics
061309ccd6 AdventureStart -> LastSaved
Misattributed
2016-01-20 21:25:33 -08:00
Kaphotics
17b2e4ea30 Disable Map Editing on failure to show map
Lumiose City's odd coordinate format can't be properly kept by the
NumericUpDowns; disabled in the case where coordinates are irregular
(%.5!=0).
2016-01-20 21:08:33 -08:00
Kaphotics
025b5a3c52 Add Adventure Start to editables
With that I'm pretty unhappy with the large form; might tabulate the
view in later commits.
2016-01-20 20:38:21 -08:00
Kaphotics
15cd87baf5 Add audible confirmation of filter reset 2016-01-17 17:11:32 -08:00
Kaphotics
c768124591 More refactoring
Removed a lot more unneeded parenthesis.
2016-01-17 17:07:19 -08:00
Kaphotics
0b89682a64 Refactoring
Now have win10, new vs, new resharper, new c# tricks
2016-01-17 13:27:24 -08:00
Kurt
bd5a1c7db3 Use string method instead of control based 2016-01-09 12:46:13 -08:00
Kurt
f6121b8111 Recalculate level for report
Info is not present in box pk6 files, needs to be recalc'd

Thanks Blassie098!
2016-01-07 08:13:06 -08:00
Kurt
df5cbbd5b7 Fix Z coord saving
Reference the Z numericUpDown instead of the map's.
2016-01-06 23:01:48 -08:00
Kurt
52ea545b29 Remove more parenthesis
No functional change, just src clarity.
2016-01-05 18:16:58 -08:00
Kurt
1351af480e Check for null QR wonder card data
Happens on bad URL in clipboard -> no data returned.
2016-01-01 22:03:41 -08:00
Kurt
06cd71b58b Add ORAS Demo support
Likely going to regret doing this; but this sets the groundwork for
enabling partial support for future games.
2015-12-29 22:03:27 -08:00
Kurt
beaddf47fe Clean wonder card filename suggestion
Removes illegal filename characters. " " " " "
2015-12-29 10:36:32 -08:00
Kurt
71ed9872a8 Simplify code
So insignificant
2015-12-28 17:11:13 -08:00
Kurt
b2c4a686b6 Fix other half of trainer editing bug
Oops.
2015-12-28 13:23:35 -08:00
Kurt
24703bfc22 Minor refactoring
Do things better.
2015-12-26 21:17:23 -08:00
Kurt
2d4920e8bb Fix FlagDiff
No longer supports 1MB decrypted saves (because honestly who does that)
2015-12-23 07:58:43 -08:00
Kurt
75c9799f7b Fix scrolling through trainer stats 2015-12-23 07:57:41 -08:00
Kurt
b27abe3509 Bugfix 2015-12-21 20:45:44 -08:00
Kurt
aa7af78cd9 Change minimum logic
0-5 -> add pk has a max scroll of 0 not 1
2015-12-19 16:32:22 -08:00
Kurt
d325028bec Tweak set/delete/view logic
Better incorporates colored slots and final states after actions are
performed.

When setting, the database list will scroll to the absolute end
possible.
2015-12-19 16:29:44 -08:00
Kurt
d102da0e6c Tweak setting logic and size references
Acting on a slot will now work on set/delete
2015-12-19 16:25:32 -08:00
Kurt
0c2d2ac049 Add drag rearrangement of Wonder Cards 2015-12-18 22:17:01 -08:00
Kurt
5baff6fb8f Tweak ListBox interaction
Redefine text instead of clearing and regeneration.

I like this method of manipulation much better; got rid of the old list
box and added a contextmenu to the Received List.

Also added Drag&Drop support.
2015-12-18 22:04:01 -08:00
Kurt
e2a176aac6 Clear empty wc6 slots, show current action slot
Like the main window, indicate which slot the user has
viewed/set/deleted.

Cards with cardID=0 are removed (none existing)
2015-12-18 20:48:47 -08:00
Kurt
fbbb99037c Finalize design of WC
Add row indications just in case it isn't clear
2015-12-18 20:32:01 -08:00
Kurt
39aa1ac205 Refine WC presentation 2015-12-18 20:25:16 -08:00
Kurt
e4e662e2f2 Wonder Card update
Added preview display for all Wonder Cards; consistency in calling them
Wonder Cards.
2015-12-17 21:15:40 -08:00
Kurt
3d4847f1bc Reorganize logic
Behaves better
2015-12-14 22:14:57 -08:00
Kurt
fd8455b158 Reduce complexity 2015-12-14 22:04:37 -08:00
Kurt
c9d0db23ac Refactoring
Increase flexibility, use game personal data and structure to clearly
define what is going on.

Helps for implementing future games.
2015-11-25 22:20:09 -08:00
Kurt
62eddb6aec Misc fixes 2015-11-21 19:27:50 -08:00
Kurt
19ff462fff Relocate PokePuff sav properties 2015-11-21 19:17:35 -08:00
Kurt
0064d1b497 Finish conversion of tr stats to SAV6 properties 2015-11-21 17:23:00 -08:00
Kurt
693084e947 Change array type specification
Defaulted to int; best to play it safe.
2015-11-20 22:13:15 -08:00
Kurt
9496ddb66b Minor Cleanup
Does nothing but remove unneeded confusion.
2015-11-20 22:11:25 -08:00
Kurt
925699af0d Fix Trainer Info editor issues + bugfixes
Fixed reported bugs by Wanderer1391; found a bunch more as a side effect
of refactoring. Didn't like how so many values were hard coded so I
moved them all into the SAV6 class for easier r/w.

Re-enabled the Map Coordinate editing for non-ramsavs.
Updated the Map Coordinate display to the ingame coordinate style (using
NumericUpDowns), the coordinates for player.X and player.Y are divided
by 18 to get the current cell coordinates.
2015-11-20 22:02:15 -08:00
Kurt
c719c335df Add Pokécenter & Gift Trainer Sprites 2015-11-17 21:02:23 -08:00
Kurt
426eda5a46 Use SAV's BoxData property to load data 2015-11-15 22:03:58 -08:00
Kurt
eb22a46290 remove debug stuff
oops
2015-11-15 08:20:17 -08:00
Kurt
f3ea73787b Add alt/shift click
Shift click setting is not accessible without the hotkey, not going to
add it as a Right Click Menu.

Main had to expose more methods (to access info from tabs); standardized
all references to the database path as well.
2015-11-14 19:41:39 -08:00
Kurt
dc5fc1f175 Add deletion method for database tool
Can delete files from database folder, or save file.

Easy way to filter crap out to delete, yay.
2015-11-14 18:17:54 -08:00
Kurt
f867697caa Close
Close
2015-11-13 19:04:42 -08:00
Kurt
75be21bac2 Improved search filters
Automatically ignore bad sanity/species
Allow user to select Box&/Database as their search source.
2015-11-13 18:31:01 -08:00
Kurt
101c0ad80f Minor bugfixes and cleanup
Added an Edited property for the save
blank slot (encrypted) is initialized once and can be used elsewhere
instead of constantly being recreated for no reason.
Fixed having 32 boxes for non-saves

All SAV editing forms now set the Edited flag when saving->close.
2015-10-24 16:33:44 -07:00
Kurt
661052bcf9 Refactoring of Save File Usage
Probably breaks a thing or two... time to get testing after this new
commit.

Wrapping the stored 'savefile' into an object which handles its use
allows a clearer separation of function and easier maintenance or future
updates.

May eventually move all get/sets for each form to allow property
fetching from any window, all logic handled within the class.
2015-10-23 20:13:32 -07:00
Kurt
6431ef1f68 Update Fill Pokedex method
Now just spams Give All for every species before writing forms (and
encounter count if necessary)
2015-10-15 04:23:41 -07:00
Kurt
f6bddf6fce Ramsav/Powersave cleanup
Old code which is unnecessary.
2015-10-14 18:45:45 -07:00
Kurt
633d4e040b Add export option for (filtered?) results.
It might be wise to just ball up all the results (as decrypted) to speed
up form loading (by just having to read one file instead of >1000 at a
time).

Maybe just scoop up all the files into the database and filter dupes,
but no way to remove stuff....
2015-10-12 17:12:20 -07:00
Kurt
d17a322bca Hide ESV on filter reset
Misbehaved depending on state before reset. This should do the trick.
2015-10-12 00:12:21 -07:00
Kurt
1c663a8600 Add Indicator label & fix focus issue
Indicator will now tell the source of the file last viewed
Focus fix pairs with the main form adding the focus argument to the
method; the window will no longer lose focus (ie, pass focus to the Main
form)
2015-10-12 00:10:40 -07:00
Kurt
805300a41d Implement Create Data Report
Required adding a pre-filtered method to the report form in order to
process data.

Probably gonna end up with stupid identifiers stretching everything, but
at least it shows where everything is. Best to export to a csv table
anyway.
2015-10-10 18:29:02 -07:00
Kurt
03900d1414 Code cleanup (reordering)
Additionally, Resetting Filters will reset the newly added Generation
ComboBox.
2015-10-10 10:28:24 -07:00
Kurt
be2e95b1c8 Add Generation filter
When the SelectedIndex of the Version ComboBox is changed, the
Generation index will be set to zero (and vice versa) to prevent
conflicting search criteria.
2015-10-10 10:18:55 -07:00
Kurt
0e194ec861 Allow subfolders to be accessed when loading 2015-10-10 10:02:32 -07:00
Kurt
0b42980119 Reset last slot viewed on search 2015-10-09 06:34:26 -07:00
Kurt
07bf3b2312 Fix search -> scrollbar interaction
Setting the value doesn't trigger the fill update; manually update
regardless of scroll position.
2015-10-08 20:18:42 -07:00
Kurt
8ef03eaccd Database sanity checking before opening 2015-10-08 17:40:36 -07:00
Kurt
d9073cea98 Finish first iteration of Database & Search
Should surpass the search options of Pokécheck ;)

Quite easy to add extra search options too!
2015-10-07 20:19:34 -07:00
Kurt
ccb5f6e428 Add more flag setting logic
Checks the opposing checkbox when set.

Of course one could take this further but it should be left up to the
user for insane tweaks.
2015-10-06 17:19:15 -07:00
Kurt
f0faf76fc6 Fix Box Report errors
Thanks RustInPeace for initiating the conversation.

Getting EggLoc needs to call getLocation with eggMet set (for HGSS
mons).
Fixed 0 index for Box/Slot in the identifier; BOX 1 => B1
Should only add the pkm to the list if its checksum is valid.
2015-10-06 16:45:26 -07:00
Kurt
42387f9eac Pokédex Update
Big thanks to Siobonbon for finally clearing up the muck that had been
sitting around for so long 👍

The mysterious dex flags are much clearer now, there is no 'via trade'
flag (it's the forms owned flag)
2015-10-05 21:56:51 -07:00
Kurt
c1bb9d5cec Add database view skeleton
future?
2015-10-05 18:51:52 -07:00
Kurt
26e6aa3d81 Fix Volcanic Ash overwrite
Thanks MilesPikachu!
2015-09-27 06:42:02 -07:00
Kurt
809148ed54 Refactoring round two
Introduced the fully editable PK6 class object, which is now used by
PKHeX's pk6 editor, as well as updated the Box Data Report. Readability
should be increased as no

Includes bug fixes:
Odaxis' report regarding Event Flag Editor
Showdown sets using "Trait" instead of "Ability" (old old style) now can
be read.
Imported showdown sets will not use the imported gender label (instead
uses the current style, same 'value')
2015-09-23 20:29:31 -07:00
Kurt
d4ea56cfd6 Heavy refactoring
Remove numerous inter-form dependencies, remove hard-coded offsets,
update a few spots to use better programming practices.

Should increase the readability of PKHeX's source code.
2015-09-20 20:34:09 -07:00
Kurt
d6bbb57d7b Constrain entry of values 2015-09-20 12:05:03 -07:00
Kurt
22e0e7ee79 Add used wondercard detection 2015-09-12 21:32:30 -07:00
Kurt
e4425b5b30 Prevent width adjusting of Inventory Editor 2015-09-05 13:57:34 -07:00
Kurt
21878fb724 Fix chopping off EV bits 2015-08-06 20:16:07 -07:00
Kurt
2664b587be Fix Pokédex crashing on "Fill All"
Shouldn't call setup methods after setup is complete; I extracted all
necessary operations that need to be repeated (loading the bitflags)
into a separate method.

Thanks ShaKage!
2015-06-09 23:36:03 -07:00
Kurt
0518c677c9 Add load last saved box on load
mimics the game
2015-05-06 19:30:31 -07:00
Kurt
252d40293a Use the PKX sprite fetch method instead
Should be always up to date now.
2015-04-30 00:01:17 -07:00
Kurt
2b3780e233 Use the PKX sprite fetch method instead
Having many clones of the same method is bad, especially if fixes are
required...
2015-04-29 17:23:23 -07:00
Kurt
225302c149 Double hotfix!
Wondercards with unknown items (null -> load unknown); block Eon Ticket
Fix language auto-loading
2015-04-05 10:48:18 -07:00
Kurt
9928bc1e14 Easier wondercard opening 2015-03-31 17:58:23 -07:00
Kurt
d45e62b6ef Quick removal of unneeded code
binding stuff is set by the setForms method
2015-03-28 20:53:20 -07:00
Kurt
c46d609e7d Fix Vivillon Form loading/saving
Thanks KingGengar & Favna!
2015-03-28 20:50:59 -07:00
Kurt
b906491d2f Refactoring, QR operations -> method 2015-03-13 19:59:51 -07:00
Kurt
b56edf1fec Continued Refactoring
Should be good now, a lot of silly stuff removed.
2015-03-11 21:44:12 -07:00
Kurt
677378d198 Image String Tweak to imply it's a wondercard. 2015-03-10 22:32:03 -07:00
Kurt
0e05742a1f Add Wondercard QR
Main form string fixes to accompany the WC updates.
2015-03-10 21:18:35 -07:00
Kurt
bf7cd278cc Refactoring
Refactoring complete (for now).
2015-03-10 18:44:51 -07:00
Kurt
75100b6dad Cap u16 MaskedTextBoxes at 65535, set = if > 2015-02-26 22:50:27 -08:00
Kurt
ee050c531e Font Flexibility 2015-02-26 21:07:18 -08:00
Kaisonic
277b8674f6 Add ProgressBar to Box Data Report
So it's not completely unresponsive while generating
2015-02-11 17:47:59 -05:00
Kurt
65ba403db4 Improved Resizing 2015-02-08 14:51:53 -08:00
SoujiSeta
64e22d9132 increasing maximum width on Inventory editor to account for mono differences 2015-02-08 13:03:00 -06:00