Armed Assault Info
ArmA | ArmA 2 | ArmA 3
 

 
  Yoma AddOnSync tool for LINUX (v 1.0)  
No picture found for this addon. Author : 1longtime
Version : 1.0 Type : Other
Size : 4 KB  
Downloads : 223 No rating for .

You must register before rating items.

Description :
This script will use a typical Yoma Auto Config URL and sync your local Linux mod files with the remote mod files. PHP must be installed on your Linux machine.
The mechanism is very similar to how the application on Windows functions:

*downloads a "manifest" file, shown in the Yoma application as "Auto config URL" under the Server->Auto configuration tab
*scans the file, item by item, and compares the local files to the remote files
*if a change is detected, the local file is deleted and the remote file is fetched

Please note that this is just an unofficial tool.
Many thanks to Yoma for writing AddOnSync, but if this tool fails it isn't his fault, it's mine!



CONTENTS:
addonsync-update.php
config.php
readme.txt


INSTALLATION:
Edit the config.php file to define:
1) your Auto Config URL (the one you usually configure for your server in Yoma AddOn Sync)
2) your target mod dir


EXECUTION:
Run the following at the command line:
php -f addonsync-update.php


NOTES:
Obsolete files are not deleted, they will collect like dust. Sorry.
You can delete the whole mod dir and re-download if you're worried about keeping an excessive number of obsolete files.




IMPORTANT: lower/upper case filenames are NOT considered!

If the remote source uses upper-case, and the local Linux Arma installation uses lower-case (as required for Arma server setup), then it is likely that
this script will re-download everything in the mod pack because it won't find local files that compare.

To clarify, during the installation of a standard Arma2 Linux server you were required to run a script ("tolower") that made ALL files lower-case named.
If the remote source has a folder or file that is not lower-cased, this script will simply consider the file or folder missing and re-download it.

You will need to re-run the "tolower" script to rename all files to lower-case again, and you WILL download duplicates. Sorry folks.


MY WORKAROUND:
Keep a duplicate of your mods and use this script to sync it.
Then copy the whole mod tree to your arma2-server directory and run "tolower" again.
This minimizes the amount of network traffic, but it requires extra disk space for a permanent backup folder and a lengthy copy of the new files.

Example:
cd ~/mod-backup/@MYMOD <-- do not delete this dir, it's your permanent backup
php -f addonsync-update.php <-- sync your permanent backup
rm -Rf ~/arma2-server/@mymod <-- delete the out-of-date dir
cp -R ~/mod-backup/@MYMOD ~/arma2-server/ <-- copy the fresh permanent backup to your arma2-server folder (may take a while!)
cd ~/arma2-server <-- change to your arma2-server dir
./tolower <-- make all lower-case so the server can run in Linux mode ("@MYMOD" becomes "@mymod" again)
 
  June 4th, 2010 - 20:02   Comment (0)  

 
 
© 2007 - 2024 Armed Assault Info
Disclaimer - Info