|
|
@ -698,11 +698,14 @@ local valid_script_flags = {
|
|
|
|
local warned_scripts = {}
|
|
|
|
local warned_scripts = {}
|
|
|
|
|
|
|
|
|
|
|
|
function dfhack.run_script(name,...)
|
|
|
|
function dfhack.run_script(name,...)
|
|
|
|
if not warned_scripts[name] and require('helpdb').get_entry_tags(name).untested then
|
|
|
|
if not warned_scripts[name] then
|
|
|
|
warned_scripts[name] = true
|
|
|
|
local helpdb = require('helpdb')
|
|
|
|
dfhack.printerr(('UNTESTED WARNING: the "%s" script has not been validated to work well with this version of DF.'):format(name))
|
|
|
|
if helpdb.is_entry(name) and helpdb.get_entry_tags(name).untested then
|
|
|
|
dfhack.printerr('It may not work as expected, or it may corrupt your game.')
|
|
|
|
warned_scripts[name] = true
|
|
|
|
qerror('Please run the command again to ignore this warning and proceed.')
|
|
|
|
dfhack.printerr(('UNTESTED WARNING: the "%s" script has not been validated to work well with this version of DF.'):format(name))
|
|
|
|
|
|
|
|
dfhack.printerr('It may not work as expected, or it may corrupt your game.')
|
|
|
|
|
|
|
|
qerror('Please run the command again to ignore this warning and proceed.')
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return dfhack.run_script_with_env(nil, name, nil, ...)
|
|
|
|
return dfhack.run_script_with_env(nil, name, nil, ...)
|
|
|
|