Print seed at the start of a run

Since BizHawk seems to have a memory leak, it would be nice to know the seed of runs where the script terminates.

This also prints the current pokebot version, since a same seed  run won't be consistent between versions.
This commit is contained in:
Peter K. 2015-04-10 02:46:17 +02:00
parent 174b07cc7c
commit a0ba20c831
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ local function resetAll()
print("RUNNING WITH A FIXED SEED ("..strategies.seed.."), every run will play out identically!")
else
strategies.seed = os.time()
print("PokeBot version "..VERSION.." starting new run with seed "..strategies.seed..".")
end
math.randomseed(strategies.seed)
end