Commit Graph

692 Commits

Author SHA1 Message Date
Bryan Bishop 24c5bdfd83 minor gbz80disasm formatting 2013-09-01 16:10:32 -05:00
Bryan Bishop a8f9bf671b fix syntax on import gbz80disasm 2013-09-01 16:08:26 -05:00
Bryan Bishop 875913eefa make mkdir_p raise a specific exception 2013-09-01 16:05:32 -05:00
Bryan Bishop 5507494a35 move mkdir_p out of gfx.py and into helpers.py
It seems that mkdir_p is unused at the moment.
2013-09-01 16:04:50 -05:00
Bryan Bishop abd5264a9d import syntax in gfx.py 2013-09-01 16:03:40 -05:00
Bryan Bishop 7b98e21889 docstring for MenuDataPointerParam 2013-09-01 16:01:46 -05:00
Bryan Bishop a104ed3679 log message for parse_script_asm_at 2013-09-01 15:59:59 -05:00
Bryan Bishop f666fcb67d move flatten and flattener into helpers 2013-09-01 15:57:02 -05:00
Bryan Bishop a1d9fd778d fix typo in TrainerGroupTable assert message 2013-09-01 15:49:17 -05:00
Bryan Bishop 5febb07654 use TextScriptException again 2013-09-01 15:46:43 -05:00
Bryan Bishop e188fa3eb4 make up TextScriptException to replace two asserts 2013-09-01 15:45:04 -05:00
Bryan Bishop ccc1d82d95 use a custom AddressException instead of asserts
There's no reason to have asserts thrown around in the source code like
that. This replaces some of them with an AddressException and a new file
called "exceptions.py" to store the exception definitions.
2013-09-01 15:40:22 -05:00
Bryan Bishop 74a9f14502 move index and grouper into helpers.py 2013-09-01 15:33:52 -05:00
Bryan Bishop adb89bb985 improve spacing in Incbin and AsmSection 2013-09-01 15:21:10 -05:00
Bryan Bishop 676f12f573 fix spacing in get_pokemon_constant_by_id 2013-09-01 15:16:48 -05:00
Bryan Bishop 58e8718616 fix import item_constants syntax 2013-09-01 15:16:01 -05:00
Bryan Bishop 48f6b8a8fa fix import wram syntax 2013-09-01 15:14:23 -05:00
Bryan Bishop e8eaeefda8 fix import pokemon_constants syntax 2013-09-01 15:13:26 -05:00
Bryan Bishop cc93281530 fix import old_parse_scripts 2013-09-01 15:11:55 -05:00
Bryan Bishop 0b67d453f6 fix "from trainers import .." syntax 2013-09-01 15:08:58 -05:00
Bryan Bishop f62d266e1a don't need re 2013-09-01 15:02:59 -05:00
Bryan Bishop ffe1388707 import interval_map syntax 2013-09-01 15:00:53 -05:00
Bryan Bishop c84a392e46 "import pointers" instead of "from .. import .." 2013-09-01 14:59:33 -05:00
Bryan Bishop dd52b6900c import move_constants syntax 2013-09-01 14:54:16 -05:00
Bryan Bishop ea83920d92 "import romstr" instead of "from romstr import .." 2013-09-01 14:51:14 -05:00
Bryan Bishop f954a57ce4 "import chars" instead of "from chars import .." 2013-09-01 14:46:27 -05:00
Bryan Bishop 7b8e7ba16a move imports together 2013-09-01 14:42:02 -05:00
Bryan Bishop 4bd6505e95 "import pksv" instead of "from pksv import .." 2013-09-01 14:40:41 -05:00
Bryan Bishop 6d7296cbdf import labels instead of "from .. import .." 2013-09-01 14:36:35 -05:00
Bryan Bishop d9685d76ab don't import remove_quoted_text into crystal.py
This function isn't used in crystal.py, so it can be safely removed from
the imports.
2013-09-01 14:32:59 -05:00
Bryan Bishop 4a00cfac15 make the TestPostParsing test case work again
It needs to be a subclass of unittest.TestCase in order to get any of
the testing methods. Otherwise all of the tests fail when nosetests
finds those tests.
2013-09-01 14:29:31 -05:00
Bryan Bishop 47cde9c915 convert more prints to logging calls 2013-09-01 14:25:14 -05:00
Bryan Bishop 4d9c4ba8a9 use logging in crystal.py instead of print 2013-09-01 13:57:04 -05:00
Bryan Bishop 99bf0d326c docstring for crystal.py 2013-09-01 13:10:27 -05:00
Bryan Bishop 1a30d8b8a2 remove bryan_message for NotImplementedError
Nothing was using it.
2013-09-01 13:09:28 -05:00
Bryan Bishop 08241169c5 remove an old comment about __main__ in crystal.py
The comment no longer applies.
2013-09-01 13:08:01 -05:00
Bryan Bishop df820deebc remove the 'json.read = json.loads' hack
There's no good reason to use json.read anymore, even in the case of
jython.
2013-09-01 13:06:29 -05:00
Bryan Bishop 768046bfcd use an explicit import in labels.py 2013-09-01 13:04:05 -05:00
Bryan Bishop 795cd58a70 version bump to: v1.3.0 v1.3.0 2013-09-01 02:16:52 -05:00
Bryan Bishop 6a7af346c0 Merge pull request #3 from kanzure/dump-pokered-extras
Dump pokered extras
2013-09-01 00:14:36 -07:00
Bryan Bishop e2fb614cae Merge pull request #2 from kanzure/pokered-preprocessor
Don't make global labels for rgbasm macros.
2013-09-01 00:11:20 -07:00
Bryan Bishop a5b718db57 dump in pokered/extras/ python stuff from b185b245 2013-09-01 02:05:18 -05:00
Bryan Bishop eb7902c6f8 chmod -x dump_sections.py 2013-09-01 01:59:52 -05:00
Bryan Bishop fc6785b87b Merge branch 'pokered-preprocessor' into dump-pokered-extras 2013-09-01 01:52:01 -05:00
Bryan Bishop c39e156f8c don't make global labels for rgbasm macros
This adds support to the preprocessor to handle constants.asm from
pokered.
2013-09-01 01:44:00 -05:00
Bryan Bishop 276111f04d version bump to: v1.2.0 v1.2.0 2013-08-31 12:59:47 -05:00
Bryan Bishop 8c6328543a Merge pull request #1 from kanzure/preprocessor
Also have the common bits of the preprocessor.
2013-08-31 10:55:49 -07:00
Bryan Bishop 4998994c9a merge preprocessor from pokecrystal c0a01c99
That version was better anyway.
2013-08-31 12:43:05 -05:00
Bryan Bishop 4209ad8637 fix a wrong error message in ItemFragment.__init__ 2013-08-29 12:11:06 -05:00
Bryan Bishop 4c56a6c57a better KeyError exception message in preprocessor 2013-08-29 12:07:27 -05:00