Screenshot of completed Seed

This adds an automated screenshot once a run is completed including
version, seed, frames and if reset for time. This has been added for
easier sharing of seeds.
This commit is contained in:
Pariah Jones 2015-04-12 19:21:50 -04:00
parent f5c35116e2
commit a7f792233f
1 changed files with 11 additions and 0 deletions

View File

@ -2284,6 +2284,17 @@ strategyFunctions.champion = function()
return Strategies.hardReset("Back to the grind - you can follow on Twitter for updates on our next good run! https://twitter.com/thepokebot")
end
if status.tries == 0 then
if STREAMING_MODE and CUSTOM_SEED ~= nil then
gui.text(0, 0, "PokeBot v"..VERSION)
gui.text(0, 7, "Seed: "..Strategies.seed)
gui.text(0, 14, "Reset for time: "..tostring(RESET_FOR_TIME))
gui.text(0, 21, "Time: "..Utils.elapsedTime())
gui.text(0, 28, "Frames: "..Utils.frames())
client.setscreenshotosd(true)
client.screenshot()
client.setscreenshotosd(false)
gui.cleartext()
end
Strategies.tweetProgress("Beat Pokemon Red in "..status.canProgress.."!")
if Strategies.seed then
print("v"..VERSION..": "..Utils.frames().." frames, with seed "..Strategies.seed)