Bryan Bishop
11f86368a4
Merge branch 'master' into vba-automation
2013-09-08 02:01:37 -05:00
Bryan Bishop
c5983b0ddc
Merge pull request #20 from kanzure/fix-labels
...
Fix an import in labels.py
2013-09-07 21:48:53 -07:00
Bryan Bishop
a6fc205a16
fix logging import in labels.py
2013-09-07 23:46:34 -05:00
Bryan Bishop
c83291b0d0
redo the vba autoplayer
...
This rewrites the basic methods to use the new primitives for vba
automation. There are still a number of bugs in here.
Also, the level grinding recursion is broken because there's no method
used to detect whether or not a wild battle is starting.
Waiting for a battle to really end is currently broken.
There's a problem when interacting with radios because of the sound
effect check in text_wait.
There should be unit tests, but there aren't any.
2013-09-07 23:39:26 -05:00
Bryan Bishop
eb669fb19a
remove some experimental methods
...
These methods weren't needed. Turns out the problem was frameskip, these
were just other attempts to try to do movement and text waiting.
2013-09-07 23:38:29 -05:00
Bryan Bishop
92a4be1776
better vba automation methods
2013-09-07 23:37:05 -05:00
Bryan Bishop
63bd0e4d6f
fix grammar in redtools/README.md
2013-09-05 11:07:34 -05:00
Bryan Bishop
d7d4718580
Merge pull request #17 from kanzure/readme-redtools
...
Basic README for redtools/
2013-09-05 09:05:17 -07:00
Bryan Bishop
8d8d708c32
basic README for redtools/
2013-09-05 11:03:32 -05:00
Bryan Bishop
ee05e2fe1d
Merge pull request #10 from kanzure/config
...
Configuration for paths
2013-09-04 20:38:11 -07:00
Bryan Bishop
c2712bb90f
Merge pull request #11 from kanzure/include-vba-files
...
Keep vba python files in released versions
2013-09-04 20:37:47 -07:00
Bryan Bishop
129b93b3d2
keep vba python files in released versions
2013-09-04 18:29:12 -05:00
Bryan Bishop
37441a35b1
make gbz80disasm use configuration
...
gbz80disasm now uses configuration to determine which files to load
before disassembling a chunk of bytes.
2013-09-02 13:25:49 -05:00
Bryan Bishop
5b02c020f4
make wram.py use config for paths
...
The WRAMProcessor class handles reading all constants and labels, which
are then used in gbz80disasm.
2013-09-02 12:33:03 -05:00
Bryan Bishop
2cf0cfa34d
class Preprocessor instead of just functions
2013-09-02 12:33:03 -05:00
Bryan Bishop
6f9ed6a829
basic config support
2013-09-02 12:33:03 -05:00
Bryan Bishop
672d527f9e
Merge pull request #9 from kanzure/fix-get_labels_between
...
Fix "labels" confusion in get_labels_between
2013-09-02 10:30:57 -07:00
Bryan Bishop
580f006a80
fix "labels" confusion in get_labels_between
...
There was both the labels module and a list called labels. Rename the
local variable to foundlabels instead.
2013-09-02 12:27:58 -05:00
Bryan Bishop
49a51a093c
Merge pull request #8 from kanzure/september-cleanup
...
Minor wram.py fix
2013-09-01 20:20:30 -07:00
Bryan Bishop
021ecb1124
make_wram_labels doesn't need globals now
2013-09-01 22:08:35 -05:00
Bryan Bishop
20ac842b6a
Merge branch 'master' into september-cleanup
2013-09-01 22:08:20 -05:00
Bryan Bishop
2e6d805aea
Merge pull request #7 from kanzure/september-cleanup
...
python cleanup
2013-09-01 19:34:50 -07:00
Bryan Bishop
52d4978974
move the map_names import to the top
...
Maybe it will get more attention up here. It needs to be cleaned up
since it's a global used throughout the source code, plus it gets
modified multiple times everywhere. Awful.
2013-09-01 16:42:05 -05:00
Bryan Bishop
43c912b4ee
remove a useless comment from pokered gbz80disasm
...
What were these doing here, anyway?
2013-09-01 16:38:28 -05:00
Bryan Bishop
2a951be35c
better ordering of imports in crystal.py
2013-09-01 16:34:17 -05:00
Bryan Bishop
acf23488e8
better docstrings in helpers.py
2013-09-01 16:31:55 -05:00
Bryan Bishop
5385ccd6d7
Merge branch 'master' into september-cleanup
2013-09-01 16:30:16 -05:00
Bryan Bishop
7aa016fb52
Merge pull request #4 from kanzure/fix-analyze-incbins
...
Apply pokered changes from 'fix-analyze-incbins'
2013-09-01 14:25:34 -07:00
Bryan Bishop
673555a75e
apply pokered changes from 'fix-analyze-incbins'
...
This helps to fix (pokered) gbz80disasm. These two disassemblers need to
be merged together as soon as possible.
2013-09-01 16:22:46 -05:00
Bryan Bishop
018f7cb540
fix tab in red gbz80disasm
2013-09-01 16:13:06 -05:00
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