Check text on error
This commit is contained in:
parent
1cd3618b6f
commit
80ab0405ec
3 changed files with 3 additions and 10 deletions
8
game.lua
8
game.lua
|
@ -525,14 +525,6 @@ function _M.getInputs()
|
|||
end
|
||||
end
|
||||
|
||||
-- XXX Will this work? Stay tuned
|
||||
if _M.getClimbing() then
|
||||
table.insert(inputs, 1)
|
||||
else
|
||||
table.insert(inputs, 0)
|
||||
end
|
||||
table.insert(inputDeltaDistance, 99)
|
||||
|
||||
return inputs, inputDeltaDistance
|
||||
end
|
||||
|
||||
|
|
|
@ -91,7 +91,8 @@ local function waitLoop(inputLine)
|
|||
local ok, inputData = serpent.load(inputLine)
|
||||
|
||||
if not ok or inputData == nil or speciesId == inputData[1].id then
|
||||
print("Deserialization error")
|
||||
io.stderr:write("Deserialization error\n")
|
||||
io.stderr:write(inputLine.."\n")
|
||||
return
|
||||
end
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ local game = nil
|
|||
local mathFunctions = dofile(base.."/mathFunctions.lua")
|
||||
local util = dofile(base.."/util.lua")()
|
||||
|
||||
local Inputs = config.InputSize+2
|
||||
local Inputs = config.InputSize+1
|
||||
local Outputs = #config.ButtonNames
|
||||
|
||||
local guiWidth = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue