Difference between revisions of "Quake"

From ArmadeusWiki
Jump to: navigation, search
m (Infos)
(Launching)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Quake==
 
==Quake==
{{Game infos|name=Quake|type=FPS|web=http://www.libsdl.org/projects/quake/|screenshot=sdlquake.jpg|status=Fully working|video=http://www.youtube.com/watch?v=256RY8DaoX0}}
+
{{Game infos|name=Quake|type=FPS|web=http://www.libsdl.org/projects/quake/|screenshot=sdlquake.jpg|status=Fully working|video=http://www.youtube.com/watch?v=o9PDA597NDQ}}
  
 
===Infos===
 
===Infos===
Line 12: Line 12:
 
  $ make menuconfig
 
  $ make menuconfig
 
</pre>
 
</pre>
[[Image:Menuconfig_package.png]]<br>
+
 
<br>
+
[[Image:Menuconfig_package_games.png]]<br>
+
<br>
+
 
<pre class="config">
 
<pre class="config">
[*]    Shareware Quake WAD/PAK file
+
Package Selection for the target  --->
...
+
    Games  --->
[*]    sdlquake
+
        [*]    Shareware Quake WAD/PAK file
 +
        [*]    sdlquake
 
</pre>
 
</pre>
  
*Activate ''sdlquake'' package and ''Shareware Quake WAD/PAK file'' (it will autoselect SDL, SDL_mixer and SDL_net).  
+
* ''sdlquake'' and ''Shareware Quake WAD/PAK file'' packages activation will autoselect SDL, SDL_mixer and SDL_net.  
*Then, exit and save your config. Re-Build your rootfs:
+
* Then, exit and save your config. Re-Build your rootfs:
 
<pre class="host">
 
<pre class="host">
 
  $ make
 
  $ make
Line 30: Line 28:
 
===APF9328 (with 8/16 MBytes of FLASH)===
 
===APF9328 (with 8/16 MBytes of FLASH)===
 
As the generated rootfs is too big to be put on the [[APF9328]] FLASH, there are 2 solutions:
 
As the generated rootfs is too big to be put on the [[APF9328]] FLASH, there are 2 solutions:
====1. put rootfs on a MMC/SD and boot it====
+
# [[MultiMediaCard#Booting_from_MMC.2FSD|put the rootfs on a MMC/SD and boot it]]
[[MultiMediaCard#Booting_from_MMC.2FSD]]
+
# [[Network_Configuration#Boot_from_NFS|boot your board from your NFS export]]
 
+
====2. boot your board from your NFS export====
+
[[Network_Configuration#Boot_from_NFS]]
+
  
 
==Launching==
 
==Launching==
* If you have a 320x240 display:
 
 
<pre class=apf>
 
<pre class=apf>
  # /usr/games/sdlquake -winsize 320 240 -noudp
+
  # cd /usr/share/games/quake/
 +
</pre>
 +
* If you have a 320x240 display or a small APF :-):
 +
<pre class=apf>
 +
# sdlquake -winsize 320 240 -noudp
 +
</pre>
 +
* If you have a 7" LCD and a big APF:
 +
<pre class=apf>
 +
# sdlquake -winsize 640 480 -noudp
 +
</pre>
 +
* If you want some sound be sure that [[ALSA]] is running, '''with OSS emulation loaded:'''
 +
<pre class=apf>
 +
# modprobe snd-pcm-oss
 +
# modprobe snd-mixer-oss
 
</pre>
 
</pre>
* If you want some sound be sure that [[ALSA]] is running, '''with OSS emulation loaded.'''
 
  
 
==Troubleshots==
 
==Troubleshots==
*If SDL is complaining because it can't find any mouse (''Unable to init SDL: Unable to open mouse'') then, before launching the game, do:
+
*If SDL is complaining because it can't find any mouse (''Unable to init SDL: Unable to open mouse'') then connect one ;-), or before launching the game, do:
 
<pre class=apf>
 
<pre class=apf>
 
  # export SDL_NOMOUSE=1
 
  # export SDL_NOMOUSE=1
 
</pre>
 
</pre>
* APF9328 LCD controller will have difficulties to process all data when launching Quake in 480x272 mode (random black lines on screen). It's an hardware limitation so no fixes are scheduled.
+
:Quake needs a mouse to be fully playable !
 +
* APF9328 LCD controller will have difficulties to process all data when launching Quake on 480x272 LCD (random black lines on screen). It's an hardware limitation so no fixes are scheduled.
  
 
==Links==
 
==Links==

Latest revision as of 09:50, 20 May 2015

Quake

Quake
Gametype FPS
Web site http://www.libsdl.org/projects/quake/
Fully working
Video http://www.youtube.com/watch?v=o9PDA597NDQ

Infos

SDL_Quake is a clone derived from original ID Software sources and enhanced (SDL support). Quake is the sequel of Doom. It is working quite well on 8bpp framebuffers; for 16bpp one, a bug has to be corrected in i.MX framebuffer (ongoing).
Quake is integrated in Buildroot on latest GIT snapshots. It needs SDL, SDL_mixer & SDL_net. Video was taken on an APF27 with a LQO57 LCD. It has to be tested on APF9328.

Install

  • Launch Buildroot configuration:
 $ make menuconfig
Package Selection for the target  --->
    Games  --->
        [*]    Shareware Quake WAD/PAK file
        [*]    sdlquake
  • sdlquake and Shareware Quake WAD/PAK file packages activation will autoselect SDL, SDL_mixer and SDL_net.
  • Then, exit and save your config. Re-Build your rootfs:
 $ make

APF9328 (with 8/16 MBytes of FLASH)

As the generated rootfs is too big to be put on the APF9328 FLASH, there are 2 solutions:

  1. put the rootfs on a MMC/SD and boot it
  2. boot your board from your NFS export

Launching

 # cd /usr/share/games/quake/
  • If you have a 320x240 display or a small APF :-):
 # sdlquake -winsize 320 240 -noudp
  • If you have a 7" LCD and a big APF:
 # sdlquake -winsize 640 480 -noudp
  • If you want some sound be sure that ALSA is running, with OSS emulation loaded:
# modprobe snd-pcm-oss
# modprobe snd-mixer-oss

Troubleshots

  • If SDL is complaining because it can't find any mouse (Unable to init SDL: Unable to open mouse) then connect one ;-), or before launching the game, do:
 # export SDL_NOMOUSE=1
Quake needs a mouse to be fully playable !
  • APF9328 LCD controller will have difficulties to process all data when launching Quake on 480x272 LCD (random black lines on screen). It's an hardware limitation so no fixes are scheduled.

Links