Need help with old OpenGL games

If it's not ZDoom, it goes here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Need help with old OpenGL games

Post by Graf Zahl »

Playing through some old games I hit a problem with some Q2-engine based ones. The Q2 engine has a nasty problem with trying to read the OpenGL extension string into a static buffer that's too small for today's hardware and several of these old games are crashing on my current system as a result

In the graphics driver's settings (NVidia) I cannot find anything, even though I dimly remember having seen such a setting in the past.
Trying to find a workaround through Google yielded no results. Does anyone here know a solution?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Need help with old OpenGL games

Post by Gez »

You might try to get them to run with Mesa3D? It has an option for that.
https://www.mesa3d.org/application-issues.html
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Need help with old OpenGL games

Post by Graf Zahl »

Uh, I want to run them with full hardware acceleration. I already had the 'joy' of running GZDoom with Mesa and that was a very shitty experience even on the IWAD levels as there's no hardware acceleration.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Need help with old OpenGL games

Post by NeuralStunner »

Extension limit has been removed from the configuration UI, but it's still present in application profiles. You can use nVidia Profile Inspector to access this and a few other hidden settings. [Link (Guru3D)]

Disclaimer: This is not a general recommendation. Graf knows what he's doing. If you don't know what you're doing, please ignore this program.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Need help with old OpenGL games

Post by Graf Zahl »

Thanks, that did it. I have to say I'm a bit surprised how well an old game like SiN still works if these sloppy issues are taken care of.
NeuralStunner wrote:Extension limit has been removed from the configuration UI, but it's still present in application profiles. You can use nVidia Profile Inspector to access this and a few other hidden settings. [Link (Guru3D)]
I wonder what kind of moron made that decision. This limit is essential for running old stuff.
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Need help with old OpenGL games

Post by NeuralStunner »

It's probably a case of making space for new feature settings (E.G. ambient occlusion) without making the list huge and cluttered. Frankly, that would've been more easily solved by categorizing the list - Which is exactly what Inspector does.
User avatar
leileilol
Posts: 4449
Joined: Sun May 30, 2004 10:16 am
Preferred Pronouns: She/Her
Location: GNU/Hell

Re: Need help with old OpenGL games

Post by leileilol »

Another silly way is to hex the extension string in the game's exe itself just dropping the %s out to make the game see no extensions at all (which can incidentally drop certain features anyhow but)

and yes it's nice to hear regressive UX madness affects all the graphics vendors. I thought AMD Crimson had it worse.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Need help with old OpenGL games

Post by Graf Zahl »

leileilol wrote:Another silly way is to hex the extension string in the game's exe itself just dropping the %s out to make the game see no extensions at all (which can incidentally drop certain features anyhow but)
That won't work because the buffer that's too small is the one being passed to the system's glGetString function, not something sprintf writes into.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Need help with old OpenGL games

Post by Graf Zahl »

Is there some sort of emulator that can play back the CD audio music of some of these games even without a CD present? My current system doesn't even have a working CD drive anymore (it broke down last year and I saw no point replacing it because it gets so rarely used...) and even if it did I wouldn't be sure that it even could do it anymore.
User avatar
The Ultimate DooMer
Posts: 2109
Joined: Tue Jul 15, 2003 5:29 pm
Location: Industrial Zone

Re: Need help with old OpenGL games

Post by The Ultimate DooMer »

NeuralStunner wrote:Extension limit has been removed from the configuration UI, but it's still present in application profiles. You can use nVidia Profile Inspector to access this and a few other hidden settings. [Link (Guru3D)]

Disclaimer: This is not a general recommendation. Graf knows what he's doing. If you don't know what you're doing, please ignore this program.
I think I'm gonna grab it anyway, in case I want to play those games again. (SiN had it's gameplay flaws but the setting, graphics and especially the sounds were amazing)
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: Need help with old OpenGL games

Post by Kinsie »

What games, specifically? There are a number of user-generated patches and fixes out there that get such games to play nice on modern machines.
Graf Zahl wrote:Is there some sort of emulator that can play back the CD audio music of some of these games even without a CD present? My current system doesn't even have a working CD drive anymore (it broke down last year and I saw no point replacing it because it gets so rarely used...) and even if it did I wouldn't be sure that it even could do it anymore.
There are a wide number of tools out there to mount a disc image of a CD and play CD music through that. Windows 8 onwards natively supports mounting ISOs in Explorer, and WinCDEmu is a great open-source, malware-free solution for other formats.
User avatar
Rachael
Posts: 13965
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Need help with old OpenGL games

Post by Rachael »

The problem with those tools is, ISO images do not contain audio data. That is why there are other CD formats available - I think .bin/.cue pairs do support it but you do need special software in order to mount such images.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Need help with old OpenGL games

Post by Graf Zahl »

I was thinking about a more generic solution, e.g. ripping the audio data to Ogg and having something that can reroute the CD audio calls to play those Oggs instead of accessing the CD drive. I haven't found anything along those lines yet, but in general I wonder, how are people playing games of that vintage that come with CD audio based music on modern PCs without actually using the CD?
User avatar
Rachael
Posts: 13965
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Need help with old OpenGL games

Post by Rachael »

Try this: https://www.vogons.org/viewtopic.php?p=528516

Winmm seems to be the most promising but you'll have to compile it, yourself, and you'll probably have to drop it in as a .dll in your game's install folder.

If you're playing Quake 2, you can skip this entirely and use KMQuake2, it does exactly that but of course it's limited to that engine.
User avatar
Kinsie
Posts: 7402
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: Need help with old OpenGL games

Post by Kinsie »

Rachael wrote:If you're playing Quake 2, you can skip this entirely and use KMQuake2, it does exactly that but of course it's limited to that engine.
He said "Q2-engine" so I suspect it's some weird engine-licensee.

I'd also suggest using the Unofficial Patch by the same guy instead of KMQuake2, it has the OGG music support without all the other mod-breaking eye-candy stuff.
Post Reply

Return to “Off-Topic”