Commit Graph

745 Commits

Author SHA1 Message Date
Kurt
3c47867c39 Improve text editor writeback handling
Begin line editing when cell is entered (rather than double clicking in)
Finish any pending edits when form is closing
Handle errors instead of crashing
Save error messages to text file
Save failed text files to text file for reimporting when fixed

Closes #151

GameText will pass the reference to the persistent gametext; bad text
will stay as bad text until the program closes (where it won't be
saved).
2017-06-11 11:27:12 -07:00
Kurt
9aba1ced9c Add more encountertrade struct docs
sub_379F4C in 1.0 moon
Add memories (all default to 03, 01, 28, 05)
2017-06-08 18:14:21 -07:00
Kurt
26e36810fc Merge pull request #149 from sora10pls/master
Update README.md
2017-06-02 16:57:43 -07:00
Matt
b412853421 Update README.md 2017-06-02 15:13:15 -04:00
Kurt
abad15dc5a Merge pull request #145 from kwsch/f/library-refactor
Initial Library Refactor
2017-05-31 19:29:13 -07:00
Evan Dixon
919b271d33 Fix GameConfig's Initialize methods
TextFile no longer holds a static reference to GameConfig
2017-05-29 08:52:53 -05:00
Evan Dixon
7f20c9c370 Remove static variable from pk3DS.Core 2017-05-27 17:58:15 -05:00
Evan Dixon
b8eedf2b58 Move changelog to ui project 2017-05-27 17:57:58 -05:00
Evan Dixon
7997f06dc5 Initial split to pk3DS and pk3DS.Core 2017-05-27 17:53:32 -05:00
Kurt
17af97d4c8 Expose shiny lock for Gen7 Static Encounters
Closes #144
2017-05-23 22:25:01 -07:00
Kurt
04c5cba293 Merge pull request #141 from jpmac26/master
Fix message when dumping Level Up Moves
2017-05-17 11:56:37 -07:00
James Pelster "CaptainSwag101
6457611a53 Fix message when dumping Level Up Moves
It seems those sneaky copy-paste bugs have struck again ;)
2017-05-17 11:23:30 -07:00
Kurt
aca8174c38 Merge pull request #138 from sora10pls/master
Add adjustable Catch Rate to modifier macro (PersonalEditor6/7)
2017-05-11 13:48:43 -07:00
sora10pls
93d527d34f Add adjustable Catch Rate to modifier macro (PersonalEditor6/7) 2017-05-11 15:24:21 -04:00
Kurt
2de3639f31 Update backup/restore feature
trycatch the restoration action, and force overwriting

https://projectpokemon.org/forums/forums/topic/34377-pk3ds-xyoras-rom-editor-randomizer/?page=37#comment-213548
2017-04-28 17:41:03 -07:00
Kurt
8fa0f9cc7e Merge pull request #134 from sora10pls/master
Add close functions to multiple editors + CRO editing prompt for MartEditor7
2017-04-18 13:40:51 -07:00
Matt
ba86b02f5d Add CRO editing prompt (MartEditor7) 2017-04-18 16:28:23 -04:00
Matt
e557887c6b Close form on save (MartEditor7) 2017-04-18 15:54:15 -04:00
Matt
261c214bc2 Close form on save (PickupEditor6) 2017-04-18 15:53:56 -04:00
Matt
0d9cedd42d Close form on save (MartEditor6) 2017-04-18 15:53:38 -04:00
Kurt
329425a69d Refactor backup/restore method
Now restores all files; users can still manually restore individual
files.
Closes #31
2017-04-17 23:30:31 -07:00
Kurt
20a6b701e2 Further simplifications
BST checkbox was added recently, use that instead of asking the user
2017-04-16 23:42:25 -07:00
Kurt
d0d31374e3 Fix gen6 gift/static form randomization
if BST wasn't selected then it'd do a simple loop and return; added code
was missing from that section

simplify the code a little to only use one loop.

#127
2017-04-16 23:41:08 -07:00
Kurt
f60a981c65 Fix reload value reference
As noted in post-close comments of #126
Thanks @sora10pls !
2017-04-16 22:37:50 -07:00
Kurt
1f377de7e2 Un-stub shiny rate editor
Precomputed a list of instructions (format u16 rerollCount, u16 half of
instruction); upper16 bits are constant (A0 E3).

If a reroll count that is not in the precomputed list, pk3DS will bump
the rate up to the nearest precomputed value.

Increased the default value to 125 to make it obvious that 3% was not
the existing rate, and expanded the label usage. With so much text on
the form the actual editing area is now indicated by the red text.
2017-04-16 22:22:25 -07:00
Kurt
aea09b14b9 Add special-only mart randomization prompt
gen6/gen7
Closes #68
2017-04-16 17:38:42 -07:00
Kurt
a7d81ad09b Add level modifier for non-wild editors
Closes #76
2017-04-16 17:34:12 -07:00
Kurt
aa4f6e8c25 Add gen6 form randomization to static editor
Uses the refactored randomizer methods to pull the info.
Closes #127
Closes #124

For the gen6 starter editor, just edit from the static encounter editor
if you want formes
2017-04-16 17:20:58 -07:00
Kurt
7ecd77838d Add adjustable call rate to modifier macro
Closes #128, same implementation but allows a certain value to be set
(without line ending changes)
Closes #91
2017-04-16 17:06:15 -07:00
Kurt
54a588c970 temp stub save button
until a working solution is added
as documented in #126 , just manually edit to the XX XX A0 E3
instruction
2017-04-16 10:53:16 -07:00
Kurt
9eee50d6f3 Enhance ShinyRate editor
Back-calculate a reroll count from specified overall %
fixes reloading of existing count if > 4095
2017-04-15 22:43:59 -07:00
Kurt
9c5c5a9377 Add shiny rate editor
patches an instruction to override the amount of rerolls for the PID
generation routine

Existing Code:
LDRB    R0, [R4,#0x23]
New Code:
MOVW R0, value (0-65535)

pk3DS creates the assembly instruction to replace the existing
instruction.
2017-04-15 18:43:18 -07:00
Kurt
9d044da267 Fix oras/demo detection
assigned wrong version name
closes #123
2017-04-14 19:55:05 -07:00
Kurt
3c4d845dfd Fix species off by one
len(0+maxspecies) == maxspecies+1
now matches other usages
2017-04-12 22:57:46 -07:00
Kurt
30770fbb20 Add gen7 pickup editor
Thanks @Sciresm !
2017-04-12 21:30:49 -07:00
Kurt
86031d00da Misc fixes
Thanks @sora10pls !
Closes #118
Closes #119
2017-04-02 23:40:19 -07:00
Kurt
0d947eba67 Misc tweaks
still not comfortable with the switch jump offset calc
2017-04-02 17:26:43 -07:00
Kurt
69d23a8d84 Refactor script parsing with full command list
Moon symbols too helpful; this subroutine checks the integrity of the
script prior to executing, else causes a panic.
2017-04-01 21:45:37 -07:00
Kurt
f9796d6a28 Exception safety
loading out of range values; things are still currently quite raw and I
doubt the location names are accurate.
2017-04-01 00:14:48 -07:00
Kurt
80f326f612 Update & enable OWSE7
OWSE (OverWorld & Script Editor) doesn't save any edits; it's just for
research purposes.
2017-04-01 00:05:16 -07:00
Kurt
9d9a070079 Minor tweaks r2
No functional change, just a little more explicit / exposed for the CTR
namespace classes
take faster unpackMini from PKHeX's optimized version
2017-03-30 21:37:49 -07:00
Kurt
8de8f61769 Minor tweaks
No functional changes
2017-03-30 21:05:56 -07:00
Kurt
0f891ff813 Fix level boost decimal gui appearance
Closes #115
2017-03-17 19:58:50 -07:00
Kurt
594697187d Merge pull request #114 from jpmac26/master
Fix two long-standing exceptions
2017-03-16 09:16:08 -07:00
James Pelster
85dc376454 Fix NPE loading Personal Stats for Pokemon with no sprite resource
This has been a really long-standing bug, hopefully it's fixed for good!
2017-03-15 19:47:37 -07:00
Kurt
d70d72d4c1 Fix tutormove order for gen6 2017-03-15 00:01:39 -07:00
Kurt
92dcc36006 Fix typechart7 write path
store codebin location for writeback at end
2017-03-12 11:37:21 -07:00
Kurt
ff05de5331 Change SMWE default level amp
aka no level amp
2017-02-14 22:25:32 -08:00
Kurt
9a1b754c5b Simplify level boosting
gen7 only, gen6 has 1,100 cap but no need to change.
2017-02-14 22:24:08 -08:00
Kurt
28ef5910da Update sprites
As per pkhex pr 858
2017-02-14 21:08:57 -08:00