AM2R-Community-Developers / AM2R-Community-Updates

Source code for AM2R 1.5.2+, free of copyrighted assets and trademarks.
https://www.reddit.com/r/AM2R/
Other
137 stars 25 forks source link

Can't start AM2R AppImage on Linux Mint #108

Closed hazelnot closed 2 years ago

hazelnot commented 2 years ago

Describe the bug I can't start the game on Linux Mint

To Reproduce Use Linux Mint, try to start the AppImage version

Platform (please complete the following information):

Game Version: 1.5.5

Additional context I used the AM2R launcher, but when I click on Play it starts AM2R in a tiny black window which immediately crashes.

I managed to locate the AppImage it created, and this is the terminal log I'm getting:

***************************************
*     YoYo Games Linux Runner V1.3    *
***************************************  
CommandLine: -game game.unx
ExeName= /tmp/.mount_AM2R.AfL5Im7/usr/bin/AM2R
MemoryManager allocated: 1722124

***************************************
*     YoYo Games Runner v1.0(999)[r32908]    *
***************************************  
RunnerLoadGame: game.unx
RunnerLoadGame() - assets/game.unx
Checking if INIFile assets/options.ini Exists
!!!!No INI File assets/options.ini
Reading File assets/game.unx
Loaded File assets/game.unx(72089444)
IFF wad found
Get Resolution
Get Header Information
InitGMLFunctions
HighScore..SavePrePend /home/hazelnot/.config/AM2R/ 
Game..Math..Graphic..Action..File..Resource..Interaction..3D..Particle..Misc..DS..Sound..Physics..Gamepad..GAMEPAD: Initialising Ubuntu support
GAMEPAD: 4 axis values (last) at 0xf714b600
GAMEPAD: 4 axis values (last) at 0xf714b5e0
GAMEPAD: 4 axis values (last) at 0xf714b5c0
GAMEPAD: 4 axis values (last) at 0xf714b5a0
Buffers..Networking..Shaders..InitPushFunctions...YoYo..Fini
Code_Load()
VARI_Load()
got 361 global variables
got 2183 instance variables
got 22 local variables
ID_STRG
Create Window
Display Size(Pixels): 1920,1080
GameDisplayName=AM2R
Win #1
XF86VidModeExtension-Version 2.2
Got Doublebuffered Visual!
glX-Version 1.4
Icon: w=72 h=72
sw=1920 wh=1080
WindowCentre: 800,420
Depth 24
Congrats, you have Direct Rendering!
sync = 0
**** GLX Extensions ***
GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_get_proc_address GLX_ARB_multisample GLX_EXT_buffer_age GLX_EXT_create_context_es2_profile GLX_EXT_create_context_es_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_MESA_multithread_makecurrent GLX_MESA_query_renderer GLX_MESA_swap_control GLX_OML_swap_method GLX_OML_sync_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_SGI_make_current_read GLX_SGI_video_sync 
Checking for GLX_EXT_swap_control
Checking for GLX_SGI_swap_control
Checking for GLX_MESA_swap_control
Vsync: GLX_MESA
DOUBLE BUFFERED
Init Graphics
GR_D3D_Init()
OpenGL: version string 3.0 Mesa 21.0.3
OpenGL: vendor string Intel Open Source Technology Center
OpenGL GLSL: version string 1.30
Check TextureID
finished(2)!!
Texture #1 16,16
Texture #2 16,16
Segmentation fault (core dumped)

I've seen this reddit post with a similar issue, but using LD_PRELOAD=/usr/lib/i386-linux-gnu/libGL.so.1 doesn't seem to help, and instead I get a different error:

ERROR: ld.so: object '/usr/lib/i386-linux-gnu/libGL.so.1' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

***************************************
*     YoYo Games Linux Runner V1.3    *
***************************************  
CommandLine: -game game.unx
ExeName= /tmp/.mount_AM2R.AP4JqXc/usr/bin/AM2R
MemoryManager allocated: 1722124

***************************************
*     YoYo Games Runner v1.0(999)[r32908]    *
***************************************  
RunnerLoadGame: game.unx
RunnerLoadGame() - assets/game.unx
Checking if INIFile assets/options.ini Exists
!!!!No INI File assets/options.ini
Reading File assets/game.unx
Loaded File assets/game.unx(72089444)
IFF wad found
Get Resolution
Get Header Information
InitGMLFunctions
HighScore..SavePrePend /home/hazelnot/.config/AM2R/ 
Game..Math..Graphic..Action..File..Resource..Interaction..3D..Particle..Misc..DS..Sound..Physics..Gamepad..GAMEPAD: Initialising Ubuntu support
GAMEPAD: 4 axis values (last) at 0xf7198600
GAMEPAD: 4 axis values (last) at 0xf71985e0
GAMEPAD: 4 axis values (last) at 0xf71985c0
GAMEPAD: 4 axis values (last) at 0xf71985a0
Buffers..Networking..Shaders..InitPushFunctions...YoYo..Fini
Code_Load()
VARI_Load()
got 361 global variables
got 2183 instance variables
got 22 local variables
ID_STRG
Create Window
Display Size(Pixels): 1920,1080
GameDisplayName=AM2R
Win #1
XF86VidModeExtension-Version 2.2
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/i386-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Got Doublebuffered Visual!
glX-Version 1.4
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40
Miepee commented 2 years ago

Hi, which GPU are you using? Have you looked at this yet?

hazelnot commented 2 years ago

I'm trying to set it up on my laptop, which only has an Intel HD 620. I didn't look at that cause I didn't know it existed haha, LIBGL_DRI3_DISABLE=1 worked, thanks a lot!

Is there any way to make the launcher auto-detect this kinda stuff and set the environmental variables?

Miepee commented 2 years ago

There's an environment variable text box in the Settings Tab of the AM2RLauncher.

In the future I'd like to work on making the AppImage actually cross-platform, so environment variables aren't neeeded.

Miepee commented 2 years ago

@hazelnot there's a current WIP here, if you can I'd appreciate testing.