On Monday 11 Apr 2005 01:19, ERACC wrote: > It would be quite nice if the field were a drop down list of all the > regions and that field defaulted to a region. Would help with the > potential problem of people submitting maps with no region set if > there were a default. If it is unset, the server uses the region with the 'fallback' value set. currently this is the region wilderness, which seems like the sanest one to set it to, as a result, most world maps don't have a region set. The idea of a drop down list is interesting, though I don't know how to do it in java. > Or, another thought, have the editor use a drop down list that starts > out with "-unset-" as the default region then refuse to save the map > without a valid region set. given that most maps (by number, if not complexity) are currently relying on the fallback region I don't think it is needed to refuse to save them, a map out in the wilderness not belonging to any city seems perfectably reasonable. > Also, if there is not one, make a plain text file that contains the > existing regions that the editor reads from to make it easy to add > new regions as they occur. crossfire $ grep "^region \w*$" lib/regions | cut -f 2 -d " " wilderness world creation etc. is there a nice way to sync the output of that command into the map editor? or to apply the same operation to the regions file and symlink into the mapeditor repository?