Hello MCMic,
MCMic {l Wrote}:I'd like to discuss the level pack system in order to rework it for the next release (and I mean 0.3, not 0.2)
Problems with the actual level pack system :
- Levels are copied in the level pack folder
I think either a levelpack should be a file containing a list of level files, or each level should store the name of its levelpack.
Second solution means a level can only be in one levelpack.
I think we should go with the first option, this way removing levels will be easier, because you only need to read the list and remove the files corresponding with the entries.
On the other hand it does allow a level to be in multiple levelpacks which is IMHO wrong.
The second option will not works since you'll have to go through each level to see to which levelpack they belong, and then you still need to determine the order.
The reason why the levels are copied in the levelpack folder is to prevent double naming.
Sometimes it's hard to find a name for a level, so naming the file mapXX.map is a logical thing to do.
If the levels are all placed in one folder then different levelpacks can override them.
We can solve this by giving each level the levelpack it belongs as prefix?
MCMic {l Wrote}:The other thing is that we can't know which non-packed levels we have won or not.
I think that there should be a "Non-packed levels" category, that would allow the user to see all levels installed with the addon manager or made with the map editor. And it would allow him to see if he won each level or not.
My idea was to place the statistics in the progress files of the levelpacks.
However this doesn't cover non-packed levels, and I think your idea of a non-packed "levelpack" isn't so bad.
We could set every level in it unlocked but not won, in whatever way we want to show that.