Commit graph

6257 commits

Author SHA1 Message Date
Kaphotics
c544a2e16d Refactoring
Redefine/move logic for maintainability.
2016-10-11 19:11:24 -07:00
Kaphotics
74c817ffe3 Fix pt encounter type vis on load
Thanks Ammako!
2016-10-11 07:45:36 -07:00
Evan Dixon
ab413b4ddc Fixed file size being altered when loading a dsv save (#316) 2016-10-11 07:44:28 -07:00
Kaphotics
43c036641d Use MaxCount when storing items
Rewritten, HaX can now bypass this limit (still constrained for
overflow)

Closes #314 , thanks @Ninjistix !
2016-10-09 18:38:04 -07:00
Kaphotics
e9859a7b03 Simplify BigEndian io
Use BigEndian class now that it exists, instead of operating off little
endian and specifying swaps.

leads to less method calls and more obvious means
2016-10-09 17:41:44 -07:00
Kaphotics
50fd543012 Store level regardless of gen
Change focused to visible as Level/EXP are in the same tab.
2016-10-09 16:59:55 -07:00
Michael Scire
241b367c0b Fix Gen1/Gen2 Level loading (closes #312) 2016-10-09 16:39:31 -07:00
Kaphotics
f9a72abb4c Increase gen3 sav loading stability
reject if game has only been saved once, the trainer block is
inexplicably not set up to be able to be detected.

#305
Old code would default to RS (reading from any uninitialized 'block0'
yielded 0, gamecode for RS.

#305
2016-10-05 21:25:36 -07:00
Evan Dixon
95ca86033a F/general refactor (#308)
* Set text_ItemsG2_en build action to None

* Publically expose static MysteryGift functions

* Add more pre-defined string lists in Util
2016-10-05 21:06:24 -07:00
Kaphotics
fcb205ca82 Fix mystery gift extension suggest
Generate in the abstract class based off of the class name, no need to
define it in the individual classes.
Closes  #307

Thanks @sora10pls !
2016-10-04 17:50:15 -07:00
Michael Scire
f58515cc2c Fix Held Item Check for Colo/XD 2016-10-03 22:35:33 -07:00
Michael Scire
05cbad4377 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-10-03 22:24:26 -07:00
Michael Scire
337f58504e Fix Gen II Held Item bug, Gen II JP<->EN bugs, many Gen I<->Gen II conversion bugs. 2016-10-03 22:24:03 -07:00
Kaphotics
54980483b4 Fix gen3 once-saved saves
The uninitialized half of the save was tripping everything up. The
getIsG3SAV now checks both save partitions for validity. The constructor
now checks both save partitions to see if the 0th block is present when
determining the active save file.

Closes #304 , thanks @Ninjistix
2016-10-03 21:57:50 -07:00
Kaphotics
10fbcfcd74 Disable clickgender for gen2 saves
Also clear RedoStack on set/delete
2016-10-03 21:41:59 -07:00
Kaphotics
41bc841eaa Tweak pokepuff GiveAll
GiveAll now gives the varied all assortment, but the CTRL gives the +10
puffs only (since +6 sucks)

Thanks @diegofg10 !
2016-10-03 19:48:13 -07:00
Kaphotics
031d7d78b1 Add Undo/Redo for box slots
Closes #301

Reset undo/redo stack when a new save is loaded, juggle undo&redo when
reverting changes.
2016-10-03 19:27:48 -07:00
Kaphotics
4eeb90dd87 Fix mega form showdown set
Cosmetic text regurgitating
replace Mega Y->Mega-Y
old method would forget the leading hyphen
2016-10-03 19:24:46 -07:00
Kaphotics
f2ee9492e6 Fix GC export & XD ribbons
ribbons are big endian bools, invert bits
2016-10-02 19:50:38 -07:00
Michael Scire
0266fd1eb7 View current box instead of Box 1 on load (closes #294) 2016-10-02 16:48:12 -07:00
Kaphotics
4ce29b392d Add C/XD transferring
reflection is neat

when making c/xd format, recalculate stats
2016-10-02 10:18:31 -07:00
Kaphotics
503452e1c6 Add encrypted format dragout from box
Same as the preview sprite.

Fixes bug with RS Box dragging out 84 bytes instead of 80 (yay for 4
metadata bytes, not worth another PKM class)
2016-10-02 10:16:47 -07:00
Kaphotics
fe34ed6091 C/XD met locations & items
Fix set/delete party too, the games don't store PartyCount as far as I
know, so just manually generate the value.
2016-10-01 21:43:23 -07:00
Kaphotics
78cb0d87fa ShadowID/Heart Gauge editing
improve box sorting while we're at it (sort forms too)
2016-10-01 16:52:29 -07:00
Kaphotics
7b6ecd11ba Add strategy memo editing
Saves folder getting pretty populated, move to substructures
2016-09-30 19:05:35 -07:00
Kaphotics
97919a5354 Allow filtering by all properties
Even private

Closes #298
2016-09-30 15:12:58 -07:00
Kaphotics
3689597e1f Speed up reflection property checks 2016-09-30 15:12:23 -07:00
Kaphotics
edcb13e3b4 Save user settings
Closes #291

The following settings are saved:
Language, lastRunVersion, Unicode, SetDex, SetPKM

Appending a 2char language ID to the exe name no longer needed.

Changelog will be shown if an updated program is detected. First run
will not alert.

Fixes unintended Program Text clearing (PKHeX - Save name etc) when the
language is changed. Store, translate, restore.
2016-09-29 22:41:35 -07:00
Kaphotics
4784291ef8 Invert changelog
most recent changes are now at the top

#291
2016-09-29 22:10:45 -07:00
Kaphotics
ca6851061a Fix keldeo array accessor
if it doesn't have move it returns -1, bump to 0

thanks sciresm
2016-09-29 20:17:37 -07:00
Kaphotics
60cb2888f6 Keldeo Secret Sword, flag specific move, not 0.
Thanks @Nessus009 !

Closes #293
2016-09-29 19:52:07 -07:00
Kaphotics
f1a504e676 Misc CXD improvements, exporting/reading fixes
Add XD checksum fixing/checking, now implemented
Fix XD xk3 r/w sizes. Was using colo size
Fix XD xk3 filename checksum. getCHK does checksum over 8-232, XD is too
short. just use ccitt16 for the random identification piece of both
xk3's and ck3's.
2016-09-28 18:32:20 -07:00
Michael Scire
6d025833ca Better Items in illegal mode (thanks anon) 2016-09-27 23:53:53 -07:00
Kaphotics
10c45e06b9 Fix nickname checked for first pkm loaded
Language combobox isn't set, so the nickname detection thinks the 'none'
language'd pkm nickname does not match the supplied nickname. Disable
this check until fields are loaded.
2016-09-27 22:43:03 -07:00
Kaphotics
14818ca9e2 Fix block pointer
Doesn't fix any bugs as this code will never be hit (safeguard)
2016-09-27 22:42:13 -07:00
Kaphotics
97d35be553 Misc CXD improvements
item editing, party viewing for xd

still a bit more to go
2016-09-27 20:15:31 -07:00
Kaphotics
12dbbf9745 Update XD support
Still not fully implemented; can now load boxes and misc data.
2016-09-26 23:07:17 -07:00
Kaphotics
7440df66de Refactoring
Use bigendian class for pbr, misc nonfunctional-related changes
2016-09-26 16:43:52 -07:00
Kaphotics
3eedb7ffa7 Merge branch 'master' of https://github.com/kwsch/PKHeX
# Conflicts:
#	PKHeX/Saves/SaveUtil.cs
2016-09-26 16:18:10 -07:00
Kaphotics
05000b7697 Sync current Colo/XD implementation
Not working yet, need to pull in PBR support
2016-09-26 16:15:40 -07:00
SciresM
33b0dc587d PBR support (#290)
* Initial (still buggy) PBR commit

* Basic save slot support
2016-09-26 16:14:11 -07:00
Kaphotics
3114c658d9 Fix EV cap to 255, not 252 for gen3 2016-09-25 13:42:03 -07:00
Kaphotics
52cadac99f Fix gen3 ribbon reading (Smart/Tough)
Thanks mariosmentor!
2016-09-23 21:16:57 -07:00
Kaphotics
3bb2970d68 Relocate header/footer checks 2016-09-23 18:47:03 -07:00
Kaphotics
c76aa1d5d8 Fix gen5 party count offset
Dunno what the first 06 is for, but shift the offset by 0x4.
2016-09-23 15:13:36 -07:00
Kaphotics
ff2e8525f7 Remove desync disclaimer 2016-09-22 22:15:07 -07:00
Kaphotics
c8f14fbd3d Fix verifychk for gen1
Thanks bokepall !
2016-09-21 21:08:09 -07:00
Kaphotics
0c818ed23a Fix TM50 not a valid item
Thanks bokepall !
2016-09-21 21:04:44 -07:00
Kaphotics
4c87e82739 Fix active save detection gen4
Thanks msbhvn !
Was comparing checksums, should have been comparing the counters.
2016-09-21 09:03:47 -07:00
Kaphotics
d032adab7c Fix savtools visibility
Form not yet shown -> all buttons not evaluated as visible, even if set
to Visible. Set Enabled instead, then toggle visibility.

Thanks Odaxis!
2016-09-21 08:34:06 -07:00