Commit graph

8770 commits

Author SHA1 Message Date
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
ajtudela
4db179f6d6 Merge pull request #6 from kwsch/master
Update
2016-09-10 16:06:11 +02:00
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