|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001533||OpenClonk||Engine||public||2016-01-03 20:42||2017-08-20 11:29|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||9.0||Fixed in Version|
|Summary||0001533: Feature Request: Map script functions to work at runtime.|
|Description||I want to redraw the landscape at runtime, and it is quite confusing that [url=http://docs.openclonk.org/en/sdk/script/fn/DrawMap.html#DrawMap]DrawMap[/url] works with the [url=http://docs.openclonk.org/en/sdk/scenario/MapCreatorS2.html]Landscape.txt[/url] format only, and not with proplists as used in [url=http://docs.openclonk.org/en/sdk/script/MapScript.html]Map.c[/url], since the latter seem more convenient than writing a map string into a function.|
|Tags||No tags attached.|
Since Landscape.txt should be slowly abandoned I propose to make DrawMap and DrawDefMap only work with map scripts.
I think we don't have any uses of it yet in the game.
Yes, DrawMap and DrawDefMap are deprecated. We also don't need two functions for that.
My idea for an implementation would be that you call DrawMap with some range and configuration parameters and it gives you a callback during which the layer proplists are valid.
Note that layer proplists are not saved, so they cannot persist beyond the InitializeMap function calls. I.e. you cannot "keep" a layer in a global variable in InitializeLandscape and then later re-use it in a call to DrawMap. That would not work with savegames or runtime join.
|2016-01-03 20:42||Marky||New Issue|
|2016-01-27 14:32||Maikel||Note Added: 0004893|
|2016-01-27 14:32||Maikel||Target Version||=> 8.0|
|2016-01-27 14:32||Maikel||Assigned To||=> Sven2|
|2016-01-27 14:32||Maikel||Status||new => assigned|
|2016-01-27 18:01||Sven2||Note Added: 0004899|
|2017-08-20 11:29||Zapper||Target Version||8.0 => 9.0|