trzy / Supermodel

Official repository of the Sega Model 3 arcade emulator.
https://supermodel3.com
230 stars 35 forks source link

[Linux][lamachin] Black screen when launching L.A. Machineguns #153

Open WebSiteFurbo opened 1 month ago

WebSiteFurbo commented 1 month ago

Hello to everybody,

L.A. Machineguns is correctly booted, but all I can see is a black screen. This bug has not already been posted on Github. There is no trace of it neither in the FAQ (https://www.supermodel3.com/FAQ.html) nor in the forum (https://www.supermodel3.com/Forum/). This problem is always occurring, it is not an intermittent bug.

This is the output of my Linux shell, there are no errors:

./supermodel lamachin.zip Supermodel: A Sega Model 3 Arcade Emulator (Version 0.3a-WIP) Copyright 2003-2023 by The Supermodel Team GPU info: 4.6 (Core Profile) Mesa 24.0.5-1ubuntu1 (core profile)

Title:          L.A. Machineguns: Rage of the Machines (Japan)
ROM Set:        lamachin
Developer:      Sega
Year:           1998
Stepping:       2.1
Extra Hardware: Security Board

I am using Ubuntu 24.04 LTS, with gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0 and libglu1-mesa-dev installed. Ocean Hunter, Star Wars Trilogy, The Lost World and Fighting Vipers 2 do not have this problem. Any help is greatly appreciated. I am available for any additional information.

ioamero commented 1 month ago

Are you giving up already?
supermodel -print-gl-info

install sdl2

sudo apt install libsdl2-dev libsdl2-2.0-0 -y;

install sdl image - if you want to display images

sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;

install sdl mixer - if you want sound

sudo apt install libmikmod-dev libfishsound1-dev libsmpeg-dev liboggz2-dev libflac-dev libfluidsynth-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 -y;

install sdl true type fonts - if you want to use text

sudo apt install libfreetype6-dev libsdl2-ttf-dev libsdl2-ttf-2.0-0 -y;

WebSiteFurbo commented 1 month ago

Hello ioamero, thanks for the information.

I executed ./supermodel -print-gl-info, here are my graphical specifications:

Supermodel: A Sega Model 3 Arcade Emulator (Version 0.3a-WIP) Copyright 2003-2023 by The Supermodel Team GPU info: 4.6 (Compatibility Profile) Mesa 24.0.5-1ubuntu1 (compatability profile)

OpenGL information:

Vendor : Intel Renderer : Mesa Intel(R) Graphics (ADL GT2) Version : 4.6 (Compatibility Profile) Mesa 24.0.5-1ubuntu1 Shading Language Version : 4.60 Maximum Vertex Array Size: 3000 vertices Maximum Texture Size : 16384 texels Maximum Vertex Attributes: 16 Maximum Vertex Uniforms : 16384 Maximum Texture Img Units: 32

My Shading Language Version is 4.60, so it's ok to run the emulator https://www.supermodel3.com/FAQ.html.

I tried ./supermodel lamachin.zip -frag-shader=Fragment_NoSpotlight.glsl as well, but nothing happens https://www.supermodel3.com/AdvancedUsage.html#Shaders

libsdl2-dev and libsdl2-2.0-0 were already installed. I installed your sdl image package list (libjpeg-dev, libwebp-dev, libtiff5-dev, libsdl2-image-dev, libsdl2-image-2.0-0) but there is always the black screen instead of the game's attract mode.

ioamero commented 1 month ago

Try with this two options ./supermodel -new3d -quad-rendering lamachin.zip also your rom might be outdated.

WebSiteFurbo commented 1 month ago

Hi ioamero,

I tried your command, as well as ./supermodel -legacy3d -quad-rendering lamachin.zip, but we should find another solution. I think it's really a bug because I have this problem only with L.A. Machineguns. I will test my rom on a Windows system, then I will let you know the result ;)

WebSiteFurbo commented 1 month ago

Ok, I can confirm to you that my rom is working in Windows 11, so it's just a problem related to the Linux version of the emulator. Capture d’écran 2024-05-28 212759

dukeeeey commented 1 month ago

Try reducing the resolution to something extremely small 256x256 windowed mode for example. See if it boots

ioamero commented 1 month ago

Could you be able to build it yourself, I suggest to rebuild it.

WebSiteFurbo commented 1 month ago

Thanks, maybe one day I will try it :)

ioamero commented 1 month ago

I forgot to mention about the corrupted NVRAM of the game.

WebSiteFurbo commented 1 month ago

Thanks for the suggestion. Although I erased the NVRAM file before booting, the game gave me the same black screen. Even the low resolution boot did not work.