Originally created by: woel...@gmail.com
Originally owned by: woel...@gmail.com
Currently it's not possible to give a game a different name other than to purge it and create it anew.
What options need to be added to make this work?
1. A renameGame() function in the Status class.
2. A Master RENAME E-mail command. Only available in the preparation and forming states, after that only the judgekeeper can change the name.
3. Optionally an edit box on the master page in the preparation and forming phases.
4. A message should be sent out to all participants with each renaming.
What are the trouble points?
* The reason to restrict this to preparation and forming phases, is that players may not immediately be aware of the change in name, leading to frustration if the game doesn't show up, or their mails get bounced. In the worst case, a player may send his orders with the old game name, forget to check the return mail, only to find out after the phase was processed that his orders had been refused.
* The function should check if the name is not already in use and uses appropriate characters.
* It should rename the game dir, the name in the games list status file, in the game's own status file and in the Game table in the database.
* Furthermore, if the game already started (jk only), the results file should either be rebuilt (preferred), or the game name replaced everywhere it appears in the file. The maps should be rebuilt. The status files for each phase should also have their game name updated. Note that a rollback to forming, renaming status files and game dir (as well as updating the db entry), roll forward to end may accomplish both.
Please use labels and text to provide additional information.