Comments (14)
No error showed up? Strange, I set it to annoy the user if anything bad happens. Can you describe the file tree? For example, something like that:
・Half-Life
|
+- valve
| |
| +- metahook
+- cstrike
| |
| +- metahook
I need to know where metahook.exe, alure2.dll, libsndfile-1.dll, audio.dll, plugins.lst, and OpenAL.dll (optional) are located.
from metaaudio.
Half-Life
|
-MetaHook.exe
-alure2.dll
-libsndfile-1.dll
-OpenAL.dll
+- valve
| |
| +- metahook
| | |
| | +- configs
| | | |
| | | -plugins.lst
| | +- plugins
| | | |
| | | -Audio.dll
I have this similarly set up for Blue Shift and Opposing Force
from metaaudio.
Your folder structure seems to be correct. Can you confirm that there is just a single line in your "plugins.lst"? (no new line character at the end)
from metaaudio.
Yes, only 1 line.
I don't recall any point where I added new files like dll's or replaced certain files, although my half-life folder is really old, so I'm going to do a fresh install just to see if that works.
from metaaudio.
Nope, still not working.
However I now notice something in the console that I thought was just something from my other mods that carried over to the fresh install
Unknown command: VModEnable
I should note that my entire file path for Half Life is F:\SteamLibrary\steamapps\common\Half-Life
, and it was different for the shortcut.
from metaaudio.
Can you test the attached "MetaHook.exe" and "audio.dll"?
It now uses C++ functions (instead of C) to search for plugins, a lot better than the previous code. I also added annoying messages to help debug where the plugin/module is failing to load.
from metaaudio.
About time something started to happen. Unfortunetly it still fails to innitialize, but I do get error messages.
Trying to load plugin "audio.dll" from "valve/metahook/plugins/audio.dll"
When I click OK I get this
Module name: valve/metahook/plugins/audio.dll
Then Half-Life launches as normal, this time without VModEnable stuff, so it's just a blank console.
from metaaudio.
It should now display what was the problem. I will probably integrate the error message in MetaHook later, a silent failure is not useful here.
from metaaudio.
We got something specific! It's the same as last time, but the last error message has this tacked on:
Error code: 193. Message: %1 is not a valid Win32 application
from metaaudio.
I am at a loss, no idea why that is happening. Maybe you do not have the C++ runtime installed?
You can install it through Microsoft:
https://aka.ms/vs/16/release/vc_redist.x86.exe
I also statically-compiled an "audio.dll" for you, please test:
Audio.zip
from metaaudio.
Nope. I'm already on the latest version, but I re-installed anyway. I tested both my audio.dll and the one your just provided and I get the same error.
Luck isn't on my side apparently.
from metaaudio.
Strange, it is like your system is trying to load 64-bit DLLs while MetaHook (and Half-Life) is 32-bit. I can only think the DLLs are somehow corrupted, or there are rogue DLLs in your SysWOW64 folder.
Did you trying validating all your game files through Steam? Maybe this is it?
Can you look for a "libsndfile-1.dll", "alure2.dll", "audio.dll", and "OpenAL32.dll" in your SysWOW64 and System32 (which are inside C:\Windows) folder?
It shouldn't be a thing, as those files are also in the executable folder, however who knows? You can check if it is 32-bit or 64-bit by following the selected answer here:
https://superuser.com/questions/358434/how-to-check-if-a-binary-is-32-or-64-bit-on-windows
from metaaudio.
Good news, it finally worked
I have 2 versions of OpenAl (Particularly OpenAl Soft). A 32-bit version for System32, and a 64-bit version for SysWOW64. They are the only files that are similar to Metahook's. When I removed the 64-bit version from SysWOW64 and started Metahook again, it gave me a different error.
Error code: 126. Message: The specified module could not be found
It seems that no matter what, it's trying to load the file from SysWOW64. Even if I remove the OpenAL that came with Metahook it will always load from there.
So out of curiosity I replaced the 64-bit version with the 32-bit one.
Loaded "audio.dll" succesfully
from metaaudio.
Great, I am closing this issue now :D
I agree that the names are confusing, one should put 32-bit DLLs in SysWOW64 and 64-bit DLLs in System32 ;)
from metaaudio.
Related Issues (20)
- Resolution Issue HOT 4
- [X-Fi] Audio pops/clicks in Half-Life HOT 3
- metaaudio fails to compile (c2466: cannot allocate an array of constant size 0) HOT 1
- Enabling MetaAudio.dll breaks CaptionMod HOT 1
- Fatal Error: Failed to initialize authentication interface
- Meta Audio plugin is not working.
- HL does not start via metahook.exe
- Why would metaaudio cause a ban? HOT 1
- Linux port? HOT 2
- Stops working with the recent Half-Life 25th Anniversary update HOT 22
- Request: Possible to add support for the latest Steam Audio API? HOT 5
- Bug: The positioning of audio sources is off when using 24 bit audio HOT 6
- Xash3D-FWGS support HOT 2
- X-Fi Hardware Acceleration Crashes Half-Life when Loading Between Levels HOT 1
- Reverb Volume/X-fi Titanium CMSS HOT 1
- Settings reset after every save load in HL
- Questions about the installation HOT 1
- [Critical Bug] Failed to load sound in folder: sound/folder1/folder2 HOT 1
- Bug: CS:CZ Deleted Scenes crash
- Constantly gettting "MH_LoadPlugin" issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metaaudio.