[SOLVED] "opengl32.dll already exists" error, MOH Allied Assault, Win 11

  • dogsounds
  • Topic Author
More
1 year 1 month ago - 1 year 1 month ago #1 by dogsounds "opengl32.dll already exists" error, MOH Allied Assault, Win 11 was created by dogsounds
Hi all

Been going round and round with an issue all night and have reached a dead end - help!Game is Medal Of Honor Allied Assault Warchest from GOG. I had the game running perfectly with ReShade. Then I foolishly added the game to Nvidia GeForce Experience (yes, I know, it sucks) to try some rescaling, after which the game refused to load past the little dialog box, a grey or black screen and then back to desktop.

I have now removed GeForce Experience, and after uninstalling ReShade from the game AND uninstalling and re-installing the game, I was able to get the game to load by itself by adding an OpenGL32.dll file in the game's root folder, which seems to have been missing altogether. I used the one provided by GOG. However, problem is, when I then try and re-install ReShade to the game, to it, I get this :



Now, to fix this I can remove the default generic opengl32.dll (that I added earlier) out of the root folder, ReShade then completes the install the next time I try and installs its own opengl32.dll (Corsire's injector). But the game now goes to a black screen and shuts down back to desktop when I try to launch it. If I put the original opengl32.dll from GOG back (replacing the ReShade one) it loads perfectly again, but without ReShade at all.

Anyone got any clue as to what can be done? Just wanna play MOHHA with the iMMERSION shaders! If it helps, I was able to grab the dialog box as it loads:



And this is all that is in the LOG file: 

17:05:08:113 [19560] | INFO  | Initializing crosire's ReShade version '6.2.0.1880' (32-bit) loaded from "C:\Program Files (x86)\GOG Galaxy\Games\Medal of Honor - Allied Assault War Chest\opengl32.DLL" into "C:\Program Files (x86)\GOG Galaxy\Games\Medal of Honor - Allied Assault War Chest\MOHAA.exe" (0xd03d8989) ...
17:05:08:113 [19560] | INFO  | Registering hooks for "user32.dll" ...
17:05:08:114 [19560] | INFO  | > Libraries loaded.
17:05:08:114 [19560] | INFO  | > Found 14 match(es). Installing ...
17:05:08:131 [19560] | INFO  | Registering hooks for "C:\Windows\system32\dinput.dll" ...
17:05:08:131 [19560] | INFO  | > Libraries loaded.
17:05:08:131 [19560] | INFO  | > Found 3 match(es). Installing ...
17:05:08:148 [19560] | INFO  | Registering hooks for "ws2_32.dll" ...
17:05:08:148 [19560] | INFO  | > Libraries loaded.
17:05:08:148 [19560] | INFO  | > Found 8 match(es). Installing ...
17:05:08:165 [19560] | INFO  | Registering hooks for "C:\Windows\system32\opengl32.dll" ...
17:05:08:165 [19560] | INFO  | > Delayed until first call to an exported function.
17:05:08:165 [19560] | INFO  | Registering hooks for "vrclient.dll" ...
17:05:08:165 [19560] | INFO  | > Delayed.
17:05:08:166 [19560] | INFO  | Initialized.
17:05:08:614 [19560] | INFO  | Redirecting RegisterClassA(lpWndClass = 01BFEFB4 { "Medal of Honor Allied Assault", style = 0 }) ...
17:05:08:615 [19560] | INFO  | > Adding 'CS_OWNDC' window class style flag to "Medal of Honor Allied Assault".
17:05:08:692 [19560] | INFO  | Installing export hooks for "C:\Windows\system32\opengl32.dll" ...
17:05:08:693 [19560] | INFO  | > Found 360 match(es). Installing ...
17:05:08:815 [19560] | INFO  | Redirecting wglSetPixelFormat(hdc = 5C010DB5, iPixelFormat = 89, ppfd = 00803300) ...
17:05:08:815 [19560] | INFO  | Searching for add-ons (*.addon, *.addon32) in "C:\Program Files (x86)\GOG Galaxy\Games\Medal of Honor - Allied Assault War Chest" ...
17:05:08:818 [19560] | INFO  | Redirecting wglCreateContext(hdc = 5C010DB5) ...
17:05:08:818 [19560] | INFO  | > Passing on to wglCreateLayerContext:
17:05:08:818 [19560] | INFO  | Redirecting wglCreateLayerContext(hdc = 5C010DB5, iLayerPlane = 0) ...
17:05:08:886 [19560] | INFO  | Searching for add-ons (*.addon, *.addon32) in "C:\Program Files (x86)\GOG Galaxy\Games\Medal of Honor - Allied Assault War Chest" ...

 The game clearly natively needs opengl32.dll to launch, but for some reason now it refuses to accept the ReShade version of it, even though it was fine before - but I can't give it both! I am not very savvy about this stuff so please explain stuff like I am a five year old (lol)

Thank you for your lovely help! 
Last edit: 1 year 1 month ago by dogsounds. Reason: Edited for rubbish typing skills

Please Log in or Create an account to join the conversation.

  • crosire
More
1 year 1 month ago #2 by crosire Replied by crosire on topic "opengl32.dll already exists" error, MOH Allied Assault, Win 11
You could just leave it there and inject ReShade externally, see www.pcgamingwiki.com/wiki/ReShade#UWP_Games .
The following user(s) said Thank You: dogsounds

Please Log in or Create an account to join the conversation.

  • dogsounds
  • Topic Author
More
1 year 1 month ago #3 by dogsounds Replied by dogsounds on topic "opengl32.dll already exists" error, MOH Allied Assault, Win 11
Okay, many thanks fella, I shall give that a try :)

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.