Bryan Bishop
a293f66667
remove extra whitespace in extras/gfx.py
...
original-commit-id: aade38c733d0060be623525e50d2b24e718c7bee
2013-06-25 23:01:52 -05:00
Bryan Bishop
c2c7cd3818
fix function formatting in extras/gfx.py
...
original-commit-id: cc1add094f3cbbbb281d892828ffd1dd6f29f7af
2013-06-25 23:01:00 -05:00
Kat Harrison
b18fcdc531
fixed another indent in gfx.py
...
original-commit-id: 72fbe86c7aee557282322666c1c3a25fbe964b0b
2013-06-23 16:06:46 -04:00
cogitokat
ad1aeeec53
fixed indents
...
original-commit-id: 95369248f4400ea01b2f11216286c71bc515fe69
2013-06-23 16:48:51 -03:00
cogitokat
88313fd5af
convert indents to 4 spaces in gfx.py
...
indents were previously 8 spaces
original-commit-id: 0b5885e1a96e9242fc31d9fdbfaf9c7c6097dd19
2013-06-23 16:47:35 -03:00
cogitokat
faedca9729
more docstring/indent fixes in gfx.py
...
original-commit-id: a60bf1690146cfd052f028334c652618b752a39c
2013-06-23 15:07:39 -03:00
cogitokat
06e1841a7a
more gfx.py docstring changes
...
original-commit-id: 3ee5295ee3ff5868b346246e56cadf0b5b47a043
2013-06-23 13:15:23 -04:00
cogitokat
96c43c7e01
Change bad indents in extras/gfx.py
...
original-commit-id: 60b52a8cf0ab9714419796a981b85992930f3d31
2013-06-23 14:12:03 -03:00
Kat Harrison
5efb29460e
Edit some docstrings in /extras.
...
original-commit-id: 1120eaaaf54afe16600c7b5f665edcbc621fde0f
2013-06-23 12:43:16 -04:00
yenatch
9d4e21cabe
gfx: return mass-decompress command
...
still reqd by make pngs
original-commit-id: bbed370d84e1721fc78c008bc5122776703f0f41
2013-06-13 17:26:50 -04:00
yenatch
3cadc09cc0
expand shortened palettes
...
rather than keep up inconsistent palette formats, just incbin a portion of each
original-commit-id: 6ba758aa53bbf14e2c152fd88f786a501f6bb029
2013-06-12 21:40:37 -04:00
yenatch
7ccbbcced8
gfx: workable command line functions
...
original-commit-id: 5803db714c348574e09e428b79aa2c66531e74f5
2013-06-12 21:40:32 -04:00
yenatch
1db2941c7d
gfx: palette checking in to_png
...
original-commit-id: b06c96e4d2d9e365544f8abba9392752178a8fcd
2013-06-12 14:38:38 -04:00
yenatch
dc268dfbc6
fix palette functions and output palettes in 2bpp conversion
...
original-commit-id: 5d204ce5692c06f9b48bbad0fe1e42107bdf5231
2013-06-12 14:29:39 -04:00
yenatch
53af4e21e9
gfx: handling for <4-color pngs when converting to 2bpp
...
without a .pal file as reference, palettes are sorted by luminance.
pokemon crystal reads palettes exactly 4 colors in length.
if an image used fewer than 4 colors, invalid palettes were produced.
instead, dummy colors are inserted to pad out the palette.
original-commit-id: 5cf1754b08aa6903f01b839c917169e6dc8c260f
2013-06-12 14:29:35 -04:00
yenatch
829fa1d626
gfx: safer alternating-byte detection in compression
...
original-commit-id: e3565bd7007b194b04ceecaf1909fff65062211f
2013-05-18 04:46:52 -04:00
yenatch
e4cf93bff1
gfx: fix a typo
...
original-commit-id: 77e365d49ffc6caa5364b405a263e4a43938def1
2013-05-18 04:46:52 -04:00
yenatch
b4d2e0eb00
gfx: lz to png from command line
...
original-commit-id: 604cafc27859700e45f4c54237b54f3c584cf458
2013-05-18 04:46:52 -04:00
yenatch
cbdf84afda
gfx.py: remove trailing tabs
...
original-commit-id: a1b9fdc9c92279bef7383e8c8278934ca2889de8
2013-05-18 04:46:51 -04:00
yenatch
b19194349e
gfx.py: get rid of argparse
...
original-commit-id: abaed2145fbf982a4873e186e964ce0435fb3ce0
2013-05-18 04:46:47 -04:00
yenatch
0cf529cd7d
fix data-handling errors in gfx.py
...
original-commit-id: 3a0e80932ec11494407ea5a3aa7724007b71502b
2013-05-17 01:59:23 -04:00
yenatch
e5d28d058e
there is no os.touch
...
original-commit-id: 05ceafe614def25e599f839bd86d03292fdbc5b0
2013-05-12 10:22:24 -04:00
yenatch
b954746344
touch graphic files during decmp so make doesnt try to replace them
...
original-commit-id: a85077eb4f8a153cbe8fd00f59943b715536045e
2013-05-11 13:39:40 -04:00
Bryan Bishop
a871328505
Merge pull request #124 from yenatch/master
...
hram labels + png make target
original-commit-id: 1abb020335e89ace4f51e1c81902e9bbe95c6af2
2013-03-20 20:12:48 -07:00
yenatch
d6497d6a70
fix path handling in png make target
...
lz files were being decompressed to the top directory (gfx/)
original-commit-id: b570c4d6e660ffe36427a29ee34f87298b77bfda
2013-03-18 16:36:30 -04:00
Bryan Bishop
46d96119c8
dump tileset pngs in gfx.py
...
original-commit-id: e0e902b1c7612a582a945fd4b0bb31e3b19d5945
2013-03-18 04:52:49 -05:00
yenatch
af678654e6
Export any detected palettes to png by default
...
Checks for any palette using the same name as the 2bpp file.
original-commit-id: 7f7f4612404b6c898d4cb50fb4468580dbd46910
2013-02-12 03:40:41 -05:00
yenatch
61f08140d6
Fix png export orientation
...
A quirk of the Decompressed class dissociated the orientation from
the output attribute.
The makefile no longer suppresses output since it's still relevant.
original-commit-id: ad0578fda0aec42c28e3db26bbf68d06aa19f63e
2013-02-12 03:31:35 -05:00
yenatch
d534f74635
Finish off make target for png generation
...
Now any existing lz files are converted to 2bpp, and all 2bpp files
are converted to png.
original-commit-id: 0b8c5ef75b69521ccbd3e9b30431fba0ba2d569e
2013-02-11 17:59:43 -05:00
yenatch
27ae7df267
better dimension handling in 2bpp->png
...
original-commit-id: 98d8914b62750ea7575a5c16ce954cc0bbedb825
2013-02-11 04:13:36 -05:00
yenatch
2c21679768
Add build target to mass-generate pngs from 2bpp files
...
original-commit-id: d1172e1fb67fe8bd9c33cc4ab0d45905167d4c53
2013-02-11 04:13:36 -05:00
yenatch
f0d60d72f7
Infrastructure to dump pngs for 2bpp graphics
...
original-commit-id: 80600f929193208e435e6ce833e4207a6cd5a382
2013-02-11 04:12:59 -05:00
yenatch
a8876bffc3
Don't try to convert empty 2bpp files
...
Also, make non-square images 1 tile wide
Minor path fixes and cleanup
original-commit-id: e7762890aac4da72e75c7e7365c1cd924dadbc85
2013-02-09 06:26:09 -05:00
yenatch
0dbb8770c5
Add some command-line interfaces for use w/ makefile
...
Extras:
-function to dump trainer pals
-fix testing leftover in a compression function
-keep load_rom() from getting in the way (relative address breaks extras)
original-commit-id: 70280c0c3f64e41edaed8d2726c6472bec395f55
2013-02-09 04:36:36 -05:00
yenatch
9536d00bcc
implement png import/export
...
palette export works fine, but palette import is disabled for now
original-commit-id: da205909c056fd2299fec5bc546999929192a629
2013-02-07 21:03:19 -05:00
yenatch
bb425e6cec
Condense pic dimensions table
...
original-commit-id: 4d44c2c0e64d7e1eed97fe1b246638c251d00972
2013-02-06 02:09:57 -05:00
yenatch
7cfc2746c6
update gfx.py to reflect new structure
...
original-commit-id: cd0f71730583f7db1e81549d0269fa38ea315ac9
2013-01-22 05:01:21 -05:00
yenatch
f0e7a120a5
make careless use of gfx.py less fatal
...
original-commit-id: 9fbe7ea42390e7a0d6a1288f076d7951ce66b5eb
2013-01-13 00:40:13 -05:00
yenatch
7774a995fb
implement rgb macro for palettes
...
original-commit-id: 238f40602479c43954916a967523d0a873cdd92b
2013-01-13 00:38:48 -05:00
yenatch
636e7e1ec7
include all compressed and decompressed graphics
...
* frontpics & animation tiles
* backpics
* trainer pics
* attack animation gfx
* intro gfx
* intro tilemaps
* title gfx
* tilesets
* player backpic
* dude backpic
* pokegear/town map
fixes #33 , #34 and #35
original-commit-id: 2cdf7a3688c43766663028cf6e644f13fae4bdf3
2013-01-04 04:08:13 -06:00
yenatch
a5cfb49dfa
allow other files to import gfx.py
...
original-commit-id: e91f41dd3565cd4edfd71d0e3ee9744e99403443
2013-01-02 04:37:45 -05:00
yenatch
b3ebb0f873
make gfx.py more convenient from command line
...
original-commit-id: 3e953ad7b65f033cc5e29319f34cfd661b24af07
2013-01-01 16:31:05 -05:00
yenatch
d6678d25fb
decompress all known gfx
...
original-commit-id: a3fe9c00d0c5d0e63c7e64a28d16010f43707d10
2012-12-31 22:53:40 -05:00