Adding wrong ware per script crashes game
Bug #1638280 reported by
Notabilis
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
When creating and filling a building per lua script, the game crashes when the ware can not be stored in the building.
Version: trunk/r8163
Steps to reproduce:
- Modify:
data/tribes/
- Give the lime kiln "log" instead of "coal" as input.
- Start a game as a barbarian fortified village.
Expected behavior would be an ingame message about the error (as hinted by the console output and happening on other lua errors). Unfortunately, the game crashes while trying to do so.
Related branches
lp:~widelands-dev/widelands/bug-1638280-coroutine-messages
- Notabilis: Approve
-
Diff: 33 lines (+11/-4)1 file modifiedsrc/logic/cmd_luacoroutine.cc (+11/-4)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
status: | Triaged → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
We actually get these a lot with Lua programming errors, and it's sort of on purpose - we didn't halt these in the past and ended up with some bugs that nobody noticed for a good while.
It is still possible to unpause the game and continue playing, so this doesn't qualify as a crash.
Attaching a screenshot of the error message.