When a non-english translation is used, hcf.py on a hacked bot fails.
FreedroidRPG 0.16rc2-14-g39f9f25 encountered a problem in function:
resume_lua_coroutine
Error running Lua code: ../map/script_helpers.lua:336: bad argument #3 to
'format' (number has no integer representation).
Erroneous LuaCode={
329 function chat_says_format(text, ...)
330 local arg = {...}
331 local no_wait = "WAIT"
332 if (arg[#arg] == "NO_WAIT") then
333 no_wait = "NO_WAIT"
334 table.remove(arg)
335 end
>336 text = string.format(text, table.unpack(arg))
337 return text, no_wait
338 end
}
I'm not sure what the error is, swapping %s and %d in the dialog didn't help
anything.
|