Now that I have made buildable buildings...
I need a map header that says:
only player bla can build/destroy in this map (IE: if that's set only that player can use builders and generic destroyers inside that map.
The buildable buildings have buildable tiles.
Could we have this feature?
Logged In: NO
What about using Python and its storage mechanism to keep that information, instead of changing the map format?
This way you could have a "centralized" database, of who owns what map. Also it would keep all map building code in the same files.
The Python class CFDataFile (used by the mail system - or is it CFData?) could help for that.
Logged In: NO
Because then it's much more complicated. One has to then hook in a script for every map you want to add permisions. And what of regular apartments that players invite others into. Variables are often added to the map format ( shop code etc ). This is a much simpler and much better way. A python hack is not a good or efficent way to remedy this problem.
This building permissions idea has been discussed ever since buildable tiles were added, so it's not a new thing, it just hasn't yet been implemented.
Logged In: NO
No need to hook to every map. Hook to the global "map load" event, check if map is buildable, and if yes do building stuff that needs to be done.
I'd go as far as arguing it'd be less complicated to put everything Python side than in different locations (and adding fields to map when that field isn't used anywhere in the server code but only in a plugin means it may be removed at some point by mistake).
Having a "centralized" database would also enable DMs (or trusted players) to enable/disable building on different maps during server running, without changing the map file. Yes it could be done through DM commands anyway, but there is nothing to alter map parameters for now.
And Python isn't a hack - it's designed to extend the server, like you want to do :)