Commit Graph

820 Commits

Author SHA1 Message Date
Bryan Bishop
dc63d8d51d re-implement save_state
This can be used to dump state to a file based on the current
configuration of the running instance.
2013-09-22 00:49:44 -05:00
Bryan Bishop
6b56969ccf make vba.crystal accept config 2013-09-22 00:44:35 -05:00
Bryan Bishop
c44ab9b556 make the skippable decorator use config
Use the pokemontools configuration to determine where to save the save
states.
2013-09-22 00:28:43 -05:00
Bryan Bishop
713c4ceb77 fix the autoplayer bootstrapper for test_vba.py 2013-09-22 00:10:07 -05:00
Bryan Bishop
d0c53213c4 make the vba autoplayer use the new methods 2013-09-21 23:54:55 -05:00
Bryan Bishop
f0e75972a1 move tests into test_vba.py
They didn't belong in pokemontools/vba/vba.py in the first place.
2013-09-21 23:14:58 -05:00
Bryan Bishop
2a439694d6 combine some vba tests 2013-09-21 23:12:38 -05:00
Bryan Bishop
e3a596e7d8 fix a vba.py test (test_PlaceString) 2013-09-21 22:12:37 -05:00
Bryan Bishop
8869210062 Merge branch 'master' into vba-automation 2013-09-21 21:59:44 -05:00
Bryan Bishop
82fb73edc3 version bump to: v1.4.1
The previous version was uploaded with .swp files and a large libvba.so
that was in my working directory. I regret everything.
2013-09-21 21:45:51 -05:00
Bryan Bishop
480593e472 also exclude .*.swp files 2013-09-21 21:39:51 -05:00
Bryan Bishop
0da95fe05f version bump to: v1.4.0 2013-09-21 21:37:07 -05:00
Bryan Bishop
4b69463fb2 Merge pull request #35 from kanzure/include-everything
Include all pokemontools/ files in installs
2013-09-21 19:33:23 -07:00
Bryan Bishop
8caeec66b9 include all pokemontools/ files in installs 2013-09-21 21:32:29 -05:00
Bryan Bishop
7fdf53f162 switch vba.crystal to have instance methods 2013-09-21 21:24:38 -05:00
Bryan Bishop
8ca4bcf37e remove get_memory_range 2013-09-21 19:45:35 -05:00
Bryan Bishop
b1c34e88d5 move call into vba.crystal 2013-09-21 19:41:41 -05:00
Bryan Bishop
2f9df7133f move get_stack into vba.crystal 2013-09-21 19:34:46 -05:00
Bryan Bishop
fc3b2ded89 pass vba and registers into get_stack 2013-09-21 19:32:15 -05:00
Bryan Bishop
975eb02175 pass vba and registers into call() 2013-09-21 19:31:44 -05:00
Bryan Bishop
7f5151989b pass vba into get_memory_range 2013-09-21 19:29:52 -05:00
Bryan Bishop
55a436a144 fix some memory manipulation to use vba_wrapper 2013-09-21 16:07:51 -05:00
Bryan Bishop
d29f193037 placeholder for get_memory_range
But really, the old calls to get_memory_range should just be replaced
with code that uses vba.memory[:] directly.
2013-09-21 16:02:10 -05:00
Bryan Bishop
fecf601fd9 get_memory_at -> vba.read_memory_at 2013-09-21 15:57:24 -05:00
Bryan Bishop
645cce62c8 set_memory_at -> vba.write_memory_at
The set_memory_at function was moved into vba_wrapper. There's no reason
for that one to be defined in pokemontools.
2013-09-21 15:55:37 -05:00
Bryan Bishop
48896b1456 replace one more step() with vba.step() 2013-09-21 15:53:34 -05:00
Bryan Bishop
115ce6781e use vba.step() instead of step() 2013-09-21 15:52:44 -05:00
Bryan Bishop
ef1709a8be remove the custom press() implementation
This is now handled in vba_wrapper.
2013-09-21 15:47:39 -05:00
Bryan Bishop
51ff03e952 fix up some import lines 2013-09-21 15:42:54 -05:00
Bryan Bishop
053520b003 Merge branch 'master' into vba-automation 2013-09-21 15:32:47 -05:00
Bryan Bishop
5f959fa7c8 Merge pull request #31 from yenatch/map-editor
Another map editor.
2013-09-21 13:31:31 -07:00
Bryan Bishop
2374a9ce90 Merge pull request #33 from kanzure/dont-always-use-globals
Use try/except on globals.asm for preprocessing
2013-09-16 10:41:10 -07:00
Bryan Bishop
b67e68c6a1 use try/except on globals.asm for preprocessing 2013-09-16 12:40:37 -05:00
Bryan Bishop
4b36a0c41a Merge pull request #32 from kanzure/fix-an-import
Fix how pointers are imported
2013-09-16 10:37:39 -07:00
Bryan Bishop
427fbf4d04 fix how pointers are imported 2013-09-16 12:36:53 -05:00
yenatch
bd3b608188 barely-working map editor
works with both pokecrystal and pokered

version is crystal by default
2013-09-14 17:10:59 -04:00
Bryan Bishop
6809c951ac Merge pull request #30 from kanzure/cleanup-again
More cleanup of crystal.py
2013-09-12 21:45:01 -07:00
Bryan Bishop
0a9ccaebbb Merge pull request #29 from kanzure/fix-json-gitignore
Allow (some) json files in the repo
2013-09-12 21:40:30 -07:00
Bryan Bishop
9830c9dc0a Merge pull request #28 from kanzure/config-cleanup
Rename config.py -> configuration.py
2013-09-12 21:39:24 -07:00
Bryan Bishop
b9955a5e40 deglobalize map_internal_ids
Also, don't set global rom in the load_rom related methods. This will
nip everything for a while, but roms should be passed around as
references instead of globals.
2013-09-12 23:33:14 -05:00
Bryan Bishop
03a94980d8 pass around all_movements (not a global) 2013-09-12 23:27:44 -05:00
Bryan Bishop
6d075ba08c run_main -> main 2013-09-12 23:00:15 -05:00
Bryan Bishop
30afb173f5 pretty_print_trainer_id_constants to trainers.py 2013-09-12 22:57:45 -05:00
Bryan Bishop
10360d114f one preprocessor macro needs trainer_group_maximum 2013-09-12 22:51:24 -05:00
Bryan Bishop
97da7b7922 knock out some trainer group globals 2013-09-12 22:50:04 -05:00
Bryan Bishop
325a1d63de convert all_map_headers from a global 2013-09-12 22:36:47 -05:00
Bryan Bishop
b3bbd5f9cb don't use the old header parsing method 2013-09-12 22:29:56 -05:00
Bryan Bishop
0c1e9095d8 remove globals from some map group parsers 2013-09-12 22:27:33 -05:00
Bryan Bishop
c6f0f7f5c9 move old parsers from 'crystal' into crystalparts/ 2013-09-12 01:37:30 -05:00
Bryan Bishop
463cd6197f move find_labels_without_addresses into labels.py 2013-09-12 01:15:45 -05:00