Вообщем столкнулся с проблемои запуска TF2 на NVIDIA Geforce 7600GT Linux DRV 304.64
ошибка
Поправить можно так:Could not find required OpenGL entry point 'glColorMaskIndexedEXT'! Either your video card is unsupported, or your OpenGL driver needs to be updated.
1. Установить пакет sudo apt-get install libc6-dev-i386
2. Создайте папку bin в /home/~user/
3. Создате файл strstr.c с содержимым
4. Собираем библиотеку:#include <string.h>
char * strstr( const char * haystack, const char * needle )
{
//Default strstr implementation. Kind of Slow, but hopefully
//TF2 doesn't use this often.
if( needle == NULL || haystack == NULL )
{
return (char*)haystack;
}
char * n = (char*)needle;
char * h = (char*)haystack;
while( *h ) {
if( *n == '\0' ) {
return h-n+(char*)needle;
}
if( *h == *n ) {
n++;
}
else {
n = (char*)needle;
}
h++;
}
//Suddenly, MAGIC!
if( strcmp(needle"GL_EXT_draw_buffers2") == 0 ) {
return (char*)haystack;
}
return NULL;}
5.Создадим файл ~/bin/hl2debug с содержимымgcc -fPIC -DPIC -g -m32 -c strstr.c && ld -m elf_i386 -shared -o strstr.so strstr.o
Нужно дать права на запуск chmod +x ~/bin/hl2debug#!/bin/bash
export LD_PRELOAD="$HOME/strstr.so $LD_PRELOAD" *указать свои путь к библиотеке
"$@" #Launch the original process and all arguments
5.Добавляем в ваш .bashrc (или .zshrc, или .profile) строки:
Что бы Steam занал где дебагер =)export PATH=$HOME/bin:$PATH *указать свои путь к библиотеке
export GAME_DEBUGGER="hl2debug"
6. Перезагрузка
У меня все отлично работает только гамма очень тёмная для себя нашел выход, к консоле TF2 пишем :
mat_monitorgamma_tv_enabled 1
mat_monitorgamma_tv_exp 2.7