SWRC-Modding / CT

C++ headers for Star Wars Republic Commando
164 stars 11 forks source link

OpenGL - glGetError #15

Closed Levan7 closed 2 years ago

Levan7 commented 2 years ago

What i understood according to read me file i changed RenderDevice to OpenGLDrv.OpenGLRenderDevice

Made it look like this

[Engine.Engine]
CacheSizeMegs=32
UpdateDynamicLightmaps=False
RenderDevice=OpenGLDrv.OpenGLRenderDevice
;RenderDevice=Engine.NullRenderDevice
;RenderDevice=OpenGLDrv.OpenGLRenderDevice
;RenderDevice=PixoDrv.PixoRenderDevice
AudioDevice=ALAudio.ALAudioSubsystem
;AudioDevice=XboxAudio.XboxAudioSubsystem

I got an error message stating

History: UGameEngine::Draw <- UWindowsViewport::Repaint <- UWindowsClient::Tick <- UGameEngine::Tick <- UpdateWorld <- MainLoop
Exit: Exiting.
Log: Waiting for file streaming thread to finish...
Exit: Name subsystem shut down; usage 31082 names (31634 max), 938 KB (1043 KB alloc)
Uninitialized: Log file closed, 03/28/22 20:37:09

Using nvidia 1050 ti - is it because of hardware limitation not supporting latest open gl

on default system.ini file if i type ingame userendev opengl getting this error

Exit: Executing UObject::StaticShutdownAfterError Exit: Executing UWindowsClient::ShutdownAfterError Log: Waiting for file streaming thread to finish... Exit: OpenAL Audio subsystem shut down. Critical: General protection fault!

History: UGameEngine::Tick <- UpdateWorld <- MainLoop
Exit: Exiting.
Log: Waiting for file streaming thread to finish...
Exit: Name subsystem shut down; usage 42467 names (43019 max), 1309 KB (1383 KB alloc)
Uninitialized: Log file closed, 03/28/22 20:51:00
leon-bckl commented 2 years ago

That card definitely supports OpenGL 4.5. Please set DebugOpenGL=True in Save/System.ini (Make sure to remove the leading semicolon) and post the log file

Levan7 commented 2 years ago

@Leon280698 Well it started the game without error, yes the graphics doesn't shows graphics (pink screen) but that is a different bug I believe Screenshot for references in game you just get pink screen.

Untitled

leon-bckl commented 2 years ago

That’s not a bug, it just doesn’t support video playback yet. It works now after setting this flag? That’s a little weird…

Levan7 commented 2 years ago

@Leon280698 gog version if it is a reference. yes it started after setting DebugOpenGL=True in Save/System.ini