PDA

View Full Version : Temp. gamma fix for linux clients


hextasy
12-03-2014, 05:50 PM
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 :D

hope this helps someone, works great for me.

#!/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

hextasy
12-08-2014, 12:11 AM
So maybe it's just me, but the gamma issue with my desktop is even worse after the v36 patch. Now everything is super bright. Script still works as a workaround tho.