Closed hrwn closed 3 years ago
~it works when I don't use inspect module~
...
-- local inspect = require('inspect')
...
function Utilities:Inspect(tableData)
--return inspect(tableData)
end
...
function Utilities:TableToChat(tableData, color)
if color == nil then
--Utilities:Print(inspect(tableData))
else
--Utilities:Print(inspect(tableData), color)
end
end
...
*edit: Linux use case sensitive, just rename the filename instead edit like above
Issue
when I try to call fretbots from console it give me error about module inspect not found and fretbots not running
Environment
Fretbots version : 0.6.1.2 Bot : A Beginner AI:NEW Operating system : arch linux
Steps to reproduce
copy all vscripts from fretbots into vscripts dota directory, create custom lobby with localhost and cheat enable, open dota console then write
sv_cheats 1; script_reload_code fretbots
but it show[VScript] Script not found (scripts/vscripts/fretbots)
, then I change it intosv_cheats 1; script_reload_code FretBots.lua
then showScript Runtime Error: scripts/vscripts/Utilities.lua:9: module 'inspect' not found: no field package.preload['inspect']Failed to read scripts/vscripts/inspect.lua
wheareas file inspect.lua exists.Expected behaviour
show fretbots welcome message
Actual behaviour
don't show anything on chat, when I open console, it show
Script Runtime Error: scripts/vscripts/Utilities.lua:9: module 'inspect' not found: no field package.preload['inspect']Failed to read scripts/vscripts/inspect.lua