Commit graph

345 commits

Author SHA1 Message Date
Kurt
3cf58aa010 Refactor (clean) shuffle method 2015-10-04 16:37:34 -07:00
Kurt
08969a979c Remove duplicate PK6 class
Has been redefined elsewhere and this instance was never used.
2015-10-03 08:01:48 -07:00
Kurt
2f38ceabab Fix trash & writing too much
OT names can have trash (eggs)

clearing HT by writing 12 would add another (to 13), so down to 11.
2015-09-29 07:44:13 -07:00
Kurt
076a8b369d Memory Editor uses pk6 object & bugfixes
Eggs cannot have memories, and have all edits disabled.
When a pk6 is saved, memories will be cleared if they should not be
present.

Fixed empty regions showing up with data
Fixed not being able to edit the first georegion for an untraded Pokemon

All lock-outs for editing should be correct now.
2015-09-28 21:11:03 -07:00
Kurt
f84f630a0d Fixed Party Stat writing and move cascade
'pkx' array was dummied out, resulting in the pk6 data not receiving the
party stats for writing.

Old bug: Having a Moveset with 1--4 (gap of two) would only remove one
of the blank move slots. Added method in the PK6 class for the (now
correct) fix-code; other fixes that are done when saving are now done in
separate methods as well.
2015-09-27 19:56:17 -07:00
Kurt
714dcf0489 Bitflag fixes 2015-09-24 19:48:55 -07:00
Kurt
4651781d87 Refresh current HP 2015-09-24 00:01:33 -07:00
Kurt
cced16dff4 Tidy up splash screen code
Clearer to just have a spinning thread instead of a timer.
2015-09-24 00:01:15 -07:00
Kurt
578aeb66b0 Fix stackoverflow
Yay recursion
2015-09-23 23:12:30 -07:00
Kurt
f331fb95c9 Minor refactoring
Moved QR text generation and tweaked a few property generations.
2015-09-23 23:02:26 -07:00
Kurt
67aa4753d6 Remove 1MB native support
Finally rid of this monster.

There still exists a bug when loading the pk6 data to tabs; still need
to fix that before it's stable.
2015-09-23 22:45:44 -07:00
Kurt
5b3623caa5 Remove use of Regex 2015-09-23 22:44:15 -07:00
Kurt
1879bdf4e3 Bitflag and usage fixes 2015-09-23 22:21:53 -07:00
Kurt
809148ed54 Refactoring round two
Introduced the fully editable PK6 class object, which is now used by
PKHeX's pk6 editor, as well as updated the Box Data Report. Readability
should be increased as no

Includes bug fixes:
Odaxis' report regarding Event Flag Editor
Showdown sets using "Trait" instead of "Ability" (old old style) now can
be read.
Imported showdown sets will not use the imported gender label (instead
uses the current style, same 'value')
2015-09-23 20:29:31 -07:00
Kurt
d4ea56cfd6 Heavy refactoring
Remove numerous inter-form dependencies, remove hard-coded offsets,
update a few spots to use better programming practices.

Should increase the readability of PKHeX's source code.
2015-09-20 20:34:09 -07:00
Kurt
9e64212a33 Revert e8b7b14 Commit
Needs to trim at the first index of a null terminator; not all empty
characters at the end.

Revenge of the Trash Bytes 😆
2015-09-18 16:33:37 -07:00
Kurt
f45ff5125c Fix Hidden Power Argument Usage
getHPType's input order needed to be updated -- the form usage was
changed via the characteristic fix commit.
2015-09-07 13:02:18 -07:00
Kurt
84586f2da9 Fix untrimmed showdown set 2015-09-04 18:50:14 -07:00
Kurt
e8b7b14efa Simplify \0 trimming 2015-08-08 21:44:52 -07:00
Kurt
22c63b4662 Use existing getSprite method
I thought I caught all these duplicate sprite fetch methods...
2015-08-06 20:50:26 -07:00
Kurt
6e9afc032e Undo https switch; the used apis don't use it
They worked just fine previously, just reverting.
2015-07-26 10:02:30 -07:00
Kurt
8dfa356a77 Fix form/nickname detection
Check for the form name in the inversion check
2015-07-21 18:17:10 -07:00
Spanti Nicola (RyDroid)
d656058524 Minor changes 2015-07-21 00:52:11 +02:00
Kurt
04229d1b9a Tweak set detection, added lineskip 2015-07-02 17:15:56 -07:00
Kurt
c1005945fd Sanitize apostrophes
King's Shield, King's Rock, Farfetch'd are notable examples of Showdown
strings differing from game default strings.
2015-06-13 00:30:45 -07:00
Kurt
bbf43d7e34 Refactoring and Showdown Bug Fix
Thanks Odaxis for reporting the Showdown import edge case with Mr. Mime!
2015-04-28 07:39:50 -07:00
Kurt
6b841cce2b Showdown import allow inverted nicknames
Thanks Favna for the edge case; simple implementation.
2015-04-16 23:03:01 -07:00
Kurt
a003db55b4 Import sets without items
Thanks Favna for bringing this to my attention!
http://projectpokemon.org/forums/showthread.php?45955
2015-04-14 17:50:16 -07:00
Kurt
8f2bc04a82 Fix hidden power string detection 2015-04-01 17:20:09 -07:00
Kurt
1aa77e2c9b Set Import Fixes & Trash Byte Fix
Set will now import gender and set nickname properly, also will now
import Showdown's stat descriptions.

Latest OT will now write only enough bytes and won't overwrite any
previous names, leading to trash bytes. Fun.
2015-03-18 20:45:06 -07:00
Kurt
0839f1b43c Finish implementing Showdown/Smogon paste importing
Some other minor tweaks to smooth the code.
2015-03-16 19:25:59 -07:00
Kurt
b906491d2f Refactoring, QR operations -> method 2015-03-13 19:59:51 -07:00
Kurt
b56edf1fec Continued Refactoring
Should be good now, a lot of silly stuff removed.
2015-03-11 21:44:12 -07:00
Kurt
68687a2bb3 Implement ORAS Save Trainer Data loading 2015-03-10 22:32:23 -07:00
Kurt
bf7cd278cc Refactoring
Refactoring complete (for now).
2015-03-10 18:44:51 -07:00
Kurt
8b3b7ba29b Refactoring 2015-03-09 23:37:40 -07:00
Kurt
1ff60e7231 Click Hidden Power Type to change
Hold Control to go backwards in the list.
2015-03-03 18:57:08 -08:00
SciresM
4fafaaf1f3 Add another set of magics for pokemon x/y
Some PAL games have a different set of magics
2015-03-01 11:26:22 -08:00
Kurt
f8957a0b22 Add missing encounter types
Rock Smash, Distortion World, regular Starter/Gift/Fossil; should match
PokeGen's choices.

Rock Smash is HGSS exclusive; added identifiers to the other version
specific choices.
2015-02-26 22:39:52 -08:00
Kurt
ee050c531e Font Flexibility 2015-02-26 21:07:18 -08:00
Kurt
88060d0b7d QR Cleanup tweaks 2015-02-26 17:22:53 -08:00
Kurt
bba50f62e6 Removing unused code
Yay for workarounds being less code intensive than first thought.

Internet method is easier than doing it in the program; user needs
internet on their 3DS to scan QRs anyway.
2015-02-25 23:16:31 -08:00
Kurt
b9b553a0e9 Add QR functionality via Web (Google) 2015-02-25 23:12:38 -08:00
Kurt
d7414f8a01 Switched up QR Generation, change Number Padding
should be a little bit more reliable; old method via Control
2015-02-25 20:19:43 -08:00
Kurt
3ea597956e Improved QR generation 2015-02-24 23:19:00 -08:00
Kurt
84b53ad843 Finish QR Gen implementation 2015-02-24 20:42:05 -08:00
Kurt
042671f193 Add appropriate attribution for QR Code Image Gen 2015-02-24 20:15:49 -08:00
Kurt
d856a8c95c QRgen initial (unworking)
Further improvements to overall system stability and other minor
adjustments have been made to enhance the user experience.
2015-02-24 20:10:47 -08:00
Kurt
925293f9d6 Fix Hidden Power recalc
Oops.
2015-02-21 12:59:04 -08:00
Kurt
a0c96bd329 Hidden Power IVs method simplification 2015-02-20 14:24:50 -08:00
Kurt
21a2fe866e Hidden Power Type creation from current IVs 2015-02-19 16:26:01 -08:00
Kurt
8ddf420560 Init set IVs 2015-02-18 23:46:34 -08:00
Kurt
725b66d047 Improving set parser (still untested) 2015-02-16 22:35:06 -08:00
Kurt
e44fa449ea Fixing compile time errors
Thanks VS for not telling me before I commit... my fault for not test
compiling though!
2015-02-15 21:45:39 -08:00
Kurt
c7a32b1e0b Add beginnings of a set parser 2015-02-15 21:39:21 -08:00
Kaisonic
249b06ec5c Add Level to Box Data Report 2015-02-11 17:06:51 -05:00
Kurt
25e71d39a9 Box Data Report Bugfix
3DSRegion and Game Language should now have the correct index text.
2015-02-02 21:51:08 -08:00
Kurt
b1659c9f55 Shedinja Stat Calculation Fix 2015-02-02 20:52:10 -08:00
Kurt
6f516a23d1 Cleaning & Minor Improvements/Additions 2015-01-31 20:40:35 -08:00
Kurt
43b1afec3f Bugfixes 2015-01-31 15:59:23 -08:00
Kurt
1bd0065754 Bugfixing and Loading Status 2015-01-31 10:36:06 -08:00
Kurt
d2ba6eb051 Attempting to fix Font issues 2015-01-30 22:37:38 -08:00
Kurt
2051859d3b Newline Fix part2
Didn't save changes before committing.
2015-01-30 22:32:50 -08:00
Kurt
8f43cf458c Newline Fix
Good going, GitHub.
2015-01-30 20:36:41 -08:00
Kurt
b01dc7dbfc Fix Splash Screen Image from Tiling 2015-01-29 17:32:07 -08:00
SciresM
761d600e2c Fix passerby dumping
Fix instances[]
2015-01-27 22:55:54 -08:00
SciresM
01190cb60c Improve Magic Hunting.
add starting position parameter to FindIndex
2015-01-27 21:22:07 -08:00
SciresM
ff830f6361 Add magics for two unsupported versions of XY.
It works?
2015-01-27 07:26:46 -08:00
SciresM
dea9797b55 Update ram2sav.cs
fix skips
2015-01-26 22:30:39 -08:00
Kurt
7c40b00b54 ram2sav pre commit 2015-01-26 22:05:04 -08:00
SoujiSeta
5e9f6f0839 Fixed issue in which Blue, Red, Yellow flute was removed from Medicine pouch in ORAS. 2015-01-03 13:20:21 -06:00
Kurt
5eaf603c3b Code cleanup
Seems like every time I go through the code I find more of my newb code.
2015-01-02 17:07:29 -08:00
Kurt
3ca644c977 Encounter Type fix
Should now load all.
2014-12-31 14:44:54 -08:00
Kurt
664fc1cf60 SaveDataFiler folder path sorting first
Reported by Slashmolder that sometime windows glitch causes screwy
loading (date related) so we now just sort again just in case - still
backwards iterating.
2014-12-29 21:40:21 -08:00
Kurt
bc1776f8a2 Added verbosity to export and internal arrays
Also finished implementation of PKRS strain/days hiding depending on
infected/cured status.
2014-12-26 10:46:18 -08:00
Kurt
12a022cd38 Relearn moves now show text instead of num 2014-12-25 00:48:03 -08:00
Kurt
a2dd748762 PKX.Structures improving
Added a better defined PK6 struct too.
2014-12-24 16:20:39 -08:00
Kurt
4d53c00668 Code cleanup
Removing the majority of Public usage of methods within the main cs form
2014-12-23 23:29:57 -08:00
Kurt
60b264d9b0 Misc changes
Nonsensical, really.
2014-12-22 22:39:22 -08:00
Kurt
0aa0101573 Improved clarity on EXP calculation loop 2014-12-20 11:27:06 -08:00
Kurt
7d02b4065e Simplification of Translation Method
Removing redundant input.
2014-12-19 20:18:12 -08:00
Kurt
b2100bcd00 Translation fixes 2014-12-18 18:59:30 -08:00
Kurt
0a7fc1b708 PKX lib Code Cleanup 2014-12-17 20:09:14 -08:00
Kurt
f091fa5ca9 Simplifying Code and fixing ball population 2014-12-17 17:04:57 -08:00
SciresM
3289ec640b Actually detect level instead of always returning 100 2014-12-17 11:27:34 -08:00
Kurt
e1c75a9c8a Swap Chinese & Korean locale around. 2014-12-16 19:12:16 -08:00
Kurt
3a251d6b47 12-17-14 release fixes
Items, translations and some bug fixes.
2014-12-16 18:56:08 -08:00
Kurt
567c4100a3 Cleanup for release 2014-12-15 20:08:43 -08:00
Kurt
d3d7b33d8a Multilanguage Upgrades
Nuked Box IO, it was inferior relative to the functions that were added
afterwards.
2014-12-14 16:50:15 -08:00
Kurt
203271fa80 Continued cleanup 2014-12-14 11:06:17 -08:00
Kurt
17f1b6ee68 Further code cleanup 2014-12-14 10:31:53 -08:00
Kurt
64ada71f84 Multilang + Cleanup
Converted the EncounterType and Games to translatable resources, and
created a method for dynamic combo lists. Still more to clean up!
2014-12-13 23:18:27 -08:00
Kurt
6584a10254 Shiny Fix 2014-12-13 20:32:11 -08:00
Kurt
ed36b5a684 Improved item displaying for PKX class
tweaked the main form a little bit for clarity
2014-12-13 20:28:53 -08:00
Kurt
8b0b12a63b Illegal Value error handling 2014-12-13 20:02:09 -08:00
Kurt
94f9379fd6 Improving data display for BoxReport 2014-12-13 19:32:51 -08:00
Kurt
f2682785cc Code Cleanup 2014-12-13 14:48:34 -08:00
Kurt
4413306f25 Update for PKX struct to give CR string
Box Report will now display the strings!
2014-12-13 08:53:57 -08:00
Kurt
608586037f Add getCountryRegionText to lib 2014-12-13 08:24:46 -08:00
Kurt
a39438042b Swap French and German
Thanks Culex for pointing this out.
2014-12-12 23:07:45 -08:00
Kurt
cc6b2aeda1 Adding Country/Subregion Multilanguage
Big thanks to Slashmolder for the location files and SciresM for parsing
them down to text files.
2014-12-12 22:58:34 -08:00
Kurt
7226ca4021 Minor changes
Pretty pointless
2014-12-11 23:15:54 -08:00
Kurt
5a9bdcdcf7 Finish Merge 2014-12-11 23:09:36 -08:00
Kurt
c1fa685752 Manual Merge 2014-12-11 22:36:39 -08:00
Kurt
981965899a Standardization 2014-12-11 21:45:01 -08:00
Kurt
8350141e43 Adding Ingame Font 2014-12-11 20:33:19 -08:00
Kurt
84fd7f4da9 Removing some redundancy 2014-12-10 23:00:25 -08:00
Kurt
a99ddf11bf Round of refactoring and improvements 2014-12-10 22:50:40 -08:00
Kurt
dbdea7b875 Fixed form based stats
Aegislash/Kyurem base stat mixup, and added some more interaction with
form toggling for gendered Pokemon like Meowstic
2014-12-06 11:21:37 -08:00
Kurt
ea8c6d299a Various updates for next version
Added about-shortcuts and fixed a few things including secret base
flags.
2014-12-05 18:14:04 -08:00
Kurt
23f62818c7 Fix verifychk for 136byte pkms 2014-11-30 11:17:32 -08:00
Kurt
b8ca1b11c2 SaveDataFiler detection loop fix
Thank you SoujiSeta for pointing this one out!
2014-11-29 21:29:40 -08:00
Kurt
75e9439c73 Minor improvements 2014-11-29 17:46:48 -08:00
Kurt
835404a560 Minor ~ Tryin' it out 2014-11-28 19:49:08 -08:00
SoujiSeta
3dd47412e7 Merging in changes from upstream.
Updating Util.cs to use the Path.DirectorySeparatorChar member instead of
hard coded backslashes
2014-11-28 18:38:15 -06:00
SoujiSeta
67616abb2e Merge remote-tracking branch 'upstream/master'
Conflicts:
	PKX/f1-Main.cs
2014-11-28 18:36:02 -06:00
SoujiSeta
9c0a8339ef Adding a NormalizePath function to resolve not only Windows path issues but also unix and Windows differences.Replaced the hardcoded windows path separators with Path.DirectorySeparatorChar which contains the correct path separator for the system that the application runs on 2014-11-28 17:46:09 -06:00
Kurt
7326a09e69 More Fixes 2014-11-28 13:18:44 -08:00
Kurt
2832596e44 Continued Fixes and Improvements 2014-11-28 09:56:29 -08:00
Kurt
7290cc7abe Cleanup 2014-11-28 02:14:15 -08:00
Kurt
fc09860490 Added secret base flag ctr edit and relevant fixes 2014-11-28 01:44:43 -08:00
SoujiSeta
e819be16a9 Merge remote-tracking branch 'upstream/master' 2014-11-27 22:08:47 -06:00
Kurt
4a1a7bc26a Autoload improvements and a re-trigger option.
Click the Save path label!
2014-11-27 19:26:42 -08:00
Souji Seta
0b248f3021 * Util.cs: Reducing number of unnecessary UInt32 Parse error under
Mono due to the Underscore character being at the end of strings.
Also consolidated To[U]Int32 code from controls to use string version.

* f1-Main.cs: Fixed issue that is causing by initializing the values
  of the GameOrigin combo box causing the SelectedValue field to be
  queried before it knows it's ValueMember.
2014-11-27 14:15:32 -06:00
Souji Seta
ffe297b895 Fixing some unneccessary exceptions. 2014-11-27 03:26:39 -06:00
Kurt
b48cc758bb Overall Imrpovements 2014-11-24 19:53:10 -08:00
Kurt
d838c11d2d Adding some ORAS content 2014-11-18 22:35:07 -08:00
Kurt
223783fddb ORAS Updates 2014-11-14 21:08:17 -08:00
Kurt
978b0aeafb casting fix 2014-11-04 22:55:44 -08:00
Kurt
f53a2d8479 Bugfixes for EXP & Setting
EXP now uses lookup tables instead of non-programming formulas
Setting a Pokemon will save all combobox changes (if you were scrolling)
2014-10-25 15:52:24 -07:00
Kurt
3240d4e403 More tidying 2014-10-11 00:22:22 -07:00
Kurt
a462db6089 ORAS Reorganization 2014-10-09 19:59:57 -07:00
Kurt
730955c310 Transfer Fix
Table only had gen6 move PP, that's all we need.
2014-09-21 01:37:47 -07:00
Kurt
244273aa22 Utility Consolidation
Moved various functions in.
2014-08-31 13:32:04 -07:00
Kurt
97e0f35b5f Fix for GC games with no ability association 2014-08-21 22:54:14 -07:00
Kurt
f193c280ce Party Data Fixes
Fix for 220 byte party GenV files
Also checksums for 236.
2014-08-14 21:26:33 -07:00
Kurt
043408ade8 Cyber Save Update 2014-08-12 16:37:18 -07:00
Kurt
ba5607baae Minor/Irrelevant change 2014-08-06 17:10:51 -07:00
Kurt
3dd6969db1 Fix for null images 2014-08-06 17:10:01 -07:00
Kurt
c18429009a Friendship/Met Level fix 2014-08-06 17:09:50 -07:00
Kurt
fa35eb0e3b EC Fixes
Loops through particular regions for batch output.
2014-08-04 18:48:03 -07:00
Kurt
1e7e5b0ec2 Changelog + Tidy 2014-08-04 18:47:39 -07:00
Kurt
6df4aee5fb Held item feature, alphablend, pk2pk fixes 2014-08-02 22:15:47 -07:00
Kurt
ae28001e82 Box Backgrounds and 0x16/0x17
Box Backgrounds now use the value from the save file.
0x16 : Hits Remaining
0x17 : Training Bag
2014-08-01 16:53:09 -07:00
Kurt
f5f766f962 Restructuring source arrangement 2014-08-01 10:33:12 -07:00