summaryrefslogtreecommitdiff
path: root/crystal.py
AgeCommit message (Collapse)Author
2013-08-03make a basic python moduleBryan Bishop
2013-08-03remove extra newlines from python filesBryan Bishop
Remove all of the ending newlines at the end of the file, since this is apparently against pep8.
2013-08-03tabs to spaces in crystal.pyBryan Bishop
This was just the move effects list.
2013-07-12Merge pull request #157 from yenatch/overworldBryan Bishop
overworld loop and movement original-commit-id: bb8990dc3cb19787e08c29409cfc674e2478fbc9
2013-07-10crystal: add more movementsyenatch
original-commit-id: e7a7fcc92446134d47bbfb0b308c4decc2a2adf8
2013-06-28crystal: wram label findingyenatch
original-commit-id: daf3930984690e8ce44b375dda35a9d725c0c1d2
2013-06-28crystal: 2pt script commands are for wramyenatch
original-commit-id: 17b5e86311e5dae4609818d6e1d63d23bc6815fa
2013-06-28crystal: PointerLabelToScriptPointer bank is not reversedyenatch
original-commit-id: 622d6b86f71f29f6a03df7cef7e825ee84260ea9
2013-05-06Merge pull request #126 from yenatch/masterBryan Bishop
map scripts + ai + disabled line ending correction original-commit-id: 2a44711fa7b96868048f39418a6095ea7013608d
2013-04-30Fix PointerLabelToScriptPointer classyenatch
used the current address instead of the parsed address original-commit-id: 9fc8d527f727dedfb8dd718cfea9e29d7b26775d
2013-04-27Merge yenatch/master.Bryan Bishop
original-commit-id: 0e47273378b1f7f010e4d3e6dbab2a14dcc781ce
2013-04-20damagecalc is actually damagestats; itemmultiplier is actually damagecalcyenatch
original-commit-id: 494f4c13fe2a45d0569bde2fc06e1bdf3fbfc857
2013-03-29dump move effectsyenatch
original-commit-id: dc81d0cfcfa92ecfab99984ee674d0fe3e6c19cf
2013-03-21fix docstring formatting everywhereBryan Bishop
original-commit-id: 4332a25bd5f6f80975f762d126e92064c756f7d4
2013-03-18Fix unused function parse_map_header_by_idyenatch
'Dunno' exception always fired even if parameters were correct original-commit-id: c19dcb996c26111d5ccda8cb783ccbb15348992b
2013-03-01Script commands 0xb2 and 0xcc don't existyenatch
original-commit-id: a7c260f4f4b843cfed1d8f39d3fca396cacc95c2
2013-02-27update automatic main.asm insertionBryan Bishop
This updates the automatic parsing of main.asm to catch cases of INCBINs pulling in files that end in .asm, .lz, .1bpp, and .2bpp. This is necessary because otherwise the parser tries to figure out the start and end addresses expressed on the INCBIN line, details not present on these types of lines in the asm. Asm and Asm.insert_all are now back in working condition. original-commit-id: 0e2ab04353bf5fa3114aa87e77e5366af6aa942c
2013-02-27make to_asm more configurableBryan Bishop
original-commit-id: affcd587d69b18d84bcb473b28723613b755c846
2013-02-27fix parameters for verbosegiveitem2 definitionBryan Bishop
original-commit-id: 2a04c1c20a22f13ff3f0b0a8ce2d8e96b8798ef8
2013-02-27oops, include map_namesBryan Bishop
original-commit-id: 821d7948981924a4b8145edf072a69ab799ddd14
2013-02-26separate map_names into map_names.pyBryan Bishop
original-commit-id: 160acfa2967e898f97ba2b92e8602146bdf5b714
2013-01-27various formatting fixes for crystal.pyBryan Bishop
original-commit-id: fd6bb7de55183152bc116902be7b341ab71269ff
2013-01-27replace wildcard import with explicit importBryan Bishop
original-commit-id: 5b2848b419148a30e97cb1cdb6f57a06b1076d8b
2013-01-27make gbz80disasm work with python2.6 againBryan Bishop
There was an incompatible change to the json module api between py26 and py27, causing gbz80disasm to not work with py26. The fix is to simply alias the new loads method to the old read function. A possibly better plan might be to not support py26 at all. original-commit-id: db5208b41f8a505f68ddbccb34dca206df9ca77e
2013-01-27remove a duplication of load_rom and load_asmBryan Bishop
original-commit-id: f22bbdd722bad8e2700b5801b45d935b631de6c8
2013-01-27better import syntax in crystal.pyBryan Bishop
original-commit-id: 4dfb8d3b095c72336614ff6add54cc063321ed50
2013-01-27split out more item_constants stuffBryan Bishop
Some of the item_constants functions are now placed in item_constants.py, and the unit tests now import from that file rather than from crystal.py for those functions. original-commit-id: f8b1695b548403e5db7e65d22e10cde81be66861
2013-01-27split out tests into a separate fileBryan Bishop
original-commit-id: 35682de426c14eb18da736464ebf718927ef393e
2013-01-23fix label generatorBryan Bishop
Recently the bank lines were changed to use lowercase characters, breaking the generator for "labels.json". original-commit-id: a826951adbbe74f170219402791ceb4074c3c4de
2013-01-15clean up python script importsBryan Bishop
original-commit-id: 0a54ce9e75201d718b971789a6502f8205d2e986
2013-01-15remove the Size class (unused)Bryan Bishop
original-commit-id: 80781e56f045dca95e03ccf8d8851f44b0bae0df
2013-01-15split out IntervalMap into a separate fileBryan Bishop
original-commit-id: 536df0787f77db30144d47bda2c2105ee9ad1321
2013-01-14add missing script command (3jumptext)yenatch
original-commit-id: 28b565a01c40bf61990ad84c78cf602e2419256e
2013-01-14banish script parser output to debugyenatch
original-commit-id: acd6d354c8701f0ac296611fda2d184fdd8c15fc
2012-12-28clean up whitespaceBryan Bishop
original-commit-id: da8b1e06e5c2866cf73f469f08835c658713ff41
2012-12-17specialphonecall takes a 16‐bit ID.IIMarckus
original-commit-id: 19ce6e7a748094f8f74b123c6b803808ed530d90
2012-11-30md5 -> hashlibBryan Bishop
original-commit-id: 671e2b1289950586723078b3b29d14c9631ac140
2012-11-30move allowed_lengths for music macros outBryan Bishop
This moves the allowed_lengths setting out of the preprocessor. Special cases should not be hardcoded in the preprocessor. original-commit-id: a1a9fa5560e01d97c7c33bbf8bb19fe4e76d3c28
2012-11-30implement music macros; INCLUDE injection in prepadz
original-commit-id: 3626ddebd1dd7363c98b403ba1fe3c2d7dc598ee
2012-10-11remove deprecated functions from crystal.pyBryan Bishop
original-commit-id: 69c012511242cda45d1e60014833823226583093
2012-10-01clean up comments in extras/crystal.pyBryan Bishop
This fixes the inconsistent comment formatting throughout the file. There should be a space between the comment token and the comment message, otherwise this file is less fun to read. original-commit-id: e6c95e22c9a61b5a8817c7a5ae0fb235c01d722c
2012-09-10call load_asm in scan_for_predefined_labelsBryan Bishop
original-commit-id: d23972b7a3bf387ffa883fa0c8f2827b0b826e84
2012-07-05use decimal output for givepoke in extras/crystal.pyBryan Bishop
original-commit-id: 6f8c3e5c3ea2edb80fddd2d17cf689fc1da39120
2012-06-20more de-dependency-loopingBryan Bishop
original-commit-id: 1342ab67db4301563d317722d04fab9473411fda
2012-06-20move code around to avoid dependency loopsBryan Bishop
original-commit-id: ca07f1d64c0235b49160fc501553a70af8331d81
2012-06-02make unittest2 error show up in stderrBryan Bishop
original-commit-id: 914470651080df7cf0bf36e3fa45ed299dd694ec
2012-05-29fix up AsmSection and line_has_comment_addressBryan Bishop
original-commit-id: d174c8b7c6ba0fd9da2b8145e3f8ec5909917e29
2012-05-29move AsmList into romstr.py tooBryan Bishop
original-commit-id: 0edf9eb8b8d5bdf74b8af18401a92c2ce7a2c2a3
2012-05-29move RomStr into a shared fileBryan Bishop
original-commit-id: ee7d39bf046ca4b8c40eb293d50657cda151dc58
2012-05-28use map constants for wildmons sectionsBryan Bishop
original-commit-id: 0aecb683a0aa7a2c38f0f9bc5c1fff4085bf245e