HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Feature #695007
"building_lost" signal
0%
Description
This forum thread bemoans the lack of a way for Lua scripts to know when a building has been lost for some reason.
Will need some sort of reason code -- "player_sold", "sold_obsolete", "sold_no_money", "razed", "sabotaged" etc.
Related issues
History
#1
Updated by Jacob Nevins over 4 years ago
I've no immediate plans to work on this.
#2
Updated by Marko Lindqvist over 4 years ago
- Sprint/Milestone set to 3.0.0
Since we know real life use-case and need to exist, we should try to get it handled in S3_0 already.
#3
Updated by Marko Lindqvist over 4 years ago
- Blocks Task #656466: S3_0 datafile format freeze (d3f) added
#4
Updated by Alina L. over 4 years ago
For reasons such as "sabotaged", there could be a "destroyer" Player (or maybe Unit).
#5
Updated by Marko Lindqvist almost 4 years ago
- Blocked by Feature #765940: building.name to lua API added
#6
Updated by Marko Lindqvist almost 4 years ago
- File 0010-Add-building_lost-signal-to-lua-API.patch 0010-Add-building_lost-signal-to-lua-API.patch added
- Status changed from New to In Progress
Here's a patch, but it's useless without Feature #765940
#7
Updated by Marko Lindqvist almost 4 years ago
- Status changed from In Progress to Resolved
#8
Updated by Marko Lindqvist almost 4 years ago
- Status changed from Resolved to In Progress
Current patch emits signal on building_lost() only. Server has number of direct calls to city_remove_improvement() that are not handled.
#9
Updated by Marko Lindqvist almost 4 years ago
- File 0008-Add-building_lost-signal-to-lua-API.patch 0008-Add-building_lost-signal-to-lua-API.patch added
- File 0005-Add-building_lost-signal-to-lua-API.patch 0005-Add-building_lost-signal-to-lua-API.patch added
- Status changed from In Progress to Resolved
- Handle all cases where building is lost, except if it happens via editor
- Fix some crashes if the lua script removes the city building was in
#10
Updated by Marko Lindqvist almost 4 years ago
- Status changed from Resolved to Closed
- Assignee set to Marko Lindqvist