====== Information ====== * Xonotic ((http://xonotic.org)) * Git ((https://gitlab.com/xonotic/xonotic)) ===== Prerequisites ===== * [[linux;distros;solus|Solus]] * :!: TODO: Update to mainstream distro ===== Notes ===== * Xonotic compiled from Git is required for AES support and lossless textures ====== Dependencies ====== **** sudo eopkg install git gcc glibc-devel binutils make g++ kernel-libc-devel sdl2-devel zlib-devel libjpeg-turbo-devel libx11-devel ====== Download Initial Source ====== **** sudo git clone -b 'master' 'git://git.xonotic.org/xonotic/xonotic.git' '/usr/share/xonotic' && sync ====== Install ====== ===== Download Complete Source ===== **** cd '/usr/share/xonotic' && sudo '/usr/share/xonotic/all' update -l 'best' && sync ==== Compile ==== **** cd '/usr/share/xonotic' && sudo '/usr/share/xonotic/all' compile -r 'sdl' && sync ==== Update ==== **** cd '/usr/share/xonotic' && sudo '/usr/share/xonotic/all' clean --reclone && sudo '/usr/share/xonotic/all' compile -r 'sdl' && sync ====== Desktop Launcher ====== ===== Initial ===== **** mkdir -p ~/'.local/share/applications/Xonotic' ===== Xonotic ===== nano ~/'.local/share/applications/Xonotic/Xonotic.desktop' [Desktop Entry] Name=Xonotic Categories=Game; Exec='/usr/share/xonotic/all' run 'sdl' Type=Application StartupNotify=true Path=/usr/share/xonotic Icon=XGM6_Xonotic.0 ==== Icon ==== **** mkdir -p ~/'.local/share/icons/hicolor/512x512/apps' && cp '/usr/share/xonotic/misc/logos/icons_png/xonotic_512.png' ~/'.local/share/icons/hicolor/512x512/apps/XGM6_Xonotic.0.png' ====== TODO ====== * [[linux:distros:opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]] * https://gitlab.com/xonotic/xonotic * https://gitlab.com/xonotic/xonotic/-/wikis/Repository_Access * https://gitlab.com/xonotic/xonotic/-/commits/master?ref_type=HEADS * https://gitlab.com/xonotic/xonotic/-/blob/master/misc/tools/all/zsh_autocompletion/all/_all?ref_type=heads * https://gitlab.com/xonotic/xonotic/-/blob/master/misc/tools/all/config.subr#L24 (mirrors) * ''-0'' for AES/multiplayer, ''-1'' no AES support ((:?: Local singleplayer games with Enable AES option checked uses encryption)) ((client doesn't report ''Engine lacks DP_CRYPTO'' with ''libd0_blind_id0'' installed but doesn't use it/doesn't show in-game AES option with ''-1''; TODO: Maybe cvar for AES force-enabled, ''-1'' + ''libd0_blind_id0'', and check server browser -> info -> Encryption used)) * :!: TODO: Note key file for backup/restore/no-delete (stats/keygen server) ===== Initial ===== sudo zypper install git-core gcc16 gcc16-c++ autoconf automake libtool gmp-devel make sdl2-compat-devel zlib-devel libjpeg8-devel libX11-devel cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/Xonotic/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://gitlab.com/xonotic/xonotic.git' ~/'Projects/Xonotic/src' ===== Build/Update ===== ~/'Projects/Xonotic/src/all' switch 'master' && ~/'Projects/Xonotic/src/all' update -N && ~/'Projects/Xonotic/src/all' clean --reclone ln -s -f '/usr/bin/gcc-16' ~/'.local/bin/cc' && CC='/usr/bin/gcc-16' CXX='/usr/bin/g++-16' ~/'Projects/Xonotic/src/all' compile -c -r -'0' 'sdl' && rm -f ~/'.local/bin/cc' ===== Launch ===== **** ~/'Projects/Xonotic/src/all' run 'sdl'