Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

命令行w2l没有执行插件 #78

Closed
josStorer opened this issue Aug 17, 2020 · 1 comment
Closed

命令行w2l没有执行插件 #78

josStorer opened this issue Aug 17, 2020 · 1 comment

Comments

@josStorer
Copy link

使用如下脚本,图形界面能够在w3x2lni的script目录创建文件,而通过命令行转换则不执行,并且没有在命令行帮助中看到相关选项

my_plugin.lua

local mt = {}

mt.info = {
    name = 'issue',
    version = 1.0,
    author = 'issue',
    description = 'issue'
}

function mt:on_full(w2l)
    file = io.open("test.txt","w")
    for id, obj in pairs(w2l.slk.unit) do
        file:write(obj.name.."\n")
        file:write(obj.art.."\n")
    end
    file:close()
end

return mt
@josStorer josStorer changed the title 命令行w2l没有执行脚本 命令行w2l没有执行插件 Aug 17, 2020
@josStorer
Copy link
Author

已修复
5850b6b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant