luckytyphlosion
f286f17bde
Variable typo
2016-05-30 19:59:25 -04:00
luckytyphlosion
6d983352cb
Comment gbz80disasm.py
2016-05-28 19:07:00 -04:00
luckytyphlosion
39fc0a33ce
Heavily rework gbz80disasm.py
2016-05-28 18:08:43 -04:00
yenatch
1ec1ca10d2
Remove broken dependencies from gbz80disasm.py.
...
gbz80disasm now reads baserom.sym (optional) and gbhw.asm (optional).
2016-05-23 16:20:28 -04:00
Tauwasser
e46b63cca2
gfx.py: PNGs should be opened in binary mode
...
PNG files were opened as text files, thus the signature 0x0D 0x0A bytes were swallowed depending on OS.
Signed-off-by: Tauwasser <tauwasser@gmail.com>
2016-04-27 00:17:42 -04:00
yenatch
2ae1ae2f19
Forgot to move a related import in 050b05e5.
2016-04-10 19:23:29 -04:00
yenatch
050b05e5ce
Accidentally moved get_pic_animation out of gfx.py.
2016-04-10 19:08:07 -04:00
dannye
dfe6571774
Merge branch 'master' of https://github.com/pret/pokemon-reverse-engineering-tools
2016-02-26 09:52:06 -06:00
dannye
504ca96bba
pokemontools now works with tcg
2016-02-26 09:51:55 -06:00
yenatch
68edf51f10
Include pypng.
2016-02-17 16:32:34 -05:00
yenatch
9644160b87
Don't pointlessly traverse files that are already done.
2016-01-28 23:20:29 -05:00
yenatch
0b156e7bd6
Don't traverse includes that are commented out.
2016-01-28 23:20:10 -05:00
yenatch
90a3365a80
Remove the graphics dump code from gfx.py.
2016-01-28 21:34:38 -05:00
yenatch
8ed04a61e0
Rewrite scan_includes.
2016-01-28 20:44:49 -05:00
yenatch
adbc204d74
Stub Compressed.find_lookback.
2016-01-20 10:41:43 -08:00
Marcus Huderle
fd08d3926b
Only read samples from first .wav channel when converting to pcm.
2015-11-07 10:39:57 -08:00
Marcus Huderle
965dd32443
Fix average sample calculation in wav-to-pcm conversion.
2015-11-04 20:20:06 -08:00
yenatch
1514042dac
Merge pull request #96 from yenatch/master
...
Fix condense_tiles_to_map.
2015-10-24 21:22:10 -04:00
yenatch
119245c5e9
Actually call the newly created condense_image_to_map.
2015-10-24 18:05:47 -07:00
yenatch
e6ebf8af07
Fix condense_tiles_to_map.
2015-10-24 16:32:15 -07:00
Marcus Huderle
17ac571efc
Support arbitrary sample rates and 2-byte wide samples in wave-to-pcm conversion.
2015-10-22 22:35:25 -07:00
Marcus Huderle
5648b88ec2
Add .wav to pcm converter.
2015-10-21 23:32:18 -07:00
Marcus Huderle
23fb97bf26
Merge pull request #94 from huderlem/master
...
Read labels from symfile, not mapfile.
2015-10-19 20:35:42 -07:00
Marcus Huderle
7a6efcfdf1
Read labels from symfile, not mapfile.
2015-10-19 20:32:50 -07:00
dannye
2ca31f660b
New sfx names
2015-10-14 16:44:53 -05:00
yenatch
680bb02d29
Merge pull request #92 from yenatch/master
...
Make gfx.py more extensible.
2015-08-29 14:05:35 -04:00
yenatch
3a6ef54a5e
Don't error on extra args in export_2bpp_to_png.
2015-08-29 10:55:21 -07:00
yenatch
c7c5be19fe
Add the current address to the output of Decompressed.command_list.
2015-08-16 20:22:22 -07:00
yenatch
6ffb47f1af
Stop short wherever possible, and fix lookback index selection.
2015-08-16 20:21:30 -07:00
yenatch
5ad74a89ae
Merge pull request #91 from yenatch/master
...
Fix event flags, and read them only if necessary.
2015-07-22 02:47:11 -04:00
yenatch
8c8868813a
Fix event flags, and read them only if necessary.
...
Event flags are enumerated using macros defined outside of event_flags.asm, so parse the macros too.
2015-07-21 23:40:33 -07:00
yenatch
bf76a6b84a
Merge remote-tracking branch 'origin/master'
2015-06-28 23:18:57 -07:00
yenatch
b6500c8620
Fix get_pic_animation.
...
Fixes aec2e7ff .
2015-06-28 23:15:49 -07:00
Bryan Bishop
a43ba61bd6
Merge pull request #89 from yenatch/master
...
Fix a modulo by 0 on a default argument to condense_tiles_to_map.
2015-05-06 19:09:48 -05:00
yenatch
661004c969
remove yaml
...
remove yaml
undoes parts of 0182bcaf8f
2015-05-06 16:50:42 -07:00
yenatch
c6dcd9b9be
Fix a modulo by 0 on a default argument to condense_tiles_to_map.
2015-04-21 09:49:02 -07:00
Bryan Bishop
46492bd907
Merge pull request #86 from yenatch/master
...
Refactor the LZ tools and fix BSSReader's eval shenanigans.
2015-03-12 12:03:17 -05:00
yenatch
8d86abe882
hotfix: gfx.py doesn't need baserom.gbc to work
2015-03-11 22:43:04 -07:00
yenatch
68eae566ec
Merge remote-tracking branch 'origin/master'
...
Conflicts:
pokemontools/gfx.py
2015-02-11 14:22:50 -08:00
yenatch
fb23f2754c
Split the lz compression tools out of gfx.py.
2015-02-07 13:11:38 -08:00
yenatch
36f7ee513e
Refactor the compressor again.
...
This is a little closer to the target compressor than before.
2015-02-07 13:06:08 -08:00
yenatch
78aa4f00be
Pointless whitespace tweaks.
2015-02-07 12:40:15 -08:00
yenatch
aec2e7ff64
Refactor get_pic_animation.
2015-02-07 12:36:22 -08:00
Bryan Bishop
2c2ceb7456
Merge pull request #87 from Sanqui/master
...
Fix parsing arguments, fixes `make pngs` for pokecrystal
2015-01-28 13:10:57 -06:00
IIMarckus
f5248045ac
redrle: reduce code duplication.
2015-01-08 03:14:58 -07:00
IIMarckus
fa0761ea70
redrle: Add a -r flag to compress by rows (matching GF's behavior).
2015-01-08 02:14:42 -07:00
Sanky
2e76f276d0
Fix parsing arguments
2014-12-19 21:39:56 +01:00
yenatch
0182bcaf8f
Read gfx.yaml for graphics conversion options.
...
Keys count both as path nodes and attributes depending on context.
An example gfx.yaml:
```
gfx:
pics:
pal_file: normal.pal
pic_dimensions: yes
animate: yes
stupid_bitmask_hack: [dewgong, lugia]
pc:
literal_only: yes
```
Here, all graphics matching gfx/pics/.../*.png will use palette gfx/pics/.../normal.pal and be interpreted as animated pics. gfx/pc.2bpp will compress using only the `literal` command.
If gfx.yaml doesn't exist, current behavior is unchanged. Filename arguments override yaml.
2014-12-03 20:10:47 -08:00
yenatch
41df23fce3
Refactor the Decompressed class and dump/convert pic animations.
2014-11-22 13:57:22 -08:00
yenatch
145269cdb7
Left a scalpel in the patient.
...
"whoops"
2014-11-02 00:14:05 -07:00