summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-08redrle: reduce code duplication.IIMarckus
2015-01-08redrle: Add a -r flag to compress by rows (matching GF's behavior).IIMarckus
2014-10-02Merge pull request #83 from yenatch/fix-map-editorBryan Bishop
Fix the map editor.
2014-10-02map_editor: Fix automatic graphics decompression.yenatch
2014-10-02Merge remote-tracking branch 'origin/master' into fix-map-editoryenatch
2014-10-02Fix the map editor.yenatch
The map editor can now be invoked in ipython: import extras.pokemontools.map_editor as ed app = ed.init() Then <app> can be modified on the fly to make up for lacking functionality. Also see app.map.crop(). Now works with all maps in both Red and Crystal. The version defaults to Crystal. To use with pokered, invoke from the command line: python extras/pokemontools/map_editor.py red Or in ipython: import extras.pokemontools.map_editor as ed app = ed.init(version='red') Also displays connections, but they're unaligned.
2014-10-02BSSReader now reads constants and variables.yenatch
This lets the map editor do cool things.
2014-09-24Merge pull request #82 from yenatch/masterBryan Bishop
Rewrite scan_includes.py. Add include paths.
2014-09-24Add docstrings for IncludeReader methods.yenatch
2014-09-24Rewrite scan_includes.py. Add include paths.yenatch
2014-07-23Merge pull request #81 from yenatch/masterBryan Bishop
Event commands "name" and "trainerclassname" take another argument.
2014-07-22Event commands "name" and "trainerclassname" take another argument.yenatch
2014-07-22Merge pull request #80 from yenatch/masterBryan Bishop
loadwilddata takes 3 params, and fix engine flag parsing.
2014-07-22Merge remote-tracking branch 'kanzure/master'yenatch
2014-07-22Event command loadwilddata takes a third argument.yenatch
2014-07-22The checkflag command family uses engine flags.yenatch
2014-06-24Merge pull request #79 from dannye/masterBryan Bishop
Update Red music commands
2014-06-15gfx: Let .wxh filename arguments exceed 9.yenatch
Nothing needs this yet, but chances are it'll happen.
2014-06-10Update Red music commandsU-Fish-PC\Daniel
2014-06-02Merge pull request #78 from yenatch/masterBryan Bishop
Refactor gfx.py with bytearrays, fix graphics dumps, rewrite the compressor.
2014-06-02Merge remote-tracking branch 'yenatch/master'yenatch
Conflicts: pokemontools/gfx.py
2014-06-02Rewrite the lz compressor.yenatch
2014-05-03gfx.py: Forgot to add rom_offset.yenatch
2014-05-02Refactor gfx.py to use bytearrays. Fix some graphics dumping functions.yenatch
2014-04-28Merge pull request #74 from yenatch/masterBryan Bishop
Transpose images by height from 2bpp to png and width from png to 2bpp.
2014-04-28Merge pull request #75 from mintpeter/masterBryan Bishop
Make extract_maps.py Python 3 compatible
2014-04-28Add import to extract_maps.py for print_functionZack Marvel
2014-04-28Change print statements in extract_maps.py for Python 3 compatibilityZack Marvel
2014-04-19Transpose images by height from 2bpp to png and width from png to 2bpp.yenatch
Transposing non-square images would work over the expected width, rather than the current width (the expected height). This never came up since transposed images are typically square.
2014-04-16gfx: Don't try to load baserom.gbc unless it's actually being used.yenatch
This prevented pokered from building if the file "baserom.gbc" did not exist.
2014-04-14Merge pull request #72 from yenatch/picsBryan Bishop
pokered: pic de/compression.
2014-04-15gfx: Decompress graphics that can be converted to png.yenatch
Before, converting a .2bpp.lz file required calling decompress and convert_to_png on the compressed and decompressed files respectively. gfx.py unlz {}.lz gfx.py png {} Putting a .lz file into convert_to_png would raise an exception. Instead, passing compressed graphics into convert_to_png will decompress them first. This skips the (now optional) manual decompress step.
2014-04-15gfx: Transpose blocks of images instead of only the first block.yenatch
This allows transposed images to be grouped together (e.g. animations).
2014-04-14Clearer explanation for porting ↵yenatch
https://github.com/magical/pokemon-sprites-rby to python 2.7.
2014-04-06Optimize pic compression to be 50% faster.yenatch
2014-04-05gfx: Don't pad images smaller than a tile.yenatch
Also fix a bug where images smaller than a tile are not converted at all.
2014-04-05Add "norepeat" and "arrange" image attributes.yenatch
Eliminates repeated tiles and also spits out a tilemap respectively. One-way for now. Likely to be used in pokered, but useful in its own right.
2014-04-051:1 conversion for pics.yenatch
2014-04-03pokered: pic de/compression.yenatch
2014-03-31Merge pull request #71 from yenatch/gfxBryan Bishop
Image metadata and simpler gfx.py usage
2014-03-29Merge pull request #70 from yenatch/masterBryan Bishop
Straightforward label handling in crystal.py.
2014-03-28gfx: Redo command-line interface, format handling, filename arguments.yenatch
- Use argparse and less redundant commands. - Make .lz independent of content. Allows tilemaps to not be images. - Add .[w]x[h] filename argument for transposed images. - Add .interleave filename argument for 8x16 sprites. - Refactor some conversion code.
2014-03-23gfx: Prefer heights not divisible by 8, rather than forcing them.yenatch
Some images do not occupy a full tile. In pokered, gfx/minimize_pic.1bpp is 8x5. This is still rectangular. Previously, converting this image would cause an error.
2014-03-23gfx: Read image metadata from filenames where applicable.yenatch
png has some incompatibilities with 2bpp. Among them: - 2bpp is tiled, and can be arranged arbitrarily - 2bpp does not have associated palette data - png must be rectangular - png must have specific dimensions The requirements for an image vary, and are unwritten. One conversion method will not work for all images. To resolve these conflicts metadata can be attached to images and related data. So as to not create additional files without changing the file content, the filename is used. Usage: metadata is defined as pseudoextensions. .w<width> - force width to <width> px .h<height> - force height to <height> px .t<num> - pad the image by <num> tiles so the resulting png can be rectangular - remove said tiles when converting back to 2bpp Example: gfx/title/logo.w160.t4.{lz,2bpp,png} - width 160px - pad by 4 tiles
2014-03-23get_label_for: Return a label or None.yenatch
Don't return an address and call it a label.
2014-03-23get_ram_label: Setup wram labels if they haven't been already.yenatch
2014-03-23PointerLabelParam: Return valid (or at least informative) arguments.yenatch
PointerLabelParam.to_asm() returns a label by default. If no label exists, instead return a bank and address. This will not compile (maybe it ought to), but it simplifies debugging.
2014-03-06Merge pull request #69 from yenatch/masterBryan Bishop
Macro handling in read_bss_sections.
2014-03-07Refactor read_bss_sections into a class.yenatch
- Pass a constants dict into eval instead of using globals - Read same-line labels and tokens
2014-03-05wram: Interpret rgbasm macros and fix token logic.yenatch
This doesn't read same-line tokens after labels yet.