Jump to content
Sign in to follow this  
Krauersaut

Converting NoQuarter XPSave Files fix for ReadDataFromFile error - Enemy Territory

Recommended Posts

If you are going to move your NoQuarter server from Linux to Windows or Windows to Linux, you will encounter problems with your XPsave files.

 

G_ReadDataFromFile: failed to read data to file (76/80)
G_xpsave_cleanup_expired_xp_file: failed to read xpsave file
Use the following Scripts to fix it:

 

 

 

Convert XPSave files from Linux to Windows

 

for f in *.xp
do
head -c 12 $f > $f.new
echo -e -n '\0000\0000\0000\0000' >> $f.new
tail -c +13 $f >> $f.new
cp $f $f.old
mv $f.new $f
done
Convert XPSave files from Windows to Linux

 

for f in *.xp
do
head -c 12 $f > $f.new
tail -c +17 $f >> $f.new
cp $f $f.old
mv $f.new $f
done
Or to be downloaded here. Run it either under Linux or Cygwin. Written in Bash. Edited by Fearless Staff

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×