RE: Animated Instruction
2018-03-10, 20:35 (This post was last modified: 2018-03-10, 20:50 by Jarema.)
2018-03-10, 20:35 (This post was last modified: 2018-03-10, 20:50 by Jarema.)
How register module to use in lua script via LDCAD.
String "model-build-animations.lua"]:14: module 'io' not found:Code:
-- get all lines from a file, returns an empty
-- list/table if the file does not exist
function io_lines_from(file)
if not file_exists(file) then return {} end
lines = {}
for line in io.lines(file) do
lines[#lines + 1] = line
end
return
PHP Code:
<?php
[string "model-build-animations.lua"]:108: attempt to index a nil value (global 'io')
no field package.preload['io']
no file '..\AppData\Roaming\LDCad\scripts\default\global\io.lua'
no file '..\AppData\Roaming\LDCad\scripts\default\modules\io.lua'
no file '..\LDCad\io.dll'
no file '..\LDCad\..\lib\lua\5.3\io.dll'
no file '..\LDCad\loadall.dll'
no file '.\io.dll'
Script main run failed.