View Single Post
  #1  
Old 12-03-2014, 05:50 PM
hextasy hextasy is offline
Aviak

hextasy's Avatar

Join Date: Aug 2011
Posts: 53
Default Temp. gamma fix for linux clients

So I whipped up a new launcher script for P99 today to eliminate this pesky gamma issue, while the devs continue to work on it. So here it is for you. You'll need to change your logfile location and your exectutable location. Also note that I'm setting this to core 2 so use a multi-core CPU too [You must be logged in to view images. Log in or Register.]

hope this helps someone, works great for me.

Code:
#!/bin/bash
export WINEPREFIX=$HOME/.wine/


function fixGamma ()
{
logfile="/home/user/.wine/drive_c/P99/Logs/eqlog_PLAYER_project1999.txt"

tail -fn0 $logfile | while read line ; do
        echo "$line" | grep "You have entered"
        if [ $? = 0 ]
        then
                /usr/bin/xgamma -gamma 1
        fi
done
}



cd /home/user/.wine/drive_c/P99
WINEDEBUG=-all taskset -c 2 wine '/home/user/.wine/drive_c/P99/eqgame.exe' patchme 2>/dev/null & fixGamma
exit 0
Reply With Quote