Commit Graph

2436 Commits

Author SHA1 Message Date
Bryan Bishop
7ff9ab5d08 Merge branch 'master' into yenatch-master 2013-09-03 14:54:23 -05:00
yenatch
2b2018a83a more bank 4 asm
this stuff looks like it's related to phone call timing
2013-09-03 06:38:07 -04:00
yenatch
5dd127300c even more incbinned asm in bank 4 2013-09-03 06:07:45 -04:00
yenatch
5641ea009c disassemble more incbins in bank 4 2013-09-03 05:56:07 -04:00
yenatch
0eff98ecf1 the rest of TMHMMoves 2013-09-03 03:56:11 -04:00
yenatch
bf4bedc4bf more bank 4 functions and CanLearnTMHMMove 2013-09-03 03:54:13 -04:00
yenatch
0d3de2e30b GetTMHMMove and renamed TechnicalMachines -> TMHMMoves 2013-09-03 03:39:21 -04:00
Bryan Bishop
5c46972ebe update preprocessor to use a class 2013-09-02 10:41:50 -05:00
yenatch
edc354152e formatting in MoveInfoBox and related functions 2013-09-02 06:40:30 -04:00
yenatch
9f7c4ef0b4 Sine and Cosine 2013-09-02 00:12:27 -04:00
yenatch
5b38b377f2 wram labels for graphics requests 2013-09-01 15:24:07 -04:00
yenatch
e3da601cee split out tileset headers from main into tilesets/tileset_headers.asm 2013-09-01 14:43:25 -04:00
yenatch
4a4dd20a6d split tileset palette maps out of main into tilesets/palette_maps.asm 2013-09-01 14:43:24 -04:00
yenatch
7cac61f3bd split tileset data out from main into tilesets/ 2013-09-01 14:43:23 -04:00
yenatch
5147e6c0a2 random 0s in tileset data was actually lz padding
i guess someone liked their filesizes nice and even?
2013-09-01 14:42:49 -04:00
yenatch
3010731347 split out blockdata includes from main into maps/ 2013-09-01 14:41:21 -04:00
yenatch
2a0089b92b shorten some overly long music filenames 2013-09-01 14:41:16 -04:00
yenatch
1a02ed6b37 get rid of the last static address in tileset animation arrays 2013-09-01 03:13:17 -04:00
yenatch
7d5e5b8182 recomment _AnimateTileset 2013-09-01 00:52:19 -04:00
yenatch
cc2906b68f consistent casing for Tileset labels
wram labels were using TileSet for some reason
2013-09-01 00:09:57 -04:00
yenatch
8190c3e5e7 rename DoTileAnimation to AnimateTileset 2013-09-01 00:07:10 -04:00
yenatch
fc6bc8e311 rename graphics request handlers to Serve1bppRequest and Serve2bppRequest
these had some really dumb names
2013-09-01 00:02:35 -04:00
yenatch
abce472354 fix PushOAM references in VBlank 2013-08-31 21:47:28 -04:00
yenatch
28fd514bef recomment tileset animation interface 2013-08-31 21:47:22 -04:00
yenatch
0a821fe964 recomment bg map update functions 2013-08-31 21:47:05 -04:00
yenatch
2bae1797c4 bg map width/height constants 2013-08-31 21:12:23 -04:00
Bryan Bishop
d4aa6edfa7 bump submodule to v1.2.0 2013-08-31 13:01:45 -05:00
Bryan Bishop
12c1d874b9 Merge branch 'master' into refactor-preprocessor
Conflicts:
	preprocessor.py

Also bump the extras submodule to a version of pokemontools with a
suitable version of the preprocessor. The changes from 'master' for
preprocessor.py have been inserted into pokemontools prior to the
submodule bump.
2013-08-31 12:47:23 -05:00
Bryan Bishop
c0a01c9982 Merge pull request #185 from kanzure/preprocessor-performance
Preprocessor performance improvements.

This recliams 0.4 seconds.
2013-08-31 10:19:17 -07:00
Bryan Bishop
d8c82b7896 Merge pull request #184 from kanzure/preprocessor-macro-sanity-check-function
Move macro sanity check into a separate function.
2013-08-31 10:18:22 -07:00
Bryan Bishop
6191559c53 give preprocessor.py a main() 2013-08-31 12:12:09 -05:00
Bryan Bishop
a74462bc52 even better performance for read_line 2013-08-31 12:03:48 -05:00
Bryan Bishop
473bd192d9 better read_line performance in preprocessor
Jump out of read_line early if the line is an empty string or a newline.
2013-08-31 11:57:01 -05:00
Bryan Bishop
7eaf5bf726 reset stdout in prequeue.py near end
Other output shouldn't be dumped into items/item_attributes.tx by
default.
2013-08-31 11:07:49 -05:00
Bryan Bishop
70be18427b don't call load_pokecrystal_macros 2000 times
Also, don't call make_macro_table 2000 times by only calling it once and
passing the result.
2013-08-31 11:04:27 -05:00
Bryan Bishop
2fd792bbda move macro sanity check into separate function
This moves out from macro_translator the macro/param length sanity check
into a function called check_macro_sanity.
2013-08-31 10:39:49 -05:00
Bryan Bishop
ca0981eb36 Merge pull request #183 from kanzure/preprocessor-macro-function
Function to make the preprocessor "macros" list.
2013-08-31 08:27:21 -07:00
Bryan Bishop
a429bce189 Merge branch 'master' into preprocessor-macro-function 2013-08-31 10:22:35 -05:00
Bryan Bishop
e91fb8ac14 Merge pull request #182 from kanzure/preprocessor-asserts
Use PreprocessorException instead of AssertionError in preprocessor
2013-08-31 08:17:51 -07:00
Bryan Bishop
ba67d3ba46 Merge branch 'master' into preprocessor-asserts 2013-08-31 10:17:25 -05:00
Bryan Bishop
5815edf382 refactor preprocessor macros into a function
Remove the "macros" global and instead use a function to construct a
list of macros.
2013-08-31 10:13:17 -05:00
Bryan Bishop
5118fb7578 Merge pull request #181 from kanzure/remove-globals-from-preprocessor
Remove globals from preprocessor.
2013-08-31 08:11:08 -07:00
Bryan Bishop
63c2dc2f1f docstring for prequeue.py 2013-08-31 10:03:37 -05:00
Bryan Bishop
ebb591a7ec make a MacroException more verbose in preprocessor 2013-08-31 09:56:24 -05:00
Bryan Bishop
93514b1862 convert a macro_translator assert in preprocessor
AssertionError -> PreprocessorException
2013-08-31 09:54:03 -05:00
Bryan Bishop
95f7270141 raise MacroException instead of Exception
A more specific exception means that error handling can actually work in
the future.
2013-08-31 09:51:31 -05:00
Bryan Bishop
2c22d9220c fix "raise Exception" formatting in preprocessor 2013-08-31 09:50:17 -05:00
Bryan Bishop
ecedde1993 replace an assert in macro_translator
Use a MacroException instead of an AssertionError.
2013-08-31 09:46:11 -05:00
Bryan Bishop
1ce2bccd37 generic preprocessor-specific exception classes
These are basic python Exception subclasses that can be used to throw
more specific errors and exceptions from within the preprocessor.

AssertionError is not a good idea.
2013-08-31 09:45:12 -05:00
Bryan Bishop
998fa0b198 remove the do_macro_sanity_check global 2013-08-31 09:37:55 -05:00