neat-donk/config.lua

84 lines
1.4 KiB
Lua
Raw Normal View History

local _M = {}
2021-03-23 00:54:01 -04:00
local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1")
2021-03-06 09:54:39 -05:00
--[[
Change script dir to your script directory
--]]
2021-03-06 09:54:39 -05:00
_M.ScriptDir = base
_M.StateDir = _M.ScriptDir .. "/state/"
_M.PoolDir = _M.ScriptDir .. "/pool/"
2021-04-09 15:06:55 -04:00
_M.ROM = _M.ScriptDir .. "/rom.sfc"
--[[
At the moment the first in list will get loaded.
Rearrange for other savestates. (will be redone soon)
--]]
_M.State = {
-- W1.1 Pirate Panic
"PiratePanic.lsmv",
"PiratePanicDitch.lsmv",
"PiratePanicKremcoin.lsmv",
}
_M.Filename = _M.PoolDir .. _M.State[1]
--[[
Start game with specific powerup.
0 = No powerup
1 = Mushroom
2 = Feather
3 = Flower
Comment out to disable.
--]]
_M.StartPowerup = 0
_M.NeatConfig = {
2021-04-29 09:32:55 -04:00
DisableSound = false,
Threads = 7,
--Filename = "DP1.state",
SaveFile = _M.Filename .. ".pool",
Filename = _M.Filename,
Population = 300,
DeltaDisjoint = 2.0,
DeltaWeights = 0.4,
DeltaThreshold = 1.0,
StaleSpecies = 15,
MutateConnectionsChance = 0.25,
PerturbChance = 0.90,
CrossoverChance = 0.75,
LinkMutationChance = 2.0,
NodeMutationChance = 0.50,
BiasMutationChance = 0.40,
StepSize = 0.1,
DisableMutationChance = 0.4,
EnableMutationChance = 0.2,
TimeoutConstant = 20,
MaxNodes = 1000000,
}
_M.ButtonNames = {
"B",
"Y",
"Select",
"Start",
"Up",
"Down",
"Left",
"Right",
"A",
"X",
"L",
"R"
}
_M.BoxRadius = 6
_M.InputSize = (_M.BoxRadius*2+1)*(_M.BoxRadius*2+1)
_M.Running = true
return _M