Hi, Kurosu a écrit : > Hi list, > > this a Request For Comments about downloadable maps, a useful feature in > wormux that would allow to retrieve additional maps from the wormux > website from within the game. > > 1) Listing > A xml file would list those information per map: > - Name > - Identifier (version number, CRC?) to differentiate versions or maps >
I guess that in case of version number, the identifier would be the couple Name-version number. > - Author (optional, only small hint as to if the map is any good) > - Jpeg thumbnail (the one already available) > - Compressed (downloaded) and decompressed sizes (worth it?) > Should we really means those information ? > - An URL where to get a zip (probably easier handling through zlib only) > Ok for the URL. We are ok that maps will be either downloadable from gna.org or wormux.org ? Should we accept maps from another place (not urgent question to answer ;)). Finally, I would choose a md5 hash from the zip file to identify the map. Thus, all the xml file could be generated from a script without manual intervention :) > In addition, what about future: > - minimal version to understand the xml file? > - minimal version to play the map? > Well, I think something like "compatible versions" is enough. "Minimal" is not always good as some things may become deprecated. > 2) Display: > img|name|author|version|"new"/"updated"/no img|compressed size|raw size > What do you mean by "no img" ? "updated" since when ? > - A listbox having items displaying the above, except url > - Buttons to: refresh list, delete map(s), download map(s) > What do you mean by "delete map(s)" ? Delete a map that has been previously downloaded ? If so, there must be a read-only checkbox indicating if the map has been previously downloaded. > - An info in each listbox item indicating whether the corresponding map > was already downloaded > oups ;) > 3) Actual downloads > - Hitting "refresh list" > . Fetches list from 1), and update listbox from 2) (what about > displaying "new" and "updated" about maps?) > We can imagine sorting by this attribute or use a different background color. > . Get the new maps' thumbnails (what about displaying a progress > indicator for this?) > . Update display > - Hitting "download map(s)" > . One or several maps at a time? does listbox allow this? > Yes, listbox allows this :) It was designed to select teams at the beginning :) > . Downloads and unpack to a temporary folder: > - wormux personal dir vs TEMP: security issues > I vote for wormux personal dir > - don't unpack a corrupt archive or incomplete map to user folder > . Move unpacked map folder to the expected final folder > - User personal maps folder or normal map folder? ignore it? test it > first? test it if the user wants that? > > So far, this is what I've thought of. Do you see anything more? Do you > reject something? > See my comments above ;) > Best regards, > Kurosu > Regards, Matt (gentildemon) _______________________________________________ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev