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:
parent
174b07cc7c
commit
a0ba20c831
1
main.lua
1
main.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue