User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Sat Jan 20, 2018 9:55 pm

ztealmax wrote:
Sat Jan 20, 2018 7:51 pm
Now for a different problem, it doesnt create menu entry games/q3lite/ .....

What it does is it creates a new menu entry called Other/and links end up there but only until i reboot then it disapears completely, is this couse of its a dev version?

Would you mind looking in your home directory in ~/.local/share/applications to see if you have these files?

q3lite.desktop
q3lite_ded.desktop
q3lite_rcon.desktop
q3lite_timedemo.desktop

If they can't be found there you can copy them to that directory from the q3lite source directory in /q3lite/misc/q3lite/pi.

I’d be interested to know if those files were copied somewhere else during the install. Could you run the command in a terminal:

sudo find / -name q3lite.desktop

It’s been a bit tricky to get the menu items working and I appreciate the feedback and your help.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Sat Jan 20, 2018 10:38 pm

cdev-tux wrote:
Sat Jan 20, 2018 9:55 pm
ztealmax wrote:
Sat Jan 20, 2018 7:51 pm
Now for a different problem, it doesnt create menu entry games/q3lite/ .....

What it does is it creates a new menu entry called Other/and links end up there but only until i reboot then it disapears completely, is this couse of its a dev version?

Would you mind looking in your home directory in ~/.local/share/applications to see if you have these files?

q3lite.desktop
q3lite_ded.desktop
q3lite_rcon.desktop
q3lite_timedemo.desktop

If they can't be found there you can copy them to that directory from the q3lite source directory in /q3lite/misc/q3lite/pi.

I’d be interested to know if those files were copied somewhere else during the install. Could you run the command in a terminal:

sudo find / -name q3lite.desktop

It’s been a bit tricky to get the menu items working and I appreciate the feedback and your help.
Thanx m8 yea all files where in there but
think i found the problem, it wants to merge lxde-pi-applications.menu in /etc/xdg/menus/ however as im not running stock Raspbian rather raspbian lite with my own installed desktop it cant merge the menu
thats why it doesnt create menu entrys. so my idea is that it searches for what .menu files that is in /etc/xdg/menus and merge with ones are there in my case its stock lxde-applications.menu, if thats possible? For now i can do a manual fix for this

Perhaps just make it copy .desktop file(s) to /usr/share/applications and not have them in a submenu would be easiest? but it uses sudo command to start q3lite so it might not work, just removed sudo command from .desktop file it works! *btw just a side note, good job so far :D ( Just got a message when not running sudo command for Q3Lite " unknow user: pi, unable to initialize policy plugin") se embeded details down below:

Code: Select all

martin@pi-workstation:~ $ q3lite
sudo: unknown user: pi
sudo: unable to initialize policy plugin
/usr/local/bin/q3lite: line 49: xinput: command not found

xinput_id=


Unable to determine xinput ID to disable keyboard input to the x11 server.
This may allow keyboard keypresses to leak back to the desktop per an SDL2 issue.
See the Q3lite FAQ for details.

sudo: unknown user: pi
sudo: unable to initialize policy plugin
Gonna try a totall install and se it that helps me

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Sun Jan 21, 2018 5:15 am

ztealmax wrote:
Sat Jan 20, 2018 10:38 pm
Gonna try a totall install and se it that helps me

Thanks for the feedback and kind words. I’ll look into adding logic to better accommodate different desktops.

As far as your latest issue, I agree with starting with a fresh install of Raspbian Lite and I would recommend getting Q3lite installed and running before adding a desktop. The error message indicates that one of the prerequisite packages (xinput) may be missing so I would check to see that all of the needed packages are installed per the Compiling and Installation Guide. Thanks again for your help.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 23, 2018 2:07 pm

Thanx m8, yea i think what happend regarding latest issue was i did som uninstall force on some software and it removed som needed packages ;)


And i saw you updated dev git :D

Sincerally
Martin

rainer.brito
Posts: 26
Joined: Tue Aug 22, 2017 1:55 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Sun Jan 28, 2018 10:28 pm

Hi,

what a great job! Runs very smooth and nice! Thank you!

What a wonderful rpi gaming world there will be if we would have ported games in this "lite" way! (Ok, here we could make a list of our dreams... from SHOGO to KINGPIN, NOLF and... TAKE NO PRISONERS!)

I'm curious: are you planning other "lite" projects?

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Mon Jan 29, 2018 6:29 pm

rainer.brito wrote:
Sun Jan 28, 2018 10:28 pm
Hi,

what a great job! Runs very smooth and nice! Thank you!

What a wonderful rpi gaming world there will be if we would have ported games in this "lite" way! (Ok, here we could make a list of our dreams... from SHOGO to KINGPIN, NOLF and... TAKE NO PRISONERS!)

I'm curious: are you planning other "lite" projects?

You’re welcome, I’m glad you like it. :) I still have quite a few features and bug fixes to add to Q3lite, including support for the VC4 OpenGL driver so I’ll be busy with this game for a while. I don’t currently have any plans for another port but maybe in the future.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 3:37 pm

Still having issues with keyboard, not sure why i cant type anything such as player name, i can delete the playername but not put something in
added // infront of unbindall in autoexec.cfg still no go, all deps are installed.

Second question why is the user quake3 created is it really needed?


Sincerally Martin

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 8:49 pm

ztealmax wrote:
Tue Jan 30, 2018 3:37 pm
Still having issues with keyboard, not sure why i cant type anything such as player name, i can delete the playername but not put something in
added // infront of unbindall in autoexec.cfg still no go, all deps are installed.

Second question why is the user quake3 created is it really needed?


Sincerally Martin

Here’s a basic guide to help you get started with setting up Quake 3 configuration files: https://www.quake3world.com/q3guide/configs.html

Any of your game settings that you store in ~/.q3a/baseq3/autoexec.cfg will override any settings that you set in the game, including player name and movement keybinds. If you want to set your player name in-game or on-the-fly simply add a “//” to the beginning of the appropriate line:

//seta name “UnnamedPlayer”

Now the game will ignore that line when it reads the autoexec.cfg file and you can set your player name in-game. The same goes for player movement binds or any other settings in the file. If you want to set all of your player movement keybinds in the game, place a “//” in front of each line that starts with the word “bind”, as well as the line that starts with “unbindall”. The settings in the supplied autoexec.cfg file are in alphabetical order to make them easier to find. You can also replace the supplied autoexec.cfg file with your own.

For security reasons, the quake3 user is created so that a Q3 server can be run under an account that doesn’t have sudo abilities.

I hope that helps to get the game running for you.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 8:59 pm

cdev-tux wrote:
Tue Jan 30, 2018 8:49 pm
ztealmax wrote:
Tue Jan 30, 2018 3:37 pm
Still having issues with keyboard, not sure why i cant type anything such as player name, i can delete the playername but not put something in
added // infront of unbindall in autoexec.cfg still no go, all deps are installed.

Second question why is the user quake3 created is it really needed?


Sincerally Martin

Here’s a basic guide to help you get started with setting up Quake 3 configuration files: https://www.quake3world.com/q3guide/configs.html

Any of your game settings that you store in ~/.q3a/baseq3/autoexec.cfg will override any settings that you set in the game, including player name and movement keybinds. If you want to set your player name in-game or on-the-fly simply add a “//” to the beginning of the appropriate line:

//seta name “UnnamedPlayer”

Now the game will ignore that line when it reads the autoexec.cfg file and you can set your player name in-game. The same goes for player movement binds or any other settings in the file. If you want to set all of your player movement keybinds in the game, place a “//” in front of each line that starts with the word “bind”, as well as the line that starts with “unbindall”. The settings in the supplied autoexec.cfg file are in alphabetical order to make them easier to find. You can also replace the supplied autoexec.cfg file with your own.

For security reasons, the quake3 user is created so that a Q3 server can be run under an account that doesn’t have sudo abilities.

I hope that helps to get the game running for you.

Yea thanx but what im saying is regarding keybindings etc is, i cant type anything in [Playername] field only delete username thats there
no mather what i do, also did as you said and put // infront of everything.

So no input from keys are registered ingame in Player settings not even caps lock is registrering only DELETE button is working. also tried deleting the whole autoexec.cfg same thing

any ideas m8?

some logs from running game:

Code: Select all

xinput_id=1 6 8 1 7 9

xinput disabled keyboard ID=1
xinput disabled keyboard ID=6
xinput disabled keyboard ID=8
xinput disabled keyboard ID=1
xinput disabled keyboard ID=7
xinput disabled keyboard ID=9
tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    xinput enabled keyboard ID=1
xinput enabled keyboard ID=6
xinput enabled keyboard ID=8
xinput enabled keyboard ID=1
xinput enabled keyboard ID=7
xinput enabled keyboard ID=9
Sincerally
Martin

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:24 pm

Ah, ok. There’s information about this issue in section 2.4 of the Q3lite FAQ. We’ll have to do some troubleshooting to get it running. I appreciate your patience with this since it’s a workaround for an SDL2 issue. Can you type “xinput” into a terminal and post the results? Also, are you running a fresh install of Raspbian Desktop?
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:30 pm

cdev-tux wrote:
Tue Jan 30, 2018 9:24 pm
Ah, ok. There’s information about this issue in section 2.4 of the Q3lite FAQ. We’ll have to do some troubleshooting to get it running. I appreciate your patience with this since it’s a workaround for an SDL2 issue. Can you type “xinput” into a terminal and post the results? Also, are you running a fresh install of Raspbian Desktop?
Really appriciate all the patiance you have with me ;)

XINPUT

Code: Select all

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Kingsis Peripherals ZOWIE Gaming mouse  	id=6	[slave  pointer  (2)]
⎜   ↳ SIGMACHIP USB Keyboard                  	id=8	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ SIGMACHIP USB Keyboard                  	id=7	[slave  keyboard (3)]
    ↳ C-Media USB Headphone Set               	id=9	[slave  keyboard (3)]
    ↳ SIGMACHIP USB Keyboard                  	id=10	[slave  keyboard (3)]
Running raspbian-stretch-lite with my own installation ofXFCE install script here:->

Code: Select all

#  Script by Martin Svensson 2018 / pi-workstation
#
# -[01]-set-realname.sh-------------------------------------------------
read -p 'What is your realname?: ' realname
sudo chfn -f 's/'$realname'/' pi
# -------------------------------------------------------------[01]-END-
#
# -[02]-set-hostname.sh-------------------------------------------------
echo Please enter computer name to be used on pi-workstation
read -p 'Computername: ' hostname
currenthost=$(hostname)
sudo sed -i 's/'$currenthost'/'$hostname'/g' /etc/hostname
echo ...file: /etc/hostname done!
sudo sed -i 's/'$currenthost'/'$hostname'/g' /etc/hosts
echo ...file /etc/hosts done!
sudo hostname $hostname
echo ...command:hostname done!
# -------------------------------------------------------------[02]-END-
#
# -[02]-set-keyboard.sh-------------------------------------------------
sudo sed -i 's|XKBLAYOUT=....|XKBLAYOUT=se|g' /etc/default/keyboard
echo "Changed to:"
grep "XKBLAYOUT" /etc/default/keyboard | sed 's/XKBLAYOUT=\(....\)/\1/g'
# -------------------------------------------------------------[02]-END-
#
# -[04]-apt-upgrade.sh--------------------------------------------------
sudo apt update -y && sudo apt upgrade -y
sudo rpi-update
echo "...done! - updated."
# -------------------------------------------------------------[04]-END-
#
# -[05]-set-config.sh---------------------------------------------------
sudo -- sh -c "echo 'gpu_mem=192' >> /boot/config.txt"
sudo -- sh -c "echo 'framebuffer_depth=32' >> /boot/config.txt"
sudo -- sh -c "echo 'framebuffer_ignore_alpha=1' >> /boot/config.txt"
echo "...done! - changed made in config.txt"

read -p "Are you using an external USB Soundcard? " -n 1 -r
echo    # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Ok then im shutting of the builtin card!"
    sudo sed -i 's/dtparam=audio=on/dtparam=audio=off/g' /boot/config.txt
    sudo -- sh -c "echo 'defaults.pcm.card 1'" >> /etc/asound.conf
    sudo -- sh -c "echo 'defaults.ctl.card 1'" >> /etc/asound.conf
echo "...You can reactivate the card in /boot/config.txt!"
fi
# -------------------------------------------------------------[05]-END-
#
# -[07]-xfce4-desktop.sh------------------------------------------------
sudo apt install --no-install-recommends -y xserver-xorg-core 
sudo apt install --no-install-recommends -y xinit
sudo apt install -y xserver-xorg-video-fbturbo
sudo apt install -y xserver-xorg-video-fbdev
sudo apt install -y xserver-xorg-input-all
sudo apt install -y xinput
sudo apt install -y xfonts-100dpi 
sudo apt install -y xfonts-75dpi
sudo apt install -y xfonts-base
sudo apt install -y xfonts-scalable
sudo apt install -y libgl1-mesa-dri
sudo apt install -y mesa-utils
sudo apt install -y libgles1-mesa
sudo apt install -y libgles2-mesa
sudo apt install -y mesa-va-drivers
sudo apt install -y gksu 
sudo apt install --no-install-recommends -y xfwm4
sudo apt install --no-install-recommends -y xfdesktop4
sudo apt install --no-install-recommends -y xfce4-panel
sudo apt install --no-install-recommends -y xfce4-mixer
sudo apt install --no-install-recommends -y xfce4-terminal
sudo apt install --no-install-recommends -y xfce4-taskmanager
sudo apt install --no-install-recommends -y thunar
sudo apt install --no-install-recommends -y thunar-archive-plugin
sudo apt install --no-install-recommends -y xfce4-session
sudo apt install --no-install-recommends -y xfce4-settings
sudo apt install --no-install-recommends -y wicd
sudo apt install -y gvfs gvfs-fuse gvfs-backends
sudo apt install -y build-essentials
sudo apt install -y libasound2-dev
sudo apt install -y libudev-dev
sudo apt install -y libibus-1.0-dev
sudo apt install -y libevdev-dev
sudo apt install -y libdbus-1-dev
sudo apt install -y fcitx-libs-dev
sudo apt install -y git
sudo apt install -y alsa-base bluealsa
sudo apt install -y lightdm 
sudo apt install -y lightdm-gtk-greeter
sudo apt install -y clearlooks-phenix-theme
sudo apt install -y faenza-icon-theme
# -------------------------------------------------------------[07]-END-
#
# -[08]-applications.sh-------------------------------------------------
sudo apt install -y leafpad                     #//text editor
sudo apt install -y xarchiver                   #//archive manager
sudo apt install -y unrar-free                  #//rar archive support
sudo apt install -y gparted                     #//partition manager
sudo apt install -y synaptic                    #//software manager
sudo apt install -y viewnior                    #//image viewer
sudo apt install -y piclone                     #//sdcard cloner
sudo apt install -y geany                       #//code editor 
sudo apt install -y audacity                    #//audio editor
sudo apt install -y lmms                        #//music composer
sudo apt install -y qmmp                        #//audio player
sudo apt install -y chromium-browser            #//web browser
sudo apt install -y gimp						#//Image Editor
sudo apt install -y winff						#//Video converter
sudo apt install -y soundconverter				#//Sound converter
sudo apt install -y gstreamer1.0-plugins-ugly	#//Extra plugins
sudo apt install -y mumble						#//Voice chat
sudo apt install -y gnumeric					#//Calculator
# -------------------------------------------------------------[08]-END-
#
# -[09]-chromium-mediaplayer.sh-----------------------------------------
sudo -- sh -c "echo '[Desktop Entry]' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Version=1.0' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Name=Chromium mediaplayer' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'GenericName=Mediaplayer' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Comment=Read, capture, broadcast your multimedia streams' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Name[sv]=Chromium mediaspelare' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'GenericName[sv]=Mediaspelare' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Comment[sv]=Spelare för film och musik' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Exec=/usr/bin/chromium-browser -window-size=1278,778 --new-window --disable-restore-session-state --no-default-browser-check --disable-java --disable-client-side-phishing-detection --app=file://%f
' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Icon=applications-multimedia' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Terminal=false' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Type=Application' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Categories=AudioVideo;Player;' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;video/x-flv;video/vnd.rn-realvideo;video/mp4;video/mp4v-es;video/mp2t;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;audio/ogg;video/ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;audio/amr;audio/amr-wb;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;application/xspf+xml;x-scheme-handler/mms;x-scheme-handler/rtmp;x-scheme-handler/rtsp;video/vnd.mpegurl;' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Keywords=Player;DVD;Audio;Video;' >> /usr/share/applications/chromium-mediaplayer.desktop"
chmod 655 /usr/share/applications/chromium-mediaplayer.desktop
chmod +x /usr/share/applications/chromium-mediaplayer.desktop
# -------------------------------------------------------------[09]-END-
#
# -[10]-chromium-customizations.sh--------------------------------------
sudo -- sh -c "echo 'CHROMIUM_FLAGS=' >> /etc/chromium-browser/customizations/00-piws-vars"
sudo sed -i 's/'CHROMIUM_FLAGS='/''CHROMIUM_FLAGS="--disable-quic --enable-fast-unload --enable-tcp-fast-open --disable-gpu-compositing --enable-native-gpu-memory-buffers --enable-gpu-rasterization --enable-zero-copy"''/g' /etc/chromium-browser/customizations/00-piws-vars
# -------------------------------------------------------------[10]-END-
#
# -[11]-polkit-customizations.sh----------------------------------------
sudo -- sh -c "echo '[Configuration]' >> /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf"
sudo -- sh -c "echo 'AdminIdentities=unix-user:pi;unix-user:0' >> /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf"
# -------------------------------------------------------------[11]-END-
#
# -[12]-fix-opengles-workaround.sh--------------------------------------
sudo ln -fs /opt/vc/lib/libbrcmEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so
sudo ln -fs /opt/vc/lib/libbrcmGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so
# -------------------------------------------------------------[12]-END-
#
# -[19]-cleanup.sh------------------------------------------------------
sudo apt purge -y htop
sudo apt purge -y xterm
sudo apt autoremove -y
sudo apt clean -y
# -------------------------------------------------------------[19]-END-
Sincerally
Martin
Last edited by ztealmax on Wed Jan 31, 2018 1:17 pm, edited 2 times in total.

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:47 pm

Can you open the /usr/local/bin/q3lite file in a text editor and change the line:

Code: Select all

xinput_id=””

to

xinput_id=”6 7 8 10”

Then try the game and see how it runs.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:50 pm

cdev-tux wrote:
Tue Jan 30, 2018 9:47 pm
Can you open the /usr/local/bin/q3lite file in a text editor and change the line:

Code: Select all

xinput_id=””

to

xinput_id=”6 7 8 10”
Then try the game and see how it runs.
Done, didnt work im affraid same problem, can i have missed installing something in xorg?

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:55 pm

Try running the game from a terminal by typing "sudo q3lite" and post the xinput results again, it looks like the xinput id=10 is being truncated.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 9:57 pm

Code: Select all

xinput_id=6 7 8 10

xinput disabled keyboard ID=6
xinput disabled keyboard ID=7
xinput disabled keyboard ID=8
xinput disabled keyboard ID=10
tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    tty]    
xinput enabled keyboard ID=6
xinput enabled keyboard ID=7
xinput enabled keyboard ID=8
xinput enabled keyboard ID=10

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 10:12 pm

Ok, the xinput stuff looks good. It looks like the game may be running in TTY mode. Start the game from the app menu and open the quake3 console. Scroll all the way up and see if the first line says:

tty console mode disabled
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 10:18 pm

Yea it says its disabled

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 10:29 pm

I don’t have any experience with adding or switching desktops on Raspbian, so I’m limited on suggestions related to those changes. But a quick look at your script shows a few items of concern. Try changing the lines in your /boot/config.txt to:

framebuffer_depth=16
#framebuffer_ignore_alpha=1

Then reboot for the changes to take effect.

Ignoring the alpha channel may prevent some items in the game from showing up.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 10:41 pm

cdev-tux wrote:
Tue Jan 30, 2018 10:29 pm
I don’t have any experience with adding or switching desktops on Raspbian, so I’m limited on suggestions related to those changes. But a quick look at your script shows a few items of concern. Try changing the lines in your /boot/config.txt to:

framebuffer_depth=16
#framebuffer_ignore_alpha=1

Then reboot for the changes to take effect.

Ignoring the alpha channel may prevent some items in the game from showing up.
Yea what that does it makes RPI run 32-bit color , and i have run it like that on an other compilation of Q3 and had no problems.
However i did what you said and changed it to what you recommended, and it had no effect on keyboard ;)

Must say this is a weird problem, im really stunned to what i should do next

Sincerally
Martin
Last edited by ztealmax on Tue Jan 30, 2018 10:58 pm, edited 1 time in total.

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 10:58 pm

Ok, I think I see the problem. You’re creating links that redirect to the old Broadcom drivers, which conflict with the Mesa drivers I believe. As I understand it, the drivers were renamed on Stretch to avoid that conflict. The game needs to use the libbrcmEGL.so and libbrcmGLESv2.so libraries that are installed with Stretch.
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Tue Jan 30, 2018 11:01 pm

cdev-tux wrote:
Tue Jan 30, 2018 10:58 pm
Ok, I think I see the problem. You’re creating links that redirect to the old Broadcom drivers, which conflict with the Mesa drivers I believe. As I understand it, the drivers were renamed on Stretch to avoid that conflict. The game needs to use the libbrcmEGL.so and libbrcmGLESv2.so libraries that are installed with Stretch.
But should that really conflict with keyboard input? Well if so then i have a problem as we cant use chromium-browser as its also hardcoded
to use the "old gles names"

Let me test this on fresh install of Raspbian-stretch with default desktop to se if same error accour give me 30min, if you still awake that is ;)

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Wed Jan 31, 2018 12:41 am

Ok run a standard Raspbian-Stretch with desktop everything is working including Chromium-browser with gpu accel.. guess they fixed that one :)

Did same symlinks on this install but everything still works in q3lite>

Code: Select all

sudo ln -fs /opt/vc/lib/libbrcmEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so
sudo ln -fs /opt/vc/lib/libbrcmGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so
So iguess something else is missing in my install script, some needed files for xorg-input perhaps!

So guess what i could do is do a full install of xorg and see if it makes any difference.
//Thanx for your patiance m8

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Wed Jan 31, 2018 3:23 am

Ok after testing it with full raspbian stretch desktop everything worked...

Now installed my desktop script and same error , keyboard is locked out for making changes in Player name field.

Must be something im not installing in the script thats needed for q3lite to be functioning properly.

Code: Select all

# Script by Martin Svensson 2018 / pi-workstation
# -[01]-set-realname.sh-------------------------------------------------
read -p 'What is your realname?: ' realname
sudo chfn -f "$realname" pi
# -------------------------------------------------------------[01]-END-
#
# -[02]-set-hostname.sh-------------------------------------------------
echo Please enter computer name to be used on pi-workstation
read -p 'Computername: ' hostname
currenthost=$(hostname)
sudo sed -i 's/'$currenthost'/'$hostname'/g' /etc/hostname
echo ...file: /etc/hostname done!
sudo sed -i 's/'$currenthost'/'$hostname'/g' /etc/hosts
echo ...file /etc/hosts done!
sudo hostname $hostname
echo ...commando:hostname done!
# -------------------------------------------------------------[02]-END-
#
# -[02]-set-keyboard.sh-------------------------------------------------
sudo sed -i 's|XKBLAYOUT=....|XKBLAYOUT=se|g' /etc/default/keyboard
echo "Changed to:"
grep "XKBLAYOUT" /etc/default/keyboard | sed 's/XKBLAYOUT=\(....\)/\1/g'
# -------------------------------------------------------------[02]-END-
#
# -[04]-apt-upgrade.sh--------------------------------------------------
sudo apt update -y && sudo apt upgrade -y
sudo rpi-update
echo "...done! - updated."
# -------------------------------------------------------------[04]-END-
#
# -[05]-set-config.sh---------------------------------------------------
sudo -- sh -c "echo 'gpu_mem=192' >> /boot/config.txt"
sudo -- sh -c "echo 'framebuffer_depth=32' >> /boot/config.txt"
sudo -- sh -c "echo 'framebuffer_ignore_alpha=1' >> /boot/config.txt"
echo "...klart! - Ändrat i konfigurationen för uppstart!"

read -p "Are you using an external USB Soundcard? " -n 1 -r
echo    # (optional) move to a new line
if [[ $REPLY =~ ^[Jj]$ ]]
then
echo "Ok then im shutting of the builtin card!"
    sudo sed -i 's/dtparam=audio=on/dtparam=audio=off/g' /boot/config.txt
    sudo -- sh -c "echo 'defaults.pcm.card 1'" >> /etc/asound.conf
    sudo -- sh -c "echo 'defaults.ctl.card 1'" >> /etc/asound.conf
echo "...You can reactivate the card in /boot/config.txt!"
fi
# -------------------------------------------------------------[05]-END-
#
# -START----------------------------------------------------------------
#  version so we only use not modded rpi-versions
echo 'Package: lxpanel' >> /etc/apt/preferences.d/lxpanel
echo 'Pin: version 0.9.3-1' >> /etc/apt/preferences.d/lxpanel
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/lxpanel
#
echo 'Package: lxpanel-data' >> /etc/apt/preferences.d/lxpanel-data
echo 'Pin: version 0.9.3-1' >> /etc/apt/preferences.d/lxpanel-data
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/lxpanel-data
# ------------------------------------------------------------------END-
#
# -[07]-lxde-desktop.sh/------------------------------------------------
sudo apt install -y xserver-xorg-core 
sudo apt install -y xinit
sudo apt install -y xserver-xorg-video-fbturbo
sudo apt install -y xserver-xorg-video-fbdev
sudo apt install -y xserver-xorg-input-all
sudo apt install -y xinput
sudo apt install -y xfonts-100dpi 
sudo apt install -y xfonts-75dpi
sudo apt install -y xfonts-base
sudo apt install -y xfonts-scalable
sudo apt install -y libgl1-mesa-dri
sudo apt install -y mesa-utils
sudo apt install -y libgles1-mesa
sudo apt install -y libgles2-mesa
sudo apt install -y mesa-va-drivers
sudo apt install -y gksu 
sudo apt install --no-install-recommends -y lxsession
sudo apt install --no-install-recommends -y lxpanel
sudo apt install --no-install-recommends -y lxpanel-data
sudo apt install --no-install-recommends -y lxterminal
sudo apt install --no-install-recommends -y lxappearance
sudo apt install --no-install-recommends -y lxappearance-obconf
sudo apt install --no-install-recommends -y lxtask
sudo apt install --no-install-recommends -y lxrandr
sudo apt install --no-install-recommends -y lxlauncher
sudo apt install --no-install-recommends -y lxpolkit
sudo apt install --no-install-recommends -y openbox
sudo apt install --no-install-recommends -y obconf
sudo apt install --no-install-recommends -y pcmanfm
sudo apt install --no-install-recommends -y lxde-core
sudo apt install --no-install-recommends -y xfce4-mixer
sudo apt install --no-install-recommends -y wicd
sudo apt install -y gvfs gvfs-fuse gvfs-backends
sudo apt install -y build-essentials
sudo apt install -y libasound2-dev
sudo apt install -y libudev-dev
sudo apt install -y libibus-1.0-dev
sudo apt install -y libevdev-dev
sudo apt install -y libdbus-1-dev
sudo apt install -y fcitx-libs-dev
sudo apt install -y git
sudo apt install -y alsa-base bluealsa
sudo apt install -y lightdm 
sudo apt install -y lightdm-gtk-greeter
sudo apt install -y clearlooks-phenix-theme
sudo apt install -y faenza-icon-theme
# -------------------------------------------------------------[07]-END-
#
# -[08]-applications.sh-------------------------------------------------
sudo apt install -y leafpad                     #//text editor
sudo apt install -y xarchiver                   #//archive manager
sudo apt install -y unrar-free                  #//rar archive support
sudo apt install -y gparted                     #//partition manager
sudo apt install -y synaptic                    #//software manager
sudo apt install -y viewnior                    #//image viewer
sudo apt install -y piclone                     #//sdcard cloner
sudo apt install -y geany                       #//code editor 
sudo apt install -y audacity                    #//audio editor
sudo apt install -y lmms                        #//music composer
sudo apt install -y qmmp                        #//audio player
sudo apt install -y chromium-browser            #//web browser
sudo apt install -y gimp						#//Image Editor
sudo apt install -y winff						#//Video converter
sudo apt install -y soundconverter				#//Sound converter
sudo apt install -y gstreamer1.0-plugins-ugly	#//Extra plugins
sudo apt install -y mumble						#//Voice chat
sudo apt install -y gnumeric					#//Calculator
# -------------------------------------------------------------[08]-END-
#
# -[09]-chromium-mediaplayer.sh-----------------------------------------
sudo -- sh -c "echo '[Desktop Entry]' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Version=1.0' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Name=Chromium mediaplayer' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'GenericName=Mediaplayer' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Comment=Read, capture, broadcast your multimedia streams' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Name[sv]=Chromium mediaspelare' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'GenericName[sv]=Mediaspelare' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Comment[sv]=Spelare för film och musik' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Exec=/usr/bin/chromium-browser -window-size=1278,778 --new-window --disable-restore-session-state --no-default-browser-check --disable-java --disable-client-side-phishing-detection --app=file://%f
' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Icon=applications-multimedia' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Terminal=false' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Type=Application' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Categories=AudioVideo;Player;' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;video/x-flv;video/vnd.rn-realvideo;video/mp4;video/mp4v-es;video/mp2t;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;audio/ogg;video/ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;misc/ultravox;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;image/vnd.rn-realpix;audio/x-pn-realaudio-plugin;application/x-extension-mp4;audio/mp4;audio/amr;audio/amr-wb;x-content/video-vcd;x-content/video-svcd;x-content/video-dvd;x-content/audio-cdda;x-content/audio-player;application/xspf+xml;x-scheme-handler/mms;x-scheme-handler/rtmp;x-scheme-handler/rtsp;video/vnd.mpegurl;' >> /usr/share/applications/chromium-mediaplayer.desktop"
sudo -- sh -c "echo 'Keywords=Player;DVD;Audio;Video;' >> /usr/share/applications/chromium-mediaplayer.desktop"
chmod 655 /usr/share/applications/chromium-mediaplayer.desktop
chmod +x /usr/share/applications/chromium-mediaplayer.desktop
# -------------------------------------------------------------[09]-END-
#
# -[10]-chromium-customizations.sh--------------------------------------
sudo -- sh -c "echo 'CHROMIUM_FLAGS=' >> /etc/chromium-browser/customizations/00-piws-vars"
sudo sed -i 's/'CHROMIUM_FLAGS='/''CHROMIUM_FLAGS="--disable-quic --enable-fast-unload --enable-tcp-fast-open --disable-gpu-compositing --enable-native-gpu-memory-buffers --enable-gpu-rasterization --enable-zero-copy"''/g' /etc/chromium-browser/customizations/00-piws-vars
# -------------------------------------------------------------[10]-END-
#
# -[11]-polkit-customizations.sh----------------------------------------
sudo -- sh -c "echo '[Configuration]' >> /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf"
sudo -- sh -c "echo 'AdminIdentities=unix-user:pi;unix-user:0' >> /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf"
# -------------------------------------------------------------[11]-END-
#
#
# -[19]-cleanup.sh------------------------------------------------------
sudo apt purge -y htop
sudo apt purge -y xterm
sudo apt autoremove -y
sudo apt clean -y
# -------------------------------------------------------------[19]-END-
If anyone got a clue of what it might be please let me know im at a total loss for now >P
Last edited by ztealmax on Wed Jan 31, 2018 1:17 pm, edited 1 time in total.

User avatar
cdev-tux
Posts: 37
Joined: Tue Sep 26, 2017 5:12 am
Contact: Website

Re: Q3lite - Quake III Arena for the Raspberry Pi

Wed Jan 31, 2018 4:14 am

I don’t know if you’ve seen this thread but if not there might be information there that will help.

[GUIDE] Raspbian Lite with RPD/LXDE/XFCE/MATE/i3/Openbox/X11 GUI
cdev-tux
Q3lite source code: https://github.com/cdev-tux/q3lite
Documentation, game FAQ and Compiling/Installation Guide: https://github.com/cdev-tux/q3lite/wiki

ztealmax
Posts: 61
Joined: Sat Aug 19, 2017 5:19 pm

Re: Q3lite - Quake III Arena for the Raspberry Pi

Wed Jan 31, 2018 1:16 pm

cdev-tux wrote:
Wed Jan 31, 2018 4:14 am
I don’t know if you’ve seen this thread but if not there might be information there that will help.

[GUIDE] Raspbian Lite with RPD/LXDE/XFCE/MATE/i3/Openbox/X11 GUI
Yea seen it nothing new there im affraid its just the basic knowhow, thanx anyway. im officially stuck
What anoyes me the most is that openarena works and i can make changes to playername etc... hmm

Also compiled git clone https://github.com/raspberrypi/quake3.git using old sdl and that works also out of the box, so i wonder if it might be
sdl or something else thats missing!

Ok think i have to do this the harder way, drop a list of all installed packages in Raspbian-stretch
and compare to mine...

Ok i ran q3lite directly bin /usr/local/games/quake3/
sudo ./quake3.armv7l +set fs_homepath /home/pi/.q3a
and when running
it that way everything works... this is just getting frustrating lol

Removed xinput totally from startup script:q3lite, didnt make any difference so dont think the problem is with xinput at all, continuing my attempts to locate exactly why its not running for me as it should ;-)

Its when running it with command sudo -u pi think its a group pi isnt member of

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 14 guests