This commit is contained in:
Kyle Coburn 2015-04-11 14:05:43 -07:00
parent 059c83a193
commit 8427a7cadc
2 changed files with 4 additions and 4 deletions

View File

@ -15,21 +15,21 @@ Running the PokéBot on your own machine is easy. You will need a Windows enviro
##About BizHawk## ##About BizHawk##
BizHawk 1.6.1 (Windows only) is the only version known to work. Later versions, like 1.7.2a do not seem to work, due to differences with reading bytes from memory. BizHawk 1.6.1 (Windows only) is the only version known to work. Later versions, like 1.7.2a do not seem to work, due to differences with reading bytes from memory.
Run the [prereq installer](http://sourceforge.net/projects/bizhawk/files/Prerequisites/bizhawk_prereqs_v1.1.zip/download), which should update a C++ distributable needed by BizHawk Run the [prereq installer](http://sourceforge.net/projects/bizhawk/files/Prerequisites/bizhawk_prereqs_v1.1.zip/download), which should update a C++ distributable needed by BizHawk
You can unextract BizHawk-1.6.1.zip anywhere. You can unextract BizHawk-1.6.1.zip anywhere.
##Setting up and verifying the ROM## ##Setting up and verifying the ROM##
The ROM file should `Pokemon Red.gb`. The file name doesn't matter, but upload it to http://www.fileformat.info/tool/hash.htm to verify it's the US version. The linked website will spit out lots of hashes, make sure the two below match: The ROM file should `Pokemon Red.gb`. The file name doesn't matter, but upload it to http://www.fileformat.info/tool/hash.htm to verify it's the US version. The linked website will spit out lots of hashes, make sure the two below match:
``` ```
MD5: 3d45c1ee9abd5738df46d2bdda8b57dc MD5: 3d45c1ee9abd5738df46d2bdda8b57dc
SHA-1: ea9bcae617fdf159b045185467ae58b2e4a48b9a SHA-1: ea9bcae617fdf159b045185467ae58b2e4a48b9a
``` ```
Open the ROM file with BizHawk (Drag the .gb file onto EmuHawk), and Pokémon Red should start up. Open the ROM file with BizHawk (Drag the .gb file onto EmuHawk), and Pokémon Red should start up.
The colors may look weird. To fix this, go to GB>Palette Editor, and then find the POKEMON RED.pal file which should be under Gameboy>Palettes in the directory where BizHawk was unextracted. The colors may look weird. To fix this, go to GB>Palette Editor, and then find the POKEMON RED.pal file which should be under Gameboy>Palettes in the directory where BizHawk was unextracted.
##Running the bot## ##Running the bot##

View File

@ -344,7 +344,7 @@ strategyFunctions.catchNidoran = function()
if Battle.isActive() then if Battle.isActive() then
local isNidoran = Pokemon.isOpponent("nidoran") local isNidoran = Pokemon.isOpponent("nidoran")
if isNidoran and Memory.value("battle", "opponent_level") > 2 then if isNidoran and Memory.value("battle", "opponent_level") > 2 then
if Strategies.initialize() then if not Bridge.polling then
Bridge.pollForName() Bridge.pollForName()
end end
end end