1

Topic: Game does not run (GFX problem)

The game wont launch. Im using Ubuntu 10.04 LTS. The log show following:

root@sebbe-ts:~# cd /
root@sebbe-ts:/# cd root/
root@sebbe-ts:~# cd Hämtningar/
root@sebbe-ts:~/Hämtningar# ls
cs2d_0118_linux      teeworlds-0.5.2-linux_x86
cs2d_0118_linux.zip  teeworlds-0.5.2-linux_x86.tar.gz
cs2d_0118_win.zip
root@sebbe-ts:~/Hämtningar# cd teeworlds-0.5.2-linux_x86/
root@sebbe-ts:~/Hämtningar/teeworlds-0.5.2-linux_x86# ls
data  license.txt  readme.txt  teeworlds  teeworlds_srv
root@sebbe-ts:~/Hämtningar/teeworlds-0.5.2-linux_x86# ./teeworlds
[4cd08181][engine]: running on unix-linux-ia32
[4cd08181][engine]: arch is little endian
[4cd08181][binds]: bound f1 (282) = toggle_local_console
[4cd08181][binds]: bound f2 (283) = toggle_remote_console
[4cd08181][binds]: bound tab (9) = +scoreboard
[4cd08181][binds]: bound f10 (291) = screenshot
[4cd08181][binds]: bound a (97) = +left
[4cd08181][binds]: bound d (100) = +right
[4cd08181][binds]: bound space (32) = +jump
[4cd08181][binds]: bound mouse1 (323) = +fire
[4cd08181][binds]: bound mouse2 (324) = +hook
[4cd08181][binds]: bound lshift (304) = +emote
[4cd08181][binds]: bound 1 (49) = +weapon1
[4cd08181][binds]: bound 2 (50) = +weapon2
[4cd08181][binds]: bound 3 (51) = +weapon3
[4cd08181][binds]: bound 4 (52) = +weapon4
[4cd08181][binds]: bound 5 (53) = +weapon5
[4cd08181][binds]: bound mousewheelup (331) = +prevweapon
[4cd08181][binds]: bound mousewheeldown (332) = +nextweapon
[4cd08181][binds]: bound t (116) = chat all
[4cd08181][binds]: bound y (121) = chat team
[4cd08181][binds]: bound f3 (284) = vote yes
[4cd08181][binds]: bound f4 (285) = vote no
[4cd08181][engine/datadir]: paths used:
[4cd08181][engine/datadir]:     .
[4cd08181][engine/datadir]:     /root/.teeworlds
[4cd08181][engine/datadir]:     data
[4cd08181][engine/datadir]: saving files to: /root/.teeworlds
[4cd08181][console]: failed to open 'autoexec.cfg'
[4cd08181][console]: executing 'settings.cfg'
[4cd08181][binds]: bound tab (9) = +scoreboard
[4cd08181][binds]: bound space (32) = +jump
[4cd08181][binds]: bound 1 (49) = +weapon1
[4cd08181][binds]: bound 2 (50) = +weapon2
[4cd08181][binds]: bound 3 (51) = +weapon3
[4cd08181][binds]: bound 4 (52) = +weapon4
[4cd08181][binds]: bound 5 (53) = +weapon5
[4cd08181][binds]: bound a (97) = +left
[4cd08181][binds]: bound d (100) = +right
[4cd08181][binds]: bound t (116) = chat all
[4cd08181][binds]: bound y (121) = chat team
[4cd08181][binds]: bound f1 (282) = toggle_local_console
[4cd08181][binds]: bound f2 (283) = toggle_remote_console
[4cd08181][binds]: bound f3 (284) = vote yes
[4cd08181][binds]: bound f4 (285) = vote no
[4cd08181][binds]: bound f10 (291) = screenshot
[4cd08181][binds]: bound lshift (304) = +emote
[4cd08181][binds]: bound mouse1 (323) = +fire
[4cd08181][binds]: bound mouse2 (324) = +hook
[4cd08181][binds]: bound mousewheelup (331) = +prevweapon
[4cd08181][binds]: bound mousewheeldown (332) = +nextweapon
[4cd08181][gfx]: unable to set video mode: Couldn't find matching GLX visual
[4cd08181][gfx]: out of ideas. failed to init graphics
root@sebbe-ts:~/Hämtningar/teeworlds-0.5.2-linux_x86#



/etc/X11/xorg.conf:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "dbe"
    Load  "dri"
    Load  "dri2"
    Load  "extmod"
    Load  "glx"
    Load  "record"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option        "Protocol" "auto"
    Option        "Device" "/dev/input/mice"
    Option        "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "82G33/G31 Express Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection


I guess its something with my graphics card.
Why does not the game run?

2 (edited by Scylla 2010-11-03 08:24:07)

Re: Game does not run (GFX problem)

Im not quite sure if Teeworlds supports ubuntu, but what graphics card do you have? Maybe you dont have the newest drivers or OpenGL.
Looked to me like you have a integrated one so maybe it's because your card isn't supported or you dont have the newest drivers nor OpenGL.
You have linux version you sure that the kernel from linux are the same as ubuntu and it almost the same? I wouldn't say smile

"The scientists of today think deeply instead of clearly. One must be sane to think clearly, but one can think deeply and be quite insane." Nikola Tesla.

3

Re: Game does not run (GFX problem)

Of course you can play Teeworlds under Ubuntu -.-
Why did you start Teeworld as root? Don't.
Try installing Teeworlds from the repositories:
sudo apt-get install teeworlds
And don't run anything as root. Ever.

aka cheesy

4 (edited by sebastian 2010-11-03 20:12:54)

Re: Game does not run (GFX problem)

I have tried the rep version too.

I tried now running the game at the local console (display :0) and that works perfectly.
But when running the game through terminal services VNC (xinetd), it displays that message.

The display number then varies from :1 to :2000.


grummi: Always when I install a new ubuntu system, I do a sudo passwd root, set a new root pw, and then uses root as my everyday account.

See this youtube video for more information, as you see, the LARGE VNC window is display :0, the local console.
The small windows (that are 640x480)  is terminal instances created by Xvnc running on Xinetd services. In the end of the video, you see me launching four sessions (small windows) at once:

http://www.youtube.com/watch?v=-uK88D2P4o4

Also the mouse behaves very strange over VNC when I run it on display :0. It seems like TeeWorlds use some relative mouse movement system, so I have to set the mouse in the middle of the game and move the mouse like a joystick and moving it back to the middle when I want to stop moving the cursor.

5

Re: Game does not run (GFX problem)

I have a very simple solution for you: DON'T PLAY OVER VNC! It's stupid, senseless and produces errors. (Even if it would work without errors it would still be unplayable.)

And of course it is possible to use root. BUT YOU SHOULD NOT DO IT. https://help.ubuntu.com/community/RootSudo
In fact there are programs that won't start with root privileges.

aka cheesy