Commit graph

1734 commits

Author SHA1 Message Date
Kaphotics
0508ad58ed Merge pull request #212 from kwsch/f/clickonce-compile
Added project configuration for ClickOnce deployments
2016-09-17 12:43:32 -07:00
Kaphotics
e359cb911b Merge pull request #191 from kwsch/f/better-error-handling
Improved Error Handling & Minor Translation Refactor
2016-09-17 12:43:18 -07:00
Kaphotics
8fb10ccbdd Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-17 12:21:26 -07:00
Kaphotics
d472a51ce3 9/18/16 - New Update
Changelog, shortcut list, version, and wc6db updated.
Slide in a legality check for super training.
2016-09-17 12:21:23 -07:00
Kaphotics
0b4cc06da2 Update README.md 2016-09-17 08:50:34 -07:00
Kaphotics
af22a1577c Add Batch Editor datetime cases
Thanks AvantGourd !
2016-09-15 20:54:41 -07:00
Kaphotics
37ec68039d Show Gen2 item sprites
Add gen2->4 item translation table,
Recreate the gen3->4 item translation table,
Fix string accessors for items for past gen games, would throw
exceptions for invalid (65535) gen3 items. Use an unused invalid-item
index instead.
2016-09-15 20:25:46 -07:00
Kaphotics
096999ac94 Filter formats for import
1-2 can't be imported 3-6
2016-09-15 19:04:43 -07:00
Kaphotics
6cb27f9410 Fix boxviewer etc methods
Should be the remainder of setPKXBoxes() desync opportunities.
2016-09-15 18:37:40 -07:00
Kaphotics
f962ad6578 Fix boxviewer set/delete update
will update any box viewer with the same box opened.
2016-09-15 18:08:15 -07:00
Kaphotics
00cc249861 Sanity check pk1/pk2 similar to pk3/4/5/6
Refactors code so that the 'validity' check is done by the object not by
the form evaluating properties. Can be expanded upon to mark pk3's
invalid if species is >386 etc; however, it wasn't necessary to do
before for pk6's out-of-bounds.

Thanks theSLAYER!
2016-09-14 22:04:22 -07:00
Kaphotics
e6bf2909a7 Box Slot Count to variable
Closes #270
2016-09-14 09:00:58 -07:00
Kaphotics
9533acd52a Fix boxviewer / main desync
Communicate between forms to notify when a refresh of the sprites is
needed.

Open up boxviewer to box 1, and have Main on box 1. Move pokemon between
in Main, and the boxviewer now is notified and updates. Only updates if
it is viewing the box that was updated, and wasn't a source/dest that
already initiated its own update.

Even works for dragging pkm files in from another PKHeX.exe or file. No
cross-exe communication.

Realistically, this code should never be triggered, but users may have
multiple copies of the same box viewed (why???).
2016-09-13 21:17:07 -07:00
Kaphotics
aadae91b6a Change pk1/pk2 filename for export
Closes #269

Thanks @JHorbach !

Didn't feel like modifying CalculateChecksum as it may be misleading;
it's only used for creating a FileName, so only use it in FileName.
2016-09-13 20:24:50 -07:00
Kaphotics
e2a6eabd3b Fix gen3 ability 77->76
As per bulbapedia
http://bulbapedia.bulbagarden.net/wiki/Ability

Air Lock was 77 in gen3, but moved to 76 (76 was unused in gen3). Since
only Ability Number 0/1 is stored in a pk3, we can just manually modify
the Personal Entry.

Thanks Delta Blast Burn!
2016-09-12 18:29:31 -07:00
Kaphotics
5f39118b8a General/Storage block detect separation
sav1storage = uninit
sav0storage = init

sav1general = uninit
sav0general = init

both states are possible (and inverse possible). So we check all 4
states. Split the method.
2016-09-12 18:10:42 -07:00
Kaphotics
5368e449d8 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-12 18:01:29 -07:00
Kaphotics
11709253cf Fix uninitialized g4 save loading
Gen4 sets to sav1 (not sav0) when the game is first started, leaving
sav0 uninitialized (0xFF'd).

SaveUtil.cs:
When checking the save, check both sav0 and sav1 for the footer bytes.

SAV4:
When checking for the active blocks, check for this uninitialization
(and return appropriately).
Also fixed the map position offsets (didn't point to sav0/sav1, were
static to sav0).
Minor comment fix (end+=4 to range to match the Take length).
2016-09-12 18:01:26 -07:00
Kaphotics
a16eeb1f3f Merge pull request #266 from julroy67/master
Fix file path case (Linux is case sensitive)
2016-09-12 09:13:40 -07:00
Julien Humbert
22d9bbbd63 Fix file path case (Linux is case sensitive) 2016-09-12 11:07:40 +02:00
Evan Dixon
c25432b862 Merge branch 'master' 2016-09-11 21:51:55 -05:00
Evan Dixon
b590a3497b Merge branch 'master' 2016-09-11 21:49:20 -05:00
Kaphotics
74dd6012d1 Hide Tab_Other smarter
Hide it if daycare isn't documented.
Also, fix drag&drop cursor feedback for non-box slots. Previously,
initiating a d&d on a party slot would reset the drag cursor to the
default (arrow + square) instead of keeping the sprite-cursor.
GiveFeedback -> UseDefaultCursors = false :)
2016-09-11 18:57:12 -07:00
Michael Scire
a2fb6bdfa8 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-11 16:22:23 -07:00
Michael Scire
efc66fd0b3 Fix Mr. Mime/Farfetch'd Gen I/II name bugs 2016-09-11 16:22:05 -07:00
Kaphotics
822b8f2148 Add userprefs to gitignore 2016-09-11 15:19:38 -07:00
Kaphotics
315a2c1a5f Delete userprefs again 2016-09-11 15:18:43 -07:00
Kaphotics
7c4615a51e Delete userprefs 2016-09-11 15:18:06 -07:00
Kaphotics
d3188b51b8 Merge pull request #260 from ajtudela/master
Full translation for spanish language except C-Gear Skin. I don't know why it didn't have translated..
2016-09-11 15:16:42 -07:00
Kaphotics
f753816cb7 Fix gen2 met location
Wasn't being loaded, the last loaded save file locations persisted. Load
gen2 locations when loading a gen2 save file.
Closes #262
2016-09-11 15:14:42 -07:00
Kaphotics
984292c810 Cap gen3 item count @ 99
Closes #264
2016-09-11 14:58:19 -07:00
Kaphotics
418fbb7e22 Fix GenIII save cloning bug
Just write the save back when cloning; previously, the reserved section
wasn't set back.
2016-09-11 14:58:03 -07:00
Michael Scire
0b52c9a208 Fix Gen I/II Save cloning bug 2016-09-11 14:54:20 -07:00
Kaphotics
3d95df6fc6 Translation fixes
Add gen3/2/1 text files to Resources (existing code would fall back to
english).

L_Form is autosized now; the combobox may stick out on the right for
other languages -- the combobox shouldn't be made smaller just because
the form label is too big.

Closes #259

Sneaks in typo fix in ShowdownSet
2016-09-11 13:02:56 -07:00
Kaphotics
50b4ebc4ba Catch & Rethrow getFieldsfromPKM
Initialization variable is captured, reset, then the pkm is loaded. If
an exception is thrown, the initialization state is not restored.
There's other capture-reset-restore cases but pkm loading is the only
one exposed to bad input.

Should prevent #261 from happening. fieldsInitialized is checked in a
bunch of events.
2016-09-11 12:52:28 -07:00
ajtudela
1d0d2b8d32 Full translation for spanish language except C-Gear Skin. I don't know why it didn't have translated.. 2016-09-11 13:53:37 +02:00
ajtudela
b02e216255 Merge pull request #7 from kwsch/master
Update
2016-09-11 11:40:41 +02:00
Kaphotics
f7afb88052 Fix gen3 inventory bugs
Thanks @sora10pls !

Premier Ball already in Balls pocket (remove from General Items list)
Hide [Give All] button in Gen3, same treatment as Gen1/2.

Closes #257
2016-09-10 23:14:52 -07:00
Kaphotics
9bd5ad0694 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-09-10 23:12:30 -07:00
Kaphotics
a6f688b3ff Fix gen3 ability dupe
Thanks @ricksee !
Gen3 second ability for same-ability mons is stored as 0, same deal for
gen4.
MainPK4 alteration is an unneeded-code removal, gen4 only has abil0&1,
not 2 (hidden) like gen5.
Closes #256
2016-09-10 23:12:22 -07:00
Kaphotics
149bd08747 Merge pull request #258 from easyworld/master
Chinese translations for Gen 1-3
2016-09-10 20:32:19 -07:00
easyworld
946a475e68 Chinese translations for Gen 1-3 2016-09-11 11:15:50 +08:00
Easy World
c2889636d6 Merge pull request #9 from kwsch/master
Update
2016-09-11 09:11:08 +08:00
Kaphotics
0a1fc199ba Remove DVs label, readonly->enable IV
We're gonna call them IVs for gen1/2 because this is {CURRENT YEAR}.
Too much of a hassle to have multiple controls hidden just for
generation specific nomenclature differences.

Change the Readonly for HP & SpD to Enabled (and flip bool states); mask
now appears to enforce non-centering, no need to pad with 0 to fake that
it's centered.

Closes #255, 8 bits down.
2016-09-10 17:14:25 -07:00
Kaphotics
cd0f04eadd Fix IV/DV label gen2
#240

Gen3 onward = IV
Gen1/2 = DV
2016-09-10 14:43:51 -07:00
Kaphotics
da8a538c73 Mono fix getLocationList
Fix verified in #229 , still other mono related issues to sort out.
2016-09-10 14:31:03 -07:00
Kaphotics
346745d618 Implement past gen strings for 'es' lang
Added fallback method to grab the english file if the requested language
file does not exist.
2016-09-10 14:30:07 -07:00
Kaphotics
693dc091a7 Merge pull request #250 from ajtudela/master
Spanish translations for Gen 1-3
2016-09-10 13:40:41 -07:00
Kaphotics
191debe520 Minor qol improvements
Closes #251 -- remaining stuff pending a future localization update

#240 -- DVs now shown instead of IVs

Hides Box tab for saves that do not have Box (ORAS Demo)
Hides Daycare Egg Available for gen 1 (use correct return type)
2016-09-10 13:40:03 -07:00
ajtudela
c3b7601adf Spanish translations for Gen 1-3 2016-09-10 16:14:34 +02:00