Commit graph

9325 commits

Author SHA1 Message Date
Kaphotics
af553adf2f Fix pgf import
while loop hung, fix comparators
Thanks Odaxis!
2016-10-22 20:04:59 -07:00
Kaphotics
58981dcaab Add unown form editing gen2
Also add in some sun/moon form info (may not trigger)
Passing eventargs feels janky but works.

Should resolve query in #334
2016-10-22 10:38:33 -07:00
Kaphotics
897e05800e Fix gen2 unown exception
Closes #334 , thanks @Ninjistix !
2016-10-22 09:16:08 -07:00
Kaphotics
cdd82be704 Fix arceus form 4->5
Form needs to be reset when removing the held plate
2016-10-21 21:55:26 -07:00
Easy World
d053be9d5b Update official translation (#335)
* update offcial name

* fix some text mistake

* Update official translation

based on the pokemon sun and moon special demo version

* update official translation
2016-10-21 08:21:43 -07:00
Kaphotics
9553975801 Add new pk7 ribbons
includes sprites
temp names for now
2016-10-20 19:29:02 -07:00
Kaphotics
a614947e3a Misc pkm structure updates
4 new ribbon flags later, just updating based off code RE.
2016-10-20 01:26:47 -07:00
Kaphotics
09018e81d5 Merge branch 'master' of https://github.com/kwsch/PKHeX 2016-10-19 18:19:04 -07:00
Kaphotics
68b5e65139 Initial Sun/Moon Support
Loads the save file, still not finished.
2016-10-19 18:19:01 -07:00
Easy World
8ee56807ba Update offcial item names (#332)
* update offcial name

* fix some text mistake
2016-10-19 17:49:41 -07:00
Evan Dixon
adf7f5529a B/detect save null reference (#333)
* Fixed null reference exception in certain cases in save auto-loading

* Fixed form close warning showing with no changes made since start

* Fixed abort button in ErrorWindow

* Simplified implementation
2016-10-19 17:47:43 -07:00
Evan Dixon
475aad5480 Added warning when closing PKHeX with unsaved changes (#327)
* Added warning when closing PKHeX with unsaved changes

* Changed to MessageBox.Show to Util.Prompt
2016-10-18 10:44:36 -07:00
Evan Dixon
0b7d108245 Added "All Files" to save filters (#323) 2016-10-17 07:49:40 -07:00
Kaphotics
ed2f6f238f Fix 12char HoF nickname length
Thanks Holla!

Totally not worth refactoring into a get/set class
2016-10-15 21:38:42 -07:00
Kaphotics
a36eca40e6 Update shortcut listing 2016-10-15 21:28:36 -07:00
Kaphotics
283ee64e4f Convert battle video interaction to class obj
Makes it easier for gen7 battle videos; none of this info is new (comes
from pkBV).
2016-10-15 21:28:14 -07:00
Kaphotics
bc9893415b Refactoring
Simplify HeldItem / SpriteItem
Egg Nicknaming user automation added (checks nicknamed & adds egg if
isEgg ticked)
Remove some unnecessary data caching
Allow QR codes for games NDS+ (for program use only, no QR browser
exploit works
2016-10-11 22:59:19 -07:00
Kaphotics
bae964dfc4 Explicitly set checksums
Closes #319
Thanks @ninjistix !

'Bug' happened due to pk3 not calling refreshchecksum when set back to
save or something. Pretty sure this fixes batch edited files too.
2016-10-11 19:23:04 -07:00
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