Project 1999

Project 1999 (/forums/index.php)
-   Technical Discussion (/forums/forumdisplay.php?f=40)
-   -   Temp. gamma fix for linux clients (/forums/showthread.php?t=173488)

hextasy 12-03-2014 05:50 PM

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 :D

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


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.


All times are GMT -4. The time now is 07:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.