Page 1 of 1

bzflag will not start

Posted: Tue Dec 27, 2016 9:28 am
by jsbjsb001
I have installed bzflag and get this message below every time I try and run it;

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (XFree86-VidModeExtension)
Minor opcode of failed request: 10 (XF86VidModeSwitchToMode)
Value in failed request: 0x298
Serial number of failed request: 157
Current serial number in output stream: 159

I know that the nvidia driver (openGL driver) is loaded and 3D rendering is enabled on my system. I am using PCLinuxOS (installed from software package, in repo) and am using BZFlag client 2.4.2.20130215-MAINT-linux-gnu-SDL (protocol 0221). PCLinuxOS also has all of the latest updates installed.
posting.php?mode=post&f=12#

Re: bzflag will not start

Posted: Thu Dec 29, 2016 5:27 pm
by Bullet Catcher
A newer version than BZFlag 2.4.2 may work better. If you can compile version 2.4.8 (the most recent release) and it still doesn't work we can probably help further diagonse the problem.

Re: bzflag will not start

Posted: Fri Dec 30, 2016 1:38 am
by blast
It also looks like PCLinuxOS has SDL2, so perhaps building a recent client against SDL2 instead of SDL1.2 may also help.

Re: bzflag will not start

Posted: Sun Jan 08, 2017 8:35 pm
by kaadmy
What are your video mode specs? Resolution/color depth?

Re: bzflag will not start

Posted: Tue Jul 11, 2017 10:03 pm
by gnu-sense
I'm having this problem on Ubuntu 16.04.2 (latest bz from source). I can start in windowed mode doing

Code: Select all

> bzflag -window 1620x1000 &
to fill the screen all but for the menus and launcher at the resolution I am using, but
  • Accidental F1 = BLAM! (crash, with above message, so I had to unmap that function/key)
  • Can't figure out if there is a config.cfg option that more conveniently sets this on launch
At least it runs quite acceptably.

- gnu-sense

Re: bzflag will not start

Posted: Tue Jul 11, 2017 11:56 pm
by blast
Are you using SDL 1.2 or SDL 2.0? Running 'bzflag -version' should indicate either -SDL or -SDL2.

Re: bzflag will not start

Posted: Wed Jul 12, 2017 11:39 am
by gnu-sense
blast wrote: Tue Jul 11, 2017 11:56 pm Are you using SDL 1.2 or SDL 2.0? Running 'bzflag -version' should indicate either -SDL or -SDL2.
Since you point that out, I can see that it probably a/the problem. After checking, and apt-get install, the output of ./configure reports the following:

Code: Select all

checking for SDL... no
checking for sdl2-config... (cached) no
checking for SDL - version >= 2.0.3... no
*** The sdl2-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
checking for sdl-config... (cached) /usr/bin/sdl-config
checking for SDL - version >= 1.2.10... yes
I'm a little non-adept at this part of things. Can you suggest something like flags for ./configure or something to make sure it picks the right libraries?

Thanks,

gnu-sense

Re: bzflag will not start

Posted: Wed Jul 12, 2017 11:45 am
by gnu-sense
Okay, nvm...
I rechecked that and found that I needed to install sdl2-dev (which figures). ./configure then reports it is using SDL2.

gnu-sense

Re: bzflag will not start

Posted: Wed Jul 12, 2017 11:52 am
by gnu-sense
Okay I'm a pest now. The is the result of make, when thus configured:

Code: Select all

In file included from OpenGLGState.cxx:1605:0:
../../include/bzfSDL.h:24:21: fatal error: SDL.h: No such file or directory
compilation terminated.
Makefile:444: recipe for target 'OpenGLGState.lo' failed
make[2]: *** [OpenGLGState.lo] Error 1
make[2]: Leaving directory '/home/paolillo/Project/BZFlag/bzflag/src/ogl'
Makefile:422: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/paolillo/Project/BZFlag/bzflag/src'
Makefile:482: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Any idea how to fix the SDL.h header file problem?

Re: bzflag will not start

Posted: Wed Jul 12, 2017 9:14 pm
by blast
Did you re-run the ./configure script after installing the sdl2-dev package?

Re: bzflag will not start

Posted: Thu Jul 13, 2017 1:39 am
by gnu-sense
Yes, I re-ran configure. The output above is from make after that point; Although it configures claiming it is using SDL2 (see previous message), make cannot locate the header SDL.h (above), which is why I asked my last question.

Thanks for any help.

gnu-sense

Re: bzflag will not start

Posted: Thu Jul 13, 2017 6:43 pm
by macsforme
Did configure say that it found <SDL2/SDL.h> or not? Maybe do a make distclean, re-run configure, and post the entire output of configure and make here so we can check it out. Thanks.

Re: bzflag will not start

Posted: Thu Jul 13, 2017 8:37 pm
by gnu-sense
Constitution wrote: Thu Jul 13, 2017 6:43 pm Did configure say that it found <SDL2/SDL.h> or not? Maybe do a make distclean, re-run configure, and post the entire output of configure and make here so we can check it out. Thanks.
I did answer this above; yes, configure said it found SDL2, but failed on that header (more than once). I followed your suggestion and captured the output, but posting it is not necessary/useful: this time it compiled. My best guess is that the package updates with apt didn't fully synchronize somehow, and that after some arbitrary event it did.
In any event, it compiles, and it's full-screening like it's supposed to.

gnu-sense