diff --git a/README.md b/README.md index 50b4b08..ab07725 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ There are currently 5 volume levels that can be selected: ### Supported Platforms - Linux +- Windows ### Sourcemod - Version 1.10+ @@ -60,61 +61,61 @@ Add a configuration for the voice manager database to your `addons/sourcemod/con ## Building -### Build Extension +### Build Extension for Linux -Requirements: -- Docker / docker compose - -Windows +*Requires Docker (with docker compose) using Linux containers ``` > .\build_ext.bat ``` - -Linux ``` $ ./build_ext.sh ``` -### Build Plugin -Requirements: -- spcomp (1.10 or higher) added to your path or to the base directory +### Build Extension for Windows -Windows +*Requires Windows environment with Docker (with docker compose) using Windows containers +``` +> .\build_ext_windows.bat +``` + +### Build Plugin +*Requires spcomp (1.10 or higher) added to your path or to the base directory ``` > .\build_plugin.bat ``` -Linux ``` $ ./build_plugin.sh ``` -### Build Both (same requirements as above) - -Windows +### Build All (Windows environment only) ``` > .\build.bat ``` -Linux -``` -$ ./build.sh -``` - ## VS Code Setup To setup C++ includes for VS Code, clone sourcemod, metamod, and the tf2 sdk. Include the following paths: -- ./ -- ./include -- -- \public -- \public\extensions -- \sourcepawn\include -- \sourcepawn\third_party\amtl -- \sourcepawn\third_party\amtl\amtl -- \core -- \core\sourcehook -- \public -- \public\tier0 -- \public\tier1 +- `./` +- `./include` +- `` +- `\public` +- `\public\extensions` +- `\sourcepawn\include` +- `\sourcepawn\third_party\amtl` +- `\sourcepawn\third_party\amtl\amtl` +- `\core` +- `\core\sourcehook` +- `\public` +- `\public\tier0` +- `\public\tier1` + +### Troubleshooting +- Problem: The VoiceManager plugin/extension did not load. +- Potential Solution: Check for any errors on startup and ensure that an empty `voicemanager.autoload` file exists under the `addons/sourcemod/extension` directory. + +
+ +* Problem: When an adjustment is applied, there are no errors but the player does not have any voice output. +* Potential Solution: Make sure the server is using the `steam` voice codec (`sv_voicecodec steam`) # Credits - [Fraeven](https://fraeven.dev) (Extension Code, Plugin Code, Testing) diff --git a/build.bat b/build.bat index 9c98d84..a8385dc 100644 --- a/build.bat +++ b/build.bat @@ -1,2 +1,6 @@ -.\build_ext.bat -.\build_plugin.bat +"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchLinuxEngine +CALL .\build_ext.bat +"C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchWindowsEngine +CALL .\build_ext_windows.bat + +CALL .\build_plugin.bat \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100644 index 18f8684..0000000 --- a/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -./build_ext.sh -./build_plugin.sh diff --git a/build_ext.bat b/build_ext.bat index fbb87c9..ec88394 100644 --- a/build_ext.bat +++ b/build_ext.bat @@ -2,9 +2,10 @@ DEL addons\sourcemod\extensions\voicemanager.ext.2.sdk2013.so DEL addons\sourcemod\extensions\voicemanager.ext.2.tf2.so cd extension -rmdir .\build /s /q +rmdir build /s /q docker compose build docker compose run extension-build --remove-orphans echo f | XCOPY build\voicemanager.ext.2.sdk2013\voicemanager.ext.2.sdk2013.so ..\addons\sourcemod\extensions\voicemanager.ext.2.sdk2013.so /Y -echo f | XCOPY build\voicemanager.ext.2.tf2\voicemanager.ext.2.tf2.so ..\addons\sourcemod\extensions\voicemanager.ext.2.tf2.so /Y \ No newline at end of file +echo f | XCOPY build\voicemanager.ext.2.tf2\voicemanager.ext.2.tf2.so ..\addons\sourcemod\extensions\voicemanager.ext.2.tf2.so /Y +cd .. \ No newline at end of file diff --git a/extension/AMBuilder b/extension/AMBuilder index 5f3537d..c093efc 100644 --- a/extension/AMBuilder +++ b/extension/AMBuilder @@ -29,7 +29,7 @@ project.sources += sourceFiles for sdk_name in Extension.sdks: if sdk_name in ['sdk2013'] and builder.target_platform == 'linux': - project.sources += 'libc_compat.cpp' + project.sources += ['libc_compat.cpp'] sdk = Extension.sdks[sdk_name]