Commit graph

2507 commits

Author SHA1 Message Date
Kurt
ec6d5fe895 add relearn suggestion for static/etc 2016-12-30 12:54:52 -08:00
Kurt
5c913ce1d5 Add Record editing
Closes #603
2016-12-30 00:30:54 -08:00
Kurt
696398fd5d Add skin color editing
Thanks Holla!
2016-12-29 22:15:25 -08:00
Kaphotics
dcb3745cc1 Merge pull request #679 from kwsch/r/better-database-init
More database speed improvements
2016-12-29 19:32:46 -08:00
Evan Dixon
70b6e98b2f More database speed improvements
Extending 8b274ddbc3

Changes and their reasoning:
- Used a concurrent bag inside Parallel.ForEach to avoid the overhead of lock.
- Removed `RawDB.Where(pk => pk != null)` because the Parallel.ForEach lambda handles this check
- Because LINQ extension methods' execution is deferred, it's best to wait to create a list until it's needed, so the extension methods were changed together without creating intermediate lists.
2016-12-29 20:11:51 -06:00
Kurt
fe26b5d8a1 Add starter event constant
[1D28] Thanks Holla!
+misc nonfunctional changes to control names
2016-12-29 16:24:01 -08:00
Kurt
ce40ae73d2 Add Pelago slot info
Randomized levels => store as encounter area
Range 10-55, this is unverified but based on limited data gathered.
It's possible that some species have narrower ranges.

Closes #590
2016-12-29 15:57:32 -08:00
Kurt
ba51e85561 Visual tweak
row height +1 to match autosized height (row border line takes one
pixel)
2016-12-29 15:55:42 -08:00
Kurt
8b274ddbc3 Database speed improvements
Use parallel threading for loading pkm files, speeds up form open time.
allow empty string filtering like in the Batch Editor
2016-12-29 15:24:02 -08:00
Kurt
d81cf50f99 Simplify hex seed editing
Undo is nifty, no need to have 3 separate methods when the underlying
function is the same.
2016-12-28 14:35:14 -08:00
Kurt
c99ed5ead2 Data Report Form speed / functionality improvements
Bottleneck was autosizing rows/columns:
- remove column autosizing after initial population.
- remove row autosizing completely, resize manually on pop & sort.

Added column hide/restore to customize the data displayed.
Closes #675
2016-12-28 11:31:32 -08:00
Kurt
a4fbb7e0dd Fix header interaction on savefile clone
Probably should refactor this so all saves are handled the same way
(header & footer checks)

Closes #496
2016-12-27 15:05:06 -08:00
Kurt
2261a46670 Block loadBoxes from locked slots
missed one!
2016-12-27 08:21:39 -08:00
Kurt
424ad65d4f Fix dex species dropdown
now constrained to the real maximum species ID
2016-12-27 08:17:25 -08:00
Kurt
e51daa3a4b Add missing validity setters
Game checks for these region codes, if missing they won't appear in
party/box. just set to an arbitrary value
2016-12-26 21:26:45 -08:00
Kurt
53f8abc26c Check destination validity
locked slot would throw exception
2016-12-26 18:22:45 -08:00
Kurt
4041f56519 Update fashion payloads
Huge thanks to Holla! for figuring out what was causing the issue with
the existing code/payload.

https://projectpokemon.org/forums/forums/topic/39433-sun-moon-stat-records/#comment-206504

Closes #493
2016-12-26 17:37:41 -08:00
Kurt
750044ea31 Improve slot lock detection
Uses sm lock indication (same placement), now only appears for teams
that are locked
slots that are not locked but assigned to a team are now indicated as
such, no prevention / moving to adjust team values is done.
#661
2016-12-26 16:41:12 -08:00
Kurt
93cc7472da Tweak setNEW behavior
added checkbox in inventory editor to setNEW
inventory class setNEW is unused by form but available for anyone
reusing code
closes #670 as it fixes the root behavior issue
2016-12-26 13:57:54 -08:00
Kurt
b41aacc5a1 Remove parenthesis pk2 forme filename 2016-12-26 10:01:18 -08:00
Kaphotics
437208cc55 Merge pull request #671 from ReignOfComputer/master
Remove extra bracket in filename when exporting form
2016-12-26 09:59:59 -08:00
ReignOfComputer
a5d0ab0fa6 Remove extra bracket in filename when exporting form 2016-12-26 17:49:53 +08:00
Kurt
a7a97fe084 Add greninja form handling
#666
2016-12-24 15:50:26 -08:00
Kurt
67838e4643 Fix item transferral
Instead of just copying the value, get the corresponding transferred
value (and sanity check; the getG4Item returns 0x80 if held item does
not correspond to a sprite).
Closes #665
2016-12-23 17:28:39 -08:00
Kurt
a6e84f5aa9 Adjust forme export edge cases
Showdown handles these formes their own way. Match their format when
exporting formes.
Closes #666
2016-12-23 15:37:56 -08:00
Kurt
2da2af5ac7 Add clone deletion
Clone search/deletion func moved out of search method so it can be used
by both search&delete.
2016-12-23 14:12:58 -08:00
Kurt
3aac201ef3 Add clone search option
Disabled by default
users should tweak the hash func if they want to detect clones another
way
sure there's probably a faster way to do this, but for 5k it searches in
~5ms on my 4x4GHz machine, fast enough.
2016-12-23 13:37:53 -08:00
Kurt
00e0e69dd8 Fix showdown export generation specific forms
Adds the optional argument (default 6, not 7).
Closes #664
2016-12-23 09:37:15 -08:00
Kurt
48d6ea9f93 Fix database delete for savefile origin 2016-12-23 09:30:38 -08:00
Kurt
4941858f8a Add Gen2 gender changing
randomize attack IV until gender flips
Closes #659
2016-12-22 22:46:57 -08:00
Kurt
61dd99feef Set current stat level on drag&drop to party
Other battle stats (HP/Atk...) are already set, this is the only one
that is not set. The other setPartySlot call is for the main tabs
editing, which sets the stat level & battle stats at the end of the
specific method.

Closes #663
2016-12-22 22:03:32 -08:00
Kurt
9b4ab99d4f Add missing break for 3->4 conversion
Closes #662
2016-12-22 21:42:50 -08:00
Kurt
284ea120b1 Fix unused legality check (3/4/5th gen only)
Thanks Sabresite!
2016-12-22 18:18:35 -08:00
Kurt
69e9192484 Filter memory options
Constrain to 721 (Volcanion) for gen6 species
Constrain to 622 (Hyperspace Fury) for moves
Closes #660
2016-12-22 11:49:26 -08:00
Kurt
2c395d3634 Fix gender symbol setting
if nidoran is not nicknamed, it will use full width if it's not named
Nidoran.
if anything else is nicknamed, it will check to see if any
non-latin/special characters are used to determine if half width should
be set.

possibly applies to gen4/5, if so, please open an issue/post on forums.
2016-12-22 11:33:29 -08:00
Kurt
1c335c9389 Add missing gender symbols (jpn)
No idea how these dropped off...
2016-12-22 11:30:14 -08:00
Kurt
1de5315f64 Extend recent pr to gen6 editor
#658 same format
citra versions have year @ 1900 which is below 1932; min value year is
zero which is caught by the value validity check.
rename 2 labels that were unnamed.
2016-12-21 13:57:38 -08:00
Kaphotics
a9e0a881cf Merge pull request #658 from kwsch/b/gen7-dates
Fix Gen 7 Dates
2016-12-21 13:44:33 -08:00
Evan Dixon
95843378d2 Extended HOF and AdventureStart MinDate
Not tested with a real save, but if the seconds data structure used to populate the data is in fact signed, the year should be valid.
2016-12-21 08:46:21 -06:00
Evan Dixon
7c69682422 Refactored LastSavedDate
Makes usage a little cleaner IMO and fixes a bug opening the Trainer Editor with the default blank save
2016-12-21 08:45:22 -06:00
Kurt
e308f51177 Fix null ref tostring
empty text string in value, simple null check prevents null.ToString()
and just results in null => returns 0.
2016-12-21 00:24:33 -08:00
Kurt
9fdee96e38 Update 16.12.21
No need to have two seemingly duplicate urls at the top; old PKHeX url
was the thread link which now has a special redirect URL as listed.
2016-12-20 18:19:23 -08:00
Kurt
31b5e63222 Fix HT trade logic
TradeFriendshipAffection never triggered as TradeHT sets the HT_Name
just move the modification within the TradeHT method.
2016-12-20 17:54:48 -08:00
Kaphotics
3fe7d31183 Update readme GNU/Linux section
Revise description to use flatpak instead of Aptitude.
Discussed in #387, closes #387.
2016-12-20 17:31:20 -08:00
Kurt
6003c2b71a Misc gen2 upgrades
Filename & random shiny IVs
Closes #534
2016-12-20 17:24:41 -08:00
Kurt
67667f9778 Revert "Add Intro Time"
This reverts commit c73d8fcf39.
2016-12-20 13:42:31 -08:00
Kurt
c73d8fcf39 Add Intro Time
time offset == Intro Time is how the game freezes to the version
specific (day/night) time
2016-12-20 12:33:47 -08:00
Kurt
ab64ce4f13 Revise evolution check description
Now doesn't explicitly say the level is below evolution requirements,
just says that there's no possible way it was evolved to its current
state.
Closes #634
2016-12-20 09:27:19 -08:00
Kurt
1899e4e11e Fix file loading exception
Closes #653
2016-12-20 09:22:15 -08:00
Kurt
26986ff22b add gen2 unofficial vc size 2016-12-19 11:47:24 -08:00