Jump to content

Converting NoQuarter XPSave Files fix for ReadDataFromFile error - Enemy Territory


Recommended Posts

Posted (edited)

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.