Compile ok, no gfx output

20 replies [Last post]
Atmostrophic
User offline. Last seen 16 years 1 week ago. Offline
Joined: 2008-05-02
Posts: 58

Hello there

I successfully managed to compile Hedgewars 0.9.3 on my Xubuntu 7.10.
First I've had the gl-error too, but I could fix it with the tip with the package fp-units-gfx (thanks to unC0Rr)

Now the problem is that when starting a game in any mode, the only thing that I can see is the known windows "In game..."

The binaries I've downloaded from this site worked well on Windows, so something else must be wrong...

Even trying to set the fullscreen-flag in the options doesn't do anything. Like if there was no graphic-engine...

Any ideas?

Thanks in advance and best regards.
Greets from Switzerland

Atmostrophic

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

Could you please post here file ~/.hedgewars/debug0.txt

Atmostrophic
User offline. Last seen 16 years 1 week ago. Offline
Joined: 2008-05-02
Posts: 58

Hello.
Did not even know that this exists.
Here's the content of ~/.hedgewars/debug0.txt:

tobias@tobiasxu:~$ cat ~/.hedgewars/debug0.txt
     0: Console write: -= HedgeWars 0.9.2 =-
     0: Console write:    -= by unC0Rr =-   
     0: Prefix: "./"
     0: 0: /usr/local/bin/hwengine
     0: 1: /home/tobias/.hedgewars
     0: 2: 1152
     0: 3: 864
     0: 4: 32
     0: 5: 35696
     0: 6: 1
     0: 7: 1
     0: 8: en.txt
     0: 9: 128
     0: 10: 8
     0: 11: /usr/local/share/hedgewars/Data
     0: 12: 1
     0: 13: 0
     0: Console write: Init SDL... 
     0: Console write: ok
     0: Console write: Init SDL_ttf... 
     0: Console write: ok
     0: ParseCommand "fullscr 1"
     0: SDL video driver: x11
     0: Error creating SDL surface
     0: Console write: Error creating SDL surface
-= halt at 0 ticks =-

I did not even know that this file is generated.
So there must be something wrong with the SDL-Library...
What could it be?
Best regards, Atmostrophic

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

Well, most probably it's due to lack of hardware acceleration. You may try to install libgl1-mesa-swrast, but the game will have slow performance.

Atmostrophic
User offline. Last seen 16 years 1 week ago. Offline
Joined: 2008-05-02
Posts: 58

Hello.

Thank you...

I'm still quite new to linux... In fact before trying to install all those libraries, I could play Nexuiz (an open-src 3d shooter) and nearly any other game. My computer has quite good hardware... It must be something else then, I guess the gfx-driver is not installed as well as it was before...

So I will try to fix this and post again here if I know something more about it.

Best regards and Greetz from Switzerland
Atmostrophic

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

Hi. I have the same problem of Atmostrophic.
This is my debug0.txt, as you asked to Atmostrophic:

     0: Console write: -= HedgeWars 0.9.2 =-
     0: Console write:    -= by unC0Rr =-
     0: Prefix: "./"
     0: 0: /usr/local/bin/hwengine
     0: 1: /home/bonny/.hedgewars
     0: 2: 1024
     0: 3: 768
     0: 4: 32
     0: 5: 49388
     0: 6: 0
     0: 7: 1
     0: 8: en.txt
     0: 9: 128
     0: 10: 8
     0: 11: /usr/local/share/hedgewars/Data
     0: 12: 0
     0: 13: 0
     0: Console write: Init SDL...
     0: Console write: ok
     0: Console write: Init SDL_ttf...
     0: Console write: ok
     0: ParseCommand "fullscr 0"
-= halt at 0 ticks =-

Now I'll try to install libgl1-mesa-swrast, hoping it works.
Thank you for your help.

EDIT: I think it's not the best way, apt-get want to uninstall all this packages to install libgl1-mesa-swrast :

kdebase-dev kdelibs4-dev libarts1-dev libavahi-qt3-dev libdbus-qt-1-dev
  libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa-dev
  libopenexr-dev libqt3-mt-dev libqt4-dev libsdl-image1.2-dev
  libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev
  libsmpeg-dev

But I had no errors in compile, neither in debug. What can I do?

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

daimadoshi85, your problem isn't very like the one Atmostrophic has. Your's quite strange. Could you check whether debug log is the same when you run the game in fullscreen mode?

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

This is the debug in fullscreen mode:

     0: Console write: -= HedgeWars 0.9.2 =-
     0: Console write:    -= by unC0Rr =-
     0: Prefix: "./"
     0: 0: /usr/local/bin/hwengine
     0: 1: /home/bonny/.hedgewars
     0: 2: 1024
     0: 3: 768
     0: 4: 32
     0: 5: 57104
     0: 6: 1
     0: 7: 1
     0: 8: en.txt
     0: 9: 128
     0: 10: 8
     0: 11: /usr/local/share/hedgewars/Data
     0: 12: 0
     0: 13: 0
     0: Console write: Init SDL...
     0: Console write: ok
     0: Console write: Init SDL_ttf...
     0: Console write: ok
     0: ParseCommand "fullscr 1"
-= halt at 0 ticks =-

Why it's written hedgewars 0.9.2? I have 0.9.3...and version 0.9.2 works fine!

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

0.9.2 here is just a typo Smile
0.9.3 uses OpenGL while 0.9.2 didn't. This is the most probable cause of the problem. Your case needs hard debug, because debug log doesn't tell anything useful.

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

unC0Rr allegedly wrote:
0.9.2 here is just a typo Smile
0.9.3 uses OpenGL while 0.9.2 didn't. This is the most probable cause of the problem. Your case needs hard debug, because debug log doesn't tell anything useful.

How can I help you?

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

Well, at first, you may download SVN version and try it, there's some work done to help discover this bug (instructions to download here: http://fireforge.net/scm/?group_id=11 ).

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

I'm already using svn version, revision 853 Smile

Uhm, I was using another svn revision...now I'll try to use fireforge svn and update..

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

853? current revision is 927

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

Yes, sorry. Now I'm using 927 revision. Same behaviour Sad Smiley

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

Is it really the same behaviour? Is there anything new in debug log?

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

Yes, same behaviour Sad Smiley Nothing has changed

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

unC0Rr
unC0Rr's picture
User offline. Last seen 11 weeks 21 hours ago. Offline
Joined: 2006-11-27
Posts: 576

Please, update to HEAD revision, I added some debug messages to help find exact place of error.

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

Updated now!

     0: Console write: -= Hedgewars 0.9.4-dev =-
     0: Console write:    -= by unC0Rr =-
     0: Prefix: "./"
     0: 0: /usr/local/bin/hwengine
     0: 1: /home/bonny/.hedgewars
     0: 2: 1280
     0: 3: 800
     0: 4: 32
     0: 5: 52805
     0: 6: 0
     0: 7: 1
     0: 8: en.txt
     0: 9: 128
     0: 10: 8
     0: 11: /usr/local/share/hedgewars/Data
     0: 12: 0
     0: 13: 0
     0: Console write: Init SDL...
     0: Console write: ok
     0: Console write: Init SDL_ttf...
     0: Console write: ok
     0: ParseCommand "fullscr 0"
     0: Prepare to change video parameters...
     0: Freeing old primary surface...
-= halt at 0 ticks =-

And in Fullscreen mode
     0: Console write: -= Hedgewars 0.9.4-dev =-
     0: Console write:    -= by unC0Rr =-
     0: Prefix: "./"
     0: 0: /usr/local/bin/hwengine
     0: 1: /home/bonny/.hedgewars
     0: 2: 1280
     0: 3: 800
     0: 4: 32
     0: 5: 57335
     0: 6: 1
     0: 7: 1
     0: 8: en.txt
     0: 9: 128
     0: 10: 8
     0: 11: /usr/local/share/hedgewars/Data
     0: 12: 0
     0: 13: 0
     0: Console write: Init SDL...
     0: Console write: ok
     0: Console write: Init SDL_ttf...
     0: Console write: ok
     0: ParseCommand "fullscr 1"
     0: Prepare to change video parameters...
     0: Freeing old primary surface...
-= halt at 0 ticks =-

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

Atmostrophic
User offline. Last seen 16 years 1 week ago. Offline
Joined: 2008-05-02
Posts: 58

Hi there

I think I've found the problem. My X seems not to be configured with openGL. Somehow i've crashed my 3d-acceleration. I guess it would work if this was fine like it was before.
Anyway I will reset my laptop and reinstall everything. Then i will retry to compile hedgewars 0.9.3.

Thank you for supporting me.

Best regards
Atmostrophic.

Atmostrophic
User offline. Last seen 16 years 1 week ago. Offline
Joined: 2008-05-02
Posts: 58

Hello everyone

Atmostrophic allegedly wrote:
... My X seems not to be configured with openGL. Somehow i've crashed my 3d-acceleration. ...

I've reinstalled Xubuntu 7.10 again on my laptop.
Compiled with no errors.
Runs with no errors.

Engine draws the pictures very well, no problem anymore at all.

Thank you very much

Best regards.

daimadoshi85
daimadoshi85's picture
User offline. Last seen 13 years 37 weeks ago. Offline
Joined: 2008-05-04
Posts: 372

Just updated and... IT WORKS NOW!Thank you!!! I don't know if it's because I installed the latest ati drivers or you solved the problems, but now it works!Wonderful!!!Big Grin

Come to the dark side, we have cookies... - V

Hedgewars script for ubuntu is here...but maybe I have to update it first Smile

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]