Issue844

Title Aftertakeover: hcf.py fails with translations enabled
Priority 0.16 rc bugs Status resolved
Assigned To matthiaskrgr Keywords
Linked issues Watchers matthiaskrgr

Submitted on 2015-10-31 17h21 by matthiaskrgr, last changed by matthiaskrgr.

Messages
Author: matthiaskrgr Date: 2015-10-31   17h21
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.
Author: matthiaskrgr Date: 2015-10-31   17h37
Fixed via cc521ad226b5f0d2873417d3bf750cf3a13361ca
History
Date User Action Args
2015-10-31 17:37:59matthiaskrgrsetstatus: open -> resolved
assignedto: matthiaskrgr
messages: + msg3267
nosy: + matthiaskrgr
2015-10-31 17:21:32matthiaskrgrcreate