Commit Graph

212 Commits

Author SHA1 Message Date
Kurt
028f3786d1 Reorder check logic; DARC analyzing => exceptions 2015-06-16 22:21:40 -07:00
Kurt
5a37d25364 Move LCRNG method to a random-based class 2015-06-16 21:18:06 -07:00
Kurt
26ef0ca80d Remove blank line 2015-06-16 21:17:14 -07:00
Kurt
fe2619591d Add hardcoded mega evo list
Won't be used, but is nice to have if you don't want to extract the mega
evolution table.
2015-06-16 21:16:55 -07:00
Kurt
cfd91b214a Refactoring
Also included the new GARC handler which can now process all GARCs.
2015-06-16 00:37:11 -07:00
Kurt
c96ae87877 Add ExeFS.bin extraction, add romfs/exefs pathfind 2015-06-15 17:26:12 -07:00
Kurt
e03d880e02 Remove unnecessary casts 2015-06-14 23:43:03 -07:00
Kurt
035a90053f Add unimplemented utility alert 2015-06-12 20:51:15 -07:00
Kurt
831d1a2900 Branch OR/AS move GARC handling
ORAS uses a GARC->packed archive->files
XY uses a GARC->files

Solution provided by mg1189.
2015-06-11 12:49:39 -07:00
Kurt
9426bde9cf Fix silly mistake with line length check 2015-06-11 12:48:02 -07:00
Kurt
201f0db061 Add config language save/load 2015-06-11 12:29:37 -07:00
Kurt
543a7f6c1d Fix dumb class name
Oops.
2015-06-07 12:58:34 -07:00
Kurt
9bec5e5451 Add map movement permission parsing
Old code that I'd need to integrate. I eventually plan to have a visiual
representation of a given Overworld zone.
2015-06-05 19:44:53 -07:00
Kurt
1a001c3427 Add 0x65
I feel confident enough for this one.
2015-06-04 08:39:34 -07:00
Kurt
6333af8bc0 Add OR/AS a029 commands
65 & 1F still are pretty muddy.
2015-06-03 22:32:19 -07:00
Kurt
c1999b0ae4 Drop Script to Clipboard Parse
Really just for testing non ZO scripts.
2015-06-02 22:33:15 -07:00
Kurt
838f85c744 Add most X/Y command lengths
1F, 54, 65, etc aren't easily guessable.

1F is a bundle of 4 commands? (1F,05,57,(-),04) so it'll be interesting
to see how that one turns out.
2015-06-01 20:57:31 -07:00
Kurt
9d8f19114d Finish cataloguing OR/AS command lengths
Chances are there's a few more in X/Y
2015-05-31 22:45:26 -07:00
Kurt
2480f5593a Add text highlighting method 2015-05-31 22:44:20 -07:00
Kurt
d302799b7f Add 0x0B 2015-05-30 23:09:30 -07:00
Kurt
98677e055d Fix resx for bin/byte 2015-05-29 07:51:35 -07:00
Kurt
0bcd23b073 Rename bin folder to byte
Github now doesn't ignore the folder name.
2015-05-28 07:29:31 -07:00
Kurt
c4c80138b0 Sync to add a bunch of used commands in ZDs 2015-05-27 21:33:56 -07:00
Kurt
c00de4259a Weaken exefs content check
Some games /may/ have logo.bin in them. Allow for that case.
2015-05-27 21:13:01 -07:00
Kurt
9fd23568ab Add some more clarity
There's usage of floats in some of the instructions.
2015-05-27 08:07:32 -07:00
Kurt
d36a1cc153 Script Parsing Update (movement separation)
Array gets split in OWSE and gets sent to two separate methods.
2015-05-26 21:06:24 -07:00
Kurt
e2d8f9cbe1 Add basic parsing to mimic FireFly's findings
Sucks there's no debug names leftover. This output is quite basic and is
similar to the past gen scripting view of SDSME/NPRE with a few tweaks
(because the jumptable is new).
2015-05-26 06:33:27 -07:00
Kurt
f0ca90c741 Presentation Tweaks
Added a bunch of labels and cleaned it the form a little bit.
2015-05-25 15:03:52 -07:00
Kurt
b6a4a83492 Switch to FireFly's decompressor
Minor cleanup on the raw view (set to width of 4 since it will always be
sized as such)
2015-05-24 17:27:07 -07:00
Kurt
e29473c438 Implement FireFly's concise decompressor
Deprecates the expanded method
2015-05-24 17:26:04 -07:00
Kurt
9053f62ef3 Fix the last even line of bytes
linq does the job cleaner than ugly math...
2015-05-24 17:11:19 -07:00
Kurt
7dfd2d7a79 Revert "Fix the last even line of bytes"
This reverts commit 6dd5ca7d2d.
2015-05-24 17:10:44 -07:00
Kurt
6dd5ca7d2d Fix the last even line of bytes
linq does the job cleaner than ugly math, anyway
2015-05-24 17:10:30 -07:00
Kurt
a1c1c076b9 First draft of instruction compressor
Previous commit had the UI changes and clearer array handling.
2015-05-23 15:21:21 -07:00
Kurt
428cb26eec First draft of instruction compressor
Minor fixes for null data handling.
2015-05-23 15:20:15 -07:00
Kurt
2592b726c4 Refactoring & Beginnings of Compression
Using linq to make some code cleaner; likely runs a little slower but
the tradeoff is good enough.
2015-05-23 02:12:10 -07:00
Kurt
943dec58e5 Update script view interface
Updated text descriptors and nailed down more of the script header.
2015-05-22 22:15:06 -07:00
Kurt
fb937f00c8 Update Decompression
Signed is now handled properly; shared bit behavior should be much more
apparent
2015-05-21 22:35:05 -07:00
Kurt
c8dc7b6e6f Fix Decompression length not matching
Still have to fix signs.
2015-05-21 20:40:18 -07:00
Kurt
1dc2227ee2 Finish Decompressor
May have an issue with endianness of commands (ie, command writing first
vs parameter).

Will test thoroughly later.
2015-05-21 15:28:19 -07:00
Kurt
64f53ca29c Rework read
Still have to finish handling the signed portion properly.
2015-05-21 15:19:27 -07:00
Kurt
e92f07f161 Update script decompression
Still not entirely correct/tested thoroughly. Getting there!
2015-05-21 07:30:10 -07:00
Kurt
dde2d6ce1b Beginnings of script decompression
Very WIP; it's a bit more complicated than just a bit 'continue' flag.

Top bit is continue; next highest is quite likely a sign flag.
2015-05-20 22:23:50 -07:00
Kurt
b1a36a985c Fix folder datalength on build darc 2015-05-19 07:39:25 -07:00
Kurt
a4f9de789b Improve method clarity
If I become exposed to a legitimate darc with folders-within-folders
that'd be much easier to implement (extract the folder process method
and recurse ifFolder in the while loop)
2015-05-18 21:53:59 -07:00
Kurt
dc12901b8a Relative offset fix
FileOffset is relative to the entire DARC file, not the data array.

Also extracted the insertFile method
2015-05-18 07:49:26 -07:00
Kurt
447ee05f17 Implement DARC
Still a bit to improve on.
2015-05-17 21:51:05 -07:00
Kaphotics
58bec9b028 Merge pull request #11 from SciresM/patch-2
Validation fixes
2015-05-16 18:36:25 -07:00
Kaphotics
2a2455cc99 Merge pull request #10 from SciresM/patch-1
Validation fixes
2015-05-16 18:35:48 -07:00
SciresM
1b1321ee4f Validation fixes
isTempFIle fix, OutFile vs TempFile moving fix
2015-05-16 18:34:12 -07:00