Commit Graph

500 Commits

Author SHA1 Message Date
yenatch
ffdf82fa45 downward triangle character 0xee
original-commit-id: 2acb46f6b58156ee3380a6203070ef2096db4b84
2013-05-01 23:18:38 -04:00
yenatch
f8dd005ee7 Fix PointerLabelToScriptPointer class
used the current address instead of the parsed address

original-commit-id: 9fc8d527f727dedfb8dd718cfea9e29d7b26775d
2013-04-30 20:29:15 -04:00
yenatch
9114f86aa3 damagecalc is actually damagestats; itemmultiplier is actually damagecalc
original-commit-id: 494f4c13fe2a45d0569bde2fc06e1bdf3fbfc857
2013-04-20 02:55:50 -04:00
yenatch
8fbba79bdf make chars consistent with preprocessor
original-commit-id: e21fc0fad19a4411c613d9caadfe13bc6f438d34
2013-03-29 21:50:24 -04:00
yenatch
ee31193dfc dump move effects
original-commit-id: dc81d0cfcfa92ecfab99984ee674d0fe3e6c19cf
2013-03-29 18:54:42 -04:00
yenatch
d6497d6a70 fix path handling in png make target
lz files were being decompressed to the top directory (gfx/)

original-commit-id: b570c4d6e660ffe36427a29ee34f87298b77bfda
2013-03-18 16:36:30 -04:00
yenatch
c749f4bb5b Fix unused function parse_map_header_by_id
'Dunno' exception always fired even if parameters were correct

original-commit-id: c19dcb996c26111d5ccda8cb783ccbb15348992b
2013-03-18 00:30:37 -04:00
Bryan Bishop
68c2b09745 Merge pull request #122 from yenatch/master
vba config shouldn't need fiddling out of the box

original-commit-id: 36a0acbde17ede24152840257e8f12918cd9c6b6
2013-03-07 21:05:14 -08:00
yenatch
3c166db9c5 vba - generalize project path in config
original-commit-id: a46a4b35a2fa3ceefb6a283480a4e6a9efe8424c
2013-03-07 23:39:21 -05:00
yenatch
afbed06238 vba - suppress joypad input message
original-commit-id: 91b24953f615569d5130cb1ccceffa8149cc42c0
2013-03-07 23:27:55 -05:00
Bryan Bishop
3f7de71048 vba - record/replay button sequences
original-commit-id: 6a3cf4e39391560ec978432ec797ce77d13cd76b
2013-03-05 01:56:25 -06:00
Bryan Bishop
ee4a7b53dd vba - keyboard input optimization
original-commit-id: 0fa5d9a16217993922c88f7ec83ae99857a31267
2013-03-04 03:08:00 -06:00
Bryan Bishop
bb839a1f9e vba - basic cheating infrastructure
original-commit-id: a1ed7e76583127562c73bf12766ba2958451b9dc
2013-03-03 21:42:35 -06:00
Bryan Bishop
ef2813c399 vba - separate config
original-commit-id: 9ee0600524218d47ce2faa9b122a8e2b498e9b66
2013-03-01 22:45:30 -06:00
Bryan Bishop
641f3dafbf vba - run without unit tests
original-commit-id: 3255093451d5828dd3e2b3a0132858a296ee4777
2013-03-01 22:31:20 -06:00
Bryan Bishop
e62461c86b vba - also install jython
original-commit-id: c2932b0490dc9cf7cce8ace6a85eecb49fd8e362
2013-03-01 22:11:45 -06:00
Bryan Bishop
016bc97295 vba - improve install instructions
original-commit-id: e59fa73c95d11aaee8a5759baea3ed0b3fde2741
2013-03-01 21:40:49 -06:00
yenatch
852043eab2 Script commands 0xb2 and 0xcc don't exist
original-commit-id: a7c260f4f4b843cfed1d8f39d3fca396cacc95c2
2013-03-01 16:22:35 -05:00
Bryan Bishop
e06886df6d fix bank handling in vba.call
original-commit-id: bcfac567ed5bb9e5254a41fc7ef20d325d5763b5
2013-03-01 13:30:44 -06:00
Bryan Bishop
3cdb1a5a8e vba - example unit testing of roms
original-commit-id: f0767fb15a2c6364b81f864d8e6c4319da8e2f33
2013-03-01 12:36:17 -06:00
Bryan Bishop
16aa4af022 vba - call arbitrary functions from jython
original-commit-id: caa1dc10dded1e4dfea148be11ca1d37172c623a
2013-03-01 02:43:55 -06:00
Bryan Bishop
f813380da3 vba - fix off-by-one error in registers
original-commit-id: b543827ee4d18caa083be5ce28cf2c9aa1129f28
2013-02-28 22:26:58 -06:00
Bryan Bishop
fdf08a78ca vba - better way to deal with registers
original-commit-id: 7dc2c3129b7c5dbf1cf334d33a10b045a2de1596
2013-02-28 22:23:01 -06:00
Bryan Bishop
fff2e9fa4e vba - get text on screen
original-commit-id: 37fac8a71427da5517780739414967273eb011ba
2013-02-28 20:38:11 -06:00
Bryan Bishop
11f07db528 vba - set_registers
original-commit-id: 4941f473a28d6a360b7c013fcd41072149f21b35
2013-02-28 04:33:54 -06:00
Bryan Bishop
cd19630af5 remove code slop
original-commit-id: 9a20ba1d3f8b5680773bc65ed8497d2519ccb421
2013-02-28 04:32:28 -06:00
Bryan Bishop
7facd46627 vba warp function
original-commit-id: a98dcc1745dac35420d8d37d7578123919038485
2013-02-28 04:31:45 -06:00
Bryan Bishop
4f71947645 disassemble scripting engine commands
All commands are in scripting.asm, and there's also a small python
script that was written to assist with some of the automation.

original-commit-id: 23003bd772a2b025ea1972fade00309cc04003a7
2013-02-27 23:31:12 -06:00
Bryan Bishop
2b2f00f08b update gbz80disasm for handling known fall-throughs
When disassembling a group of functions, sometimes there are other
functions known in advance. By passing in a list called stop_at to
gbz80disasm, it is possible to prevent disassembled asm from running on
for longer than necessary.

original-commit-id: 01e10a11b27978c40e0f5fc3334dfd66c1a004a3
2013-02-27 21:41:03 -06:00
Bryan Bishop
a1dce154d4 update automatic main.asm insertion
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-27 21:38:53 -06:00
Bryan Bishop
1230ed649a include_last_address for disassembler
This is an extra option that is on by default for gbz80disasm, which is
useful in situations where you may not want the last address to be
included (like if the output of the disassembler is going to be sent to
to_asm anyway).

original-commit-id: 381d3e76b73302672c0d568600f78f15f5cd0fcf
2013-02-27 20:03:18 -06:00
Bryan Bishop
d847dcd8f4 make to_asm more configurable
original-commit-id: affcd587d69b18d84bcb473b28723613b755c846
2013-02-27 20:02:51 -06:00
Bryan Bishop
c7a67544b7 fix parameters for verbosegiveitem2 definition
original-commit-id: 2a04c1c20a22f13ff3f0b0a8ce2d8e96b8798ef8
2013-02-27 17:22:07 -06:00
Bryan Bishop
6aa350380c describedecoration is an ender
original-commit-id: d2b464e51dbe84c26982e5863eacca8d7db09fc5
2013-02-27 17:21:10 -06:00
Bryan Bishop
44ecf8ed24 oops, include map_names
original-commit-id: 821d7948981924a4b8145edf072a69ab799ddd14
2013-02-27 03:01:49 -06:00
Bryan Bishop
a6665230c9 various helper functions for the vba interface
New vba.py features include:
* get_memory_at
* get_memory_range
* set_memory_at

Also, the "crystal" class has a number of specialty helpers:
* crystal.walk_through_walls
* crystal.get_player_name
* crystal.get_map_name
* crystal.get_xy
* crystal.nstep (which sets memory each step by calling certain
* functions, like walk_through_walls)
* crystal.is_in_battle
* crystal.get_gender

original-commit-id: ec098d1a03e28e07c3bbd3174b5f02b713c24b6f
2013-02-26 21:49:54 -06:00
Bryan Bishop
a799f922fc separate map_names into map_names.py
original-commit-id: 160acfa2967e898f97ba2b92e8602146bdf5b714
2013-02-26 21:30:24 -06:00
Bryan Bishop
5599b59ce4 jython bindings to vba-linux/vba-closure (vba-rr)
A bunch of functions and tools to run vba-clojure (a fork of
vba-rerecording specifically for compiling on Linux, bound to the JVM
through JNI).

original-commit-id: 12c82550674e1282a987dc0477dd6a34db0bed28
2013-02-26 02:29:12 -06:00
yenatch
af678654e6 Export any detected palettes to png by default
Checks for any palette using the same name as the 2bpp file.

original-commit-id: 7f7f4612404b6c898d4cb50fb4468580dbd46910
2013-02-12 03:40:41 -05:00
yenatch
61f08140d6 Fix png export orientation
A quirk of the Decompressed class dissociated the orientation from
the output attribute.

The makefile no longer suppresses output since it's still relevant.

original-commit-id: ad0578fda0aec42c28e3db26bbf68d06aa19f63e
2013-02-12 03:31:35 -05:00
yenatch
d534f74635 Finish off make target for png generation
Now any existing lz files are converted to 2bpp, and all 2bpp files
are converted to png.

original-commit-id: 0b8c5ef75b69521ccbd3e9b30431fba0ba2d569e
2013-02-11 17:59:43 -05:00
yenatch
27ae7df267 better dimension handling in 2bpp->png
original-commit-id: 98d8914b62750ea7575a5c16ce954cc0bbedb825
2013-02-11 04:13:36 -05:00
yenatch
2c21679768 Add build target to mass-generate pngs from 2bpp files
original-commit-id: d1172e1fb67fe8bd9c33cc4ab0d45905167d4c53
2013-02-11 04:13:36 -05:00
yenatch
f0d60d72f7 Infrastructure to dump pngs for 2bpp graphics
original-commit-id: 80600f929193208e435e6ce833e4207a6cd5a382
2013-02-11 04:12:59 -05:00
yenatch
a8876bffc3 Don't try to convert empty 2bpp files
Also, make non-square images 1 tile wide
Minor path fixes and cleanup

original-commit-id: e7762890aac4da72e75c7e7365c1cd924dadbc85
2013-02-09 06:26:09 -05:00
yenatch
0dbb8770c5 Add some command-line interfaces for use w/ makefile
Extras:
-function to dump trainer pals
-fix testing leftover in a compression function
-keep load_rom() from getting in the way (relative address breaks extras)

original-commit-id: 70280c0c3f64e41edaed8d2726c6472bec395f55
2013-02-09 04:36:36 -05:00
yenatch
9536d00bcc implement png import/export
palette export works fine, but palette import is disabled for now

original-commit-id: da205909c056fd2299fec5bc546999929192a629
2013-02-07 21:03:19 -05:00
yenatch
bb425e6cec Condense pic dimensions table
original-commit-id: 4d44c2c0e64d7e1eed97fe1b246638c251d00972
2013-02-06 02:09:57 -05:00
Bryan Bishop
d3a1ef222a simplify load_rom in gbz80disasm
original-commit-id: 57200b6cf75040b9696ae54bdac69d5e452a2c48
2013-02-03 15:18:06 -06:00
Bryan Bishop
c789a2962a enable labels in gbz80disasm
fixes #102

original-commit-id: 82b8b5121a574b6e29c72a95fd305134fd0a08cf
2013-02-03 15:10:14 -06:00