For all those of you who aren't restricted to windoze: With the following little script you can easily run onlink on linux with synchronous saving but without fearing to trash your HDD. This is done by using a ramdisk to hold the options and save files (see first script).
I wrote this script back in march 2013 to succesfully play Onlink on my netbook while travelling (1,6GHz Intel Atom and 2 GB Ram). Because of this it loads the data files into a ramdisk too, hoping to further increase the performance. To be exact I haven't tried it with only one of the ramdisks, so I don't know, if only one was necessary, but before it was just to slow to play.
In the case that you want to unmount the ramdisks, just run the second script.
If you are to lazy to make yourself some delicious copy-pasta, just look at the attachments.
EDIT: Looks, like I'm unable to upload attachments... So you have to go for the Guttenberg method.
Here you go:
Code:
#!/bin/bash
echo "Onlink ramdisk tool by afxi (c) 2013"
echo "updated for Onlink on native Linux by 3298 in 2014 (was Wine-based before)"
echo "corrected typo and approved by afxi :-P"
echo ""
if [ ! -d ramdisk ]
then
echo "ramdisk folder missing"
echo "creating ramdisk folder"
mkdir ramdisk
fi
if [ ! -f ramdisk/data.dat ]
then
echo "data.dat missing, going to initalize ram folder & copy content"
echo "setting up ramdisk"
sudo mount -t tmpfs -o size=50M tmpfs ramdisk
echo "copying files"
cp data.dat ramdisk/
cp onlink ramdisk/
cp patch.dat ramdisk/
fi
if [ ! -d ~/.onlink.persistent ]
then
echo "Onlink.persistent folder in home directory missing"
if [ -d ~/.onlink ]
then
echo "importing old files into the new structure"
mv ~/.onlink ~/.onlink.persistent
mkdir ~/.onlink
else
echo "looks like the first run of Onlink on this machine"
echo "creating appdata folders"
mkdir ~/.onlink.persistent
mkdir ~/.onlink
fi
fi
if [ ! -f ~/.onlink/options.db ]
then
echo "appdata-ramdisk is empty"
echo "setting up ramdisk for save and option files"
sudo mount -t tmpfs -o size=250M tmpfs ~/.onlink
fi
if [ -f ~/.onlink.persistent/options.db ]
then
echo "found persistent appdata files"
echo "updating appdata-ramdisk with persistent files"
cp -r -u ~/.onlink.persistent/* ~/.onlink/
fi
echo "starting Onlink"
cd ramdisk
./onlink
echo "saving updated files from appdata-ramdisk"
cp -r -u ~/.onlink/* ~/.onlink.persistent/
In case, that you want to unmount the ramdisks:
Code:
#!/bin/bash
echo "Onlink ramdisk tool by afxi (c) 2013"
echo "saving updated files from appdata-ramdisk"
cp -r -u ~/.onlink/* ~/.onlink.persistent/
echo "unmounting ramdisks"
sudo umount ramdisk
sudo umount ~/.onlink/