summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-11detect the "mandatory switch" menuvba-automationBryan Bishop
This requires a slightly slower text_wait function. There is probably a way to refactor that function in a way that doesn't cause cancer.
2013-11-11switch tests to use new battle starterBryan Bishop
2013-11-10bootstrap the battle tests with more monsBryan Bishop
Use the givepoke function to add a few more pokemon to the team before starting the battle-related tests. There are some features of the battle handling code that require more than one pokemon to be present in the party.
2013-11-10remove more dead codeBryan Bishop
2013-11-10remove old functionsBryan Bishop
2013-11-10remove a dead functionBryan Bishop
2013-11-10start_trainer_battle spawns a battleBryan Bishop
2013-11-10simplify givepoke by using inject_script_into_romBryan Bishop
2013-11-10write script to ROM and executeBryan Bishop
This handles all of the usual tasks that will be required for injecting and running custom scripts.
2013-11-10make givepoke work (h/t padz)Bryan Bishop
2013-11-10an attempt at givepokeBryan Bishop
2013-11-10function to start a battle by rocksmashBryan Bishop
01:04 < padz> u cunt
2013-11-10method to lower enemy hp during battleBryan Bishop
2013-11-10implement call_script to call CallScriptBryan Bishop
This is the entry point for calling in-game scripts.
2013-11-10write inject_asm_into_romBryan Bishop
This method injects asm straight into the ROM loaded in the emulator. It does not overwrite the ROM on the file system. This method is much slower than the wram version because it involves copying memory multiples and copying the entire ROM into python and then sending it back to the emulator.
2013-11-10a working inject_asm implementationBryan Bishop
2013-11-10crude attempt at injecting asm into wramBryan Bishop
2013-11-10allow bank=0 in call()Bryan Bishop
2013-11-10fix a few call() callsBryan Bishop
2013-11-10stop writing 0x4000 everywhereBryan Bishop
2013-11-10make call() calculate bank addressesBryan Bishop
2013-11-10broken attempt at calling givepokeBryan Bishop
2013-11-09make sure an attack works (new test)Bryan Bishop
2013-11-09draw the menu in skip_until_input_requiredBryan Bishop
Step forward 10 frames so that the menu actually draws. Otherwise the user will probably be confused about the actual state of the battle.
2013-11-09write another quick battle testBryan Bishop
2013-11-09simplify the battle testsBryan Bishop
2013-11-09simplify the vba-related testsBryan Bishop
The imports for the emulator-related tests are now simplified in the tests/ folder. The bootstrapping.py file contains some shared functions that multiple test files might choose to use. Those functions probably belong in the actual module instead of in tests/. The battle-related tests have been separated from the other emulator tests.
2013-11-09Merge branch 'master' into vba-automationBryan Bishop
Conflicts: pokemontools/vba/vba.py
2013-11-09Merge pull request #47 from kanzure/testing-fixupsBryan Bishop
Testing fixups
2013-11-09fix an import in tests.pyBryan Bishop
2013-11-09fix some configuration in vba/vba.pyBryan Bishop
2013-11-09fix a syntax error in battle.pyBryan Bishop
2013-11-09Merge branch 'master' into vba-automationBryan Bishop
2013-11-09import Battle for testingBryan Bishop
2013-11-09Merge pull request #46 from kanzure/fix-old-parsers-test-importsBryan Bishop
Fix a few imports for testing an old func
2013-11-09fix a few imports for testing an old funcBryan Bishop
2013-11-09fix move() for lists of commandsBryan Bishop
2013-11-09a basic battle testBryan Bishop
2013-11-09even more comments in the battle routinesBryan Bishop
2013-11-09add a bunch of docstrings in the battlerBryan Bishop
2013-11-03implement more parts of the battlerBryan Bishop
2013-11-03attempting a few more trainer battlesBryan Bishop
2013-11-02a broken attempt at starting random battlesBryan Bishop
2013-11-02a naive implementation of start_trainer_battleBryan Bishop
This is a really dumb way to start a battle, but the other methods aren't working yet.
2013-11-02attempt to start a trainer battleBryan Bishop
2013-11-02fix a call to vba.shutdown in bootstrap()Bryan Bishop
2013-11-02autoplayer.bootstrap to call skip_introBryan Bishop
There are situations other than just testing where making a bootstrapped game state is a useful ability.
2013-11-02fix some hook calls in Battle.runBryan Bishop
2013-11-02simplify the number of battle-related classesBryan Bishop
2013-11-02a basic battle handling frameworkBryan Bishop