snowie2000 / mactype

Better font rendering for Windows.
https://mactype.net
GNU General Public License v3.0
9.97k stars 442 forks source link

The ordinal 345 could not be located in the dynamic link library ....xxxx.exe #864

Open perdrix52 opened 2 years ago

perdrix52 commented 2 years ago

I though this was a fixed issue? But it bit me today.

David

snowie2000 commented 2 years ago

No fixes yet, 'cause nobody knows why it happened, and I can't reproduce it personally on any of my computers.

liberaldev commented 2 years ago

This symptoms (Ordinal 345 error) occur in Call of Duty Warzone (Modern Warfare) and cannot be resolved by adding the corresponding exe file to Unloaddll. The only workaround is to turn off Mactype. The game is free and can be downloaded from Battle.net outside of Mainland China.

anAyasaMade-of-Kirby commented 2 years ago

I have this exact same issue, whenever I start the mactype service, warzone (modern warfare) cannot be launched and I will keep getting ordinal 345 error, but if I turn off mactype service the error will go away, I'm not sure what is causing it and event viewer doesn't even flag it as warning or error, the log also contains no useful information besides how is the error described: Application popup: ModernWarfare.exe - Ordinal Not Found : The ordinal 345 could not be located in the dynamic link library D:\COD\Call of Duty Modern Warfare\ModernWarfare.exe. I can provide more info from my PC if you need it for this issue.

liberaldev commented 2 years ago

I have this exact same issue, whenever I start the mactype service, warzone (modern warfare) cannot be launched and I will keep getting ordinal 345 error, but if I turn off mactype service the error will go away, I'm not sure what is causing it and event viewer doesn't even flag it as warning or error, the log also contains no useful information besides how is the error described: Application popup: ModernWarfare.exe - Ordinal Not Found : The ordinal 345 could not be located in the dynamic link library D:\COD\Call of Duty Modern Warfare\ModernWarfare.exe. I can provide more info from my PC if you need it for this issue.

Yes, I also get the same error in service mode. My OS is Windows 11.

sammilucia commented 2 years ago

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

liberaldev commented 2 years ago

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

sammilucia commented 2 years ago

reopened

anAyasaMade-of-Kirby commented 2 years ago

same, i tried to add MW executable as an exception(), but i still get the same error if i start the mactype service image

snowie2000 commented 2 years ago

Maybe there are some companion application started along side the COD game? like the infamous RuntimeBroke.exe?

snowie2000 commented 2 years ago

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

I would like know that if you started up your game via a shortcut? If yes, try to execute the .exe file directly. I'm kinda suspect that MacType has failed to correctly extracted your game executable filename from your shortcut.

I really have no more thoughts besides that.

liberaldev commented 2 years ago

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

I've already added that game executable to the [UnloadDll] section, and the symptoms are still reproduced.

I would like know that if you started up your game via a shortcut? If yes, try to execute the .exe file directly. I'm kinda suspect that MacType has failed to correctly extracted your game executable filename from your shortcut.

I really have no more thoughts besides that.

This error only occurs when running from a shortcut or through the battle.net launcher. I was able to play the game by running the .exe file directly from the install path.

My environment is Windows 11 21H2 build 22000.739.

snowie2000 commented 2 years ago

@ssharp0614 I guess I got the idea.

Please send me the problematic shortcut (.lnk file). I won't able to launch your game from that, but I think the information it carries is enough for me. Thanks.

perdrix52 commented 2 years ago

If it is relevant, one of the programs I have this issue with is sidebar.exe started with a lnk file: C:\Users\amonra\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Sidebar602.lnk sidebar.zip

snowie2000 commented 2 years ago

If it is relevant, one of the programs I have this issue with is sidebar.exe started with a lnk file: C:\Users\amonra\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Sidebar602.lnk sidebar.zip

Okay, but what you sent is an exe.

perdrix52 commented 2 years ago

Drats - 7-Zip being too smart for its own good followed the lnk file and added the exe instead of adding the lnk file to the archive sidebar.zip

snowie2000 commented 2 years ago

@perdrix52 @ssharp0614 Replace mactype files with this one: MacType-BetterGuess.zip

Turned out I misunderstood the rules of the CreateProcess parameters, and MacType may extract the wrong name from it. And in certain cases failed to apply the unloadDll rules in the first chance, which may cause some applications to not run properly.

Please try this improved version and see if it makes any difference.

perdrix52 commented 2 years ago

Files are in use of course ... How should I install the replacements? Using Safe Mode?

snowie2000 commented 2 years ago

Files are in use of course ... How should I install the replacements? Using Safe Mode?

Windows rules: executable files (.exe, .dll) in-use can't be replaced, but they can be renamed, then you can put new files in, and restart your computer.

cmihairo commented 2 years ago

As a general rule you should exclude game executables from MacType.ini in the [UnloadDll] section. Many games will work, but many won't because they do weird things we can't predict with font rendering.

Thank you, This worked for me

perdrix52 commented 2 years ago

Problem has recurred: image

Starting it again worked fine

snowie2000 commented 2 years ago

So it is still a mystery to be solved.

I've fixed serval bugs these days and I'll release a new version once I am done, but this problem is not one of them😕

wmjordan commented 2 years ago

This is a duplicate of #488. I used to be haunted by that issue periodically. After a long struggle, Snowie had posted a fix for that issue. After applying that patch, I no longer got that "345" dialog any more. PS: I don't know whether it was "fixed" because that I bought a new computer... Please see: https://github.com/snowie2000/mactype/issues/488#issuecomment-714879581

gagomap commented 2 years ago

Problem has recurred: image

Starting it again worked fine

I haved this bug serveral days before. It only appears once when i open any program after restart windows, then it does not appear again when i work . After reinstalling windows and everything else, it become ..381.. instead of ..345.. So funny.

snowie2000 commented 2 years ago

I noticed that some of the mactype dlls have manifests embedded. I've removed them and here they are: nomanifest.zip

Also, my last patch in https://github.com/snowie2000/mactype/issues/864#issuecomment-1165148711 introduced a serious buffer overflow bug, please update with this hotfix ASAP.

gagomap commented 2 years ago

I had turn off Clear Type in Windows Settings and apply your new dll. A new dll error still appears once when i open a program ( not 381 or 345). And when it happens, i can not open my start menu, it becomes blank. //sr for my english Chrome: 2022-07-16_cr

Office 365 2022-07-16 (2)

jessicaknotts commented 1 year ago

Hi, sorry to bother. Has there been any progress on this, by chance? I'm encountering this same "ordinal 345 not found" error re: 'cod.exe' after trying to install and launch the Call of Duty Warzone game. I'm guessing it's most likely from MacType, then, and not something else with my setup?

image image

Should I try the nomanifest.zip variant mentioned above at https://github.com/snowie2000/mactype/issues/864#issuecomment-1182794113?

tapiaso commented 1 year ago

Hi friend, I have the same problem, please help me.

snowie2000 commented 1 year ago

I'm very sorry about this mysterious issue, but till now, it never occurred to me in any form in whatever software I was using.

So there is really nothing I can do to mitigate this problem.

tapiaso commented 1 year ago

GRACIAS AMIGO!

El lun, 28 nov 2022 a las 21:27, snowie2000 @.***>) escribió:

I'm very sorry about this mysterious issue, but till now, it never occurred to me in any form in whatever software I was using.

So there is really nothing I can do to mitigate this problem.

— Reply to this email directly, view it on GitHub https://github.com/snowie2000/mactype/issues/864#issuecomment-1329993094, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4OPIGVGKQYARECXVWUZN5TWKVSY5ANCNFSM5WU6DIUA . You are receiving this because you commented.Message ID: @.***>

-- @.***@soStudio

DevinDesigns commented 1 year ago

Made a video explaining all the fixes besides delete max type.

https://youtu.be/ihSBdq_co3w

l0g4n1337 commented 1 year ago

I'll tell you the truth ... everyone who ended up here (including me), probably tried to download some cheat on github and infected their pc with something. I say this because this is exactly what happened to me.

I see no solution. I think the best solution is to reinstall windows and mw2.

anAyasaMade-of-Kirby commented 1 year ago

do not even try to start a flame bait, not everyone cheats like you and reinstalling windows has nothing to do with this error, stop pretending to be smart

ofer293 commented 1 year ago

Hi, i think i found the solution... i had this issue too... just install this: https://www.majorgeeks.com/files/details/microsoft_visual_c_2010_redistributable_package.html Microsoft Visual C++ 2015-2022 Redistributable Package 14.34.31931.0 have fun..

itsTyrion commented 1 year ago

@liberaldev @anAyasaMade-of-Kirby @snowie2000 @jessicaknotts

You have to exclude more than just CoD itself.

Warzone 2 launched!!

That randomly stopped working after a game restart, so I added, with success, conhost.exe. No idea if it's related but I don't see the harm, conhost windows are hidden a lot of the time anyway

(In the end it wasn't worth it, 3 (unrelated) crashes, half an hour of queue time, never got ingame)

lildomii345 commented 1 year ago

Anyone Who Can Help Me With The Ordinal 345

itsTyrion commented 1 year ago

@lildomii345 did you try what I wrote? or do you have it with a different program/game

ejihnen commented 1 year ago

@liberaldev @anAyasaMade-of-Kirby @snowie2000 @jessicaknotts

You have to exclude more than just CoD itself.

  • Battle.Net.exe (the main battle.net client)
  • Call of Duty Launcher.exe (used by the Desktop shortcut, just opens battle.net)
  • cod.exe (the main game)
  • bootstrapper.exe (something CoD)

Warzone 2 launched!!

That randomly stopped working after a game restart, so I added, with success, conhost.exe. No idea if it's related but I don't see the harm, conhost windows are hidden a lot of the time anyway

(In the end it wasn't worth it, 3 (unrelated) crashes, half an hour of queue time, never got ingame)

having this issue with CoD and this did not fix my problem unfortunately. nothing seems to fix this

wmjordan commented 1 year ago

This issue is really a mysteriously mystery.

I installed MacType on a server OS and it encountered this issue, yet on other servers this issue have never occurred.