"Lua Coroutine Failed" as Inbox Message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
When playing the "territorial lord" mode (I used it in single-player mode) and you managed to get 50% of the land under your control, you have to wait for 20 minutes. At the end of the first 15 minutes there was a pop-up message in my inbox saying that there was a error in Lua.
The heading is "Lua Coroutine Failed" and the body shows me some additional information:
[/build/
[string
"script/
attempt to compare number with nil
(I think there is some more content in the first / third row, but it's out of the view)
It's weird that the player get such a message as inbox message (with the type "undefined").
I hope I was able to help somebody fixing it. ^^
Related branches
- Notabilis: Approve (testing)
-
Diff: 1026 lines (+455/-385)8 files modifieddata/scripting/win_conditions/territorial_functions.lua (+291/-0)
data/scripting/win_conditions/territorial_lord.lua (+17/-157)
data/scripting/win_conditions/territorial_time.lua (+23/-223)
data/scripting/win_conditions/win_condition_functions.lua (+93/-0)
data/tribes/scripting/help/worker_help.lua (+1/-1)
src/scripting/lua_map.cc (+21/-3)
src/scripting/lua_map.h (+2/-1)
test/maps/lua_testsuite.wmf/scripting/immovables_descriptions.lua (+7/-0)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
Thanks for reporting!
It's this loop:
if teampoints[t] > ( #fields / 2 ) then
-- this team owns more than half of the map's area
foundcandid ate = true
if candidateisteam == true and currentcandidate == t then
remaining_ time = remaining_time - 30
else
currentcandidat e = t
candidateisteam = true
remaining_ time = 20 * 60 -- 20 minutes
end
end
line 132 in the current development version, so the bug is probably still there.