Thread: Ftp Faq
View Single Post
Old 07-26-2006, 06:07 AM   #7 (permalink)
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 4,244
Some informations about the "Download league files" feature. Will be added to the manual.

"Download league files"

There is a button in the Game menu, but it's only shown if online leagues are enabled and if you're not playing as the commish. If you execute the function, OOTP will do the following:

- Open an FTP connection to the online league server
- Check whether the online league file exists in the export directory on the server. The name of the file has to be the default name which is used by the "Upload league file" dialog.
- Get the modification date/time of the file from the FTP server using MDTM
- Open the file /league-folder.lg/settings/online_league_file_time.cfg to get the modification date/time of the file which it had when downloaded last time
- If both of the date/time infos are equal, the download will be stopped because the file hasn't changed
- If both of the date/time infos are not equal, the file will be download into the import_export folder
- The file will be unzipped into the import_export folder
- The database will be saved and closed
- All .dat files with the exception of the names.dat will be renamed to .bak
- The league files will be unpacked from the tar file and saved according to the relative paths saved in the tar file, overwriting existing files
- The database will be loaded
- The date/time info of the file will be saved in /league-folder.lg/settings/online_league_file_time.cfg
Andreas Raht is offline   Reply With Quote