when launchng the snap it brings up this error Unable to create SDL Window of size 965 by 544
am using wsl2 to make the snap
so i did some few updates to the yaml but know it says ba_data
(the game resource folder) directory not found,
same error output here is the snap configuration
this looks like your screenshot of your snapcraft.yaml is cut off …
note that it is way more helpful to work with text here instead of screenshots of files …
also, the full error message copy/pasted would be good
2023/02/28 18:08:35.155527 cmd_run.go:1055: WARNING: cannot start document portal: dial unix /run/user/1000/bus: connect: no such file or directory FATAL ERROR: Unhandled exception in BallisticaMain(): ba_data directory not found. Thrown from main thread: /snap/bombsquad/x1/bombsquad(+0x22c15d) [0x5567189b015d] /snap/bombsquad/x1/bombsquad(+0x130563) [0x5567188b4563] /snap/bombsquad/x1/bombsquad(+0xa9eac) [0x55671882deac] /snap/bombsquad/x1/bombsquad(+0x10aa9b) [0x55671888ea9b] /snap/bombsquad/x1/bombsquad(+0x235001) [0x5567189b9001] /snap/bombsquad/x1/bombsquad(+0x12ecf4) [0x5567188b2cf4] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fec5a6a1083] /snap/bombsquad/x1/bombsquad(+0xf9aee) [0x55671887daee] terminate called after throwing an instance of ‘ballistica::Exception’ what(): ba_data directory not found. Thrown from main thread: /snap/bombsquad/x1/bombsquad(+0x22c15d) [0x5567189b015d] /snap/bombsquad/x1/bombsquad(+0x130563) [0x5567188b4563] /snap/bombsquad/x1/bombsquad(+0xa9eac) [0x55671882deac] /snap/bombsquad/x1/bombsquad(+0x10aa9b) [0x55671888ea9b] /snap/bombsquad/x1/bombsquad(+0x235001) [0x5567189b9001] /snap/bombsquad/x1/bombsquad(+0x12ecf4) [0x5567188b2cf4] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7fec5a6a1083] /snap/bombsquad/x1/bombsquad(+0xf9aee) [0x55671887daee] Aborted
name: bombsquad
base: core20
version: '1.7.19'
summary: An explosive arcade-style party game best enjoyed with several friends
description: |
Jump, punch, throw, and bomb your way to victory as you compete in a
plethora of mini-games including Capture-the-Flag, King-of-the-Hill,
Bomber-Hockey, and of course Epic-Slow-Motion-Elimination.Up to 8 local
players can get in on the action through BombSquads support of keyboards,
PC gamepads, Wiimotes, PS3 controllers, and XBox 360 controllers.
You can even use iOS and Android devices as wireless gamepads via BombSquad Remote,
available for free on the iOS App Store, Google Play, and the Amazon Appstore.Harness
your mastery of physics to barrage your opponents from afar with precision-thrown bombs,
or simply charge in and toss your enemies off the nearest cliff; all is fair in love and BombSquad.
Bombs away!
grade: devel
confinement: devmode
architectures:
- build-on: amd64
apps:
bombsquad:
environment:
ALSA_CONFIG_PATH: /snap/$SNAPCRAFT_PROJECT_NAME/current/usr/share/alsa
PYTHONHOME: "$SNAP/usr"
LIBGL_DRIVERS_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri"
LD_LIBRARY_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/mesa:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/mesa-egl:/var/lib/snapd/lib/gl"
__EGL_VENDOR_LIBRARY_DIRS: "/var/lib/snapd/lib/glvnd/egl_vendor.d:$__EGL_VENDOR_LIBRARY_DIRS"
command: bombsquad
command-chain: ["snap/command-chain/alsa-launch"]
plugs:
- alsa
- x11
- opengl
- desktop
- network
- network-bind
- audio-playback
- joystick
- screen-inhibit-control
- pulseaudio
package-repositories:
- type: apt
ppa : deadsnakes/ppa
layout:
/usr/share/alsa:
bind: $SNAP/usr/share/alsa
parts:
bombsquad:
after: [alsa-mixin]
plugin: dump
source: BombSquad_Linux_x86_64_1.7.19/
stage-packages:
- libopengl0
- libsdl2-2.0-0
- libopenal1
- libpython3.10
- libvorbisfile3
alsa-mixin:
plugin: nil
source: https://github.com/diddlesnaps/snapcraft-alsa.git
override-pull: |
cat > asound.conf <<EOF
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
seq.default {
type hw
}
seq.hw {
type hw
}
EOF
cat > alsa-launch <<EOF
#!/bin/bash
export ALSA_CONFIG_PATH="\$SNAP/etc/asound.conf"
if [ -d "\$SNAP/usr/lib/alsa-lib" ]; then
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:\$SNAP/usr/lib/alsa-lib"
elif [ -d "\$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib" ]; then
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:\$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/alsa-lib"
fi
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:\$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio"
# Make PulseAudio socket available inside the snap-specific \$XDG_RUNTIME_DIR
if [ -n "\$XDG_RUNTIME_DIR" ]; then
pulsenative="pulse/native"
pulseaudio_sockpath="\$XDG_RUNTIME_DIR/../\$pulsenative"
if [ -S "\$pulseaudio_sockpath" ]; then
export PULSE_SERVER="unix:\${pulseaudio_sockpath}"
fi
fi
exec "\$@"
EOF
chmod +x alsa-launch
override-build: |
snapcraftctl build
install -m644 -D -t $SNAPCRAFT_PART_INSTALL/etc asound.conf
install -m755 -D -t $SNAPCRAFT_PART_INSTALL/snap/command-chain alsa-launch
build-packages:
- libasound2-dev
stage-packages:
- libasound2
- libasound2-plugins
oops, i should have mentioned that, please use three back ticks ``` in the line above and below text you paste, that way the indentation (which is essential for yaml) does not get messed up and it stays readable for all of us …
i thinks its an issue on the dev side