Comments (5)
Also having some odd issues with this.
If I try to use absolute paths, e.g. -
~/projects/mm-test/build$ python3 ../configure.py --plugin-name=mm-test --plugin-alias=test --sdks=cs2 --targets=x86_64 --mms_path=/home/inolen/projects/metamod-source/ --hl2sdk-root=/home/inolen/projects/hl2sdk/ --hl2sdk-manifests=/home/inolen/projects/hl2sdk-manifests/
I end up with
No such file or directory: '/home/inolen/projects/mm-test/home/inolen/projects/hl2sdk-manifests/SdkHelpers.ambuild'
which seems to be caused by some path computation down inside of AMBuild.
If I try to use a relative path, e.g. -
~/projects/mm-test/build$ python3 ../configure.py --plugin-name=mm-test--plugin-alias=test--sdks=cs2 --targets=x86_64 --mms_path=/home/inolen/projects/metamod-source/ --hl2sdk-root=/home/inolen/projects/hl2sdk/ --hl2sdk-manifests=../../hl2sdk-manifests/
I end up with
FileNotFoundError: [Errno 2] No such file or directory: '/home/inolen/hl2sdk-manifests/SdkHelpers.ambuild'
which I assume is because the relative path ends up being relative to configure.py, however if I try to adjust for that, e.g. -
~/projects/mm-test/build$ python3 ../configure.py --plugin-name=mm-test--plugin-alias=test--sdks=cs2 --targets=x86_64 --mms_path=/home/inolen/projects/metamod-source/ --hl2sdk-root=/home/inolen/projects/hl2sdk/ --hl2sdk-manifests=../hl2sdk-manifests/
it gets further, but I end up with
FileNotFoundError: [Errno 2] No such file or directory: '/home/inolen/projects/mm-test/hl2sdk-manifests/manifests'
where the path is seemingly relative to the build directory for this path computation (not configure.py).
from metamod-source.
More closely read -
and I realized the hl2sdk-manifests module needs to be accessible from the directory containing configure.py, and the path you're passing the command line needs to be relative to that seemingly.
from metamod-source.
Has anybody found a solution to this? I am trying to compile s2_sample_mm
like so:
cd metamod-source/samples/s2_sample_mm
mkdir build
cd build
python ../configure.py -s insurgency --mms_path /mnt/hdd/alliedmodders/metamod-source/ --hl2sdk-root /mnt/hdd/alliedmodders/ --hl2sdk-manifests /mnt/hdd/alliedmodders/metamod-source/hl2sdk-manifests/
This fails with this output:
Configure failed: [Errno 2] No such file or directory: '/mnt/hdd/alliedmodders/metamod-source/samples/s2_sample_mm/mnt/hdd/alliedmodders/metamod-source/hl2sdk-manifests/SdkHelpers.ambuild'
I tried using a relative path for --hl2sdk-manifests
by going up 2 directories:
--hl2sdk-manifests ../../
.....
Configure failed: [Errno 2] No such file or directory: '/mnt/hdd/alliedmodders/metamod-source/SdkHelpers.ambuild'
Almost there! So I tried this:
--hl2sdk-manifests ../../hl2sdk-manifests/
.....
Configure failed: [Errno 2] No such file or directory: '/mnt/hdd/alliedmodders/metamod-source/samples/s2_sample_mm/hl2sdk-manifests/manifests'
This is really frustrating. After 2 weeks of messing around late 2023, I finally managed to compile a basic "Hello World" MM:S plugin, but now I can't remember how I did it. I believe I was using somebody's personal MM:S template repo. I'll have to see if I can find the upstream URL for it...
from metamod-source.
I found it, here is the template repo I used before:
https://github.com/nosoop/mmsplugin-base
I was able to compile it like this:
git clone https://github.com/nosoop/mmsplugin-base
mkdir mmsplugin-base/build
cd mmsplugin-base/build
python ../configure.py -s insurgency --hl2sdk-root /mnt/hdd/alliedmodders --mms_path /mnt/hdd/alliedmodders/metamod-source
This gives an error:
File "/home/user/code/source/metamod/test/mmsplugin-base/AMBuildScript", line 168, in configure
cxx.cflags += proj_c_flags
^^^^^^^^^^^^
NameError: name 'proj_c_flags' is not defined
Configure failed: name 'proj_c_flags' is not defined
To fix this, I just commented out line 168 of ../AMBuildScript
and that did the trick.
python ../configure.py -s insurgency --hl2sdk-root /mnt/hdd/alliedmodders --mms_path /mnt/hdd/alliedmodders/metamod-source
ambuild
I don't know if this info will help anyone, but I hope it might!
from metamod-source.
This has now been addressed with the below. The hl2sdk-manifests directory should be able to live anywhere now, as long as a valid path is given, and relative paths are now better supported for that directory, as well as MM:S's and the SDK root.
from metamod-source.
Related Issues (20)
- Error Compile HOT 2
- Important file(s) missing/renamed required for Metamod to run on TF2 (Linux) HOT 1
- Metamod broken on cs2? HOT 6
- [CS2 metamod plugin] undefined symbol: _ZNK15CEntityIdentity11NameMatchesEPKc). HOT 2
- Using static library HOT 2
- mm_basedir Not Working in CS2 HOT 1
- Inaccurate interpretation of SE codes HOT 1
- CS2 Dependency of application issue HOT 3
- cs2 sample out of date
- incorrect link to build instructions HOT 2
- Detected engine 17 but could not load: libvstdlib_srv.so HOT 6
- Dedicated Server update (14 May 2024) Error in `./srcds_linux': free(): invalid pointer: 0xf7443140 HOT 14
- Order comparison of function gives compilation error
- Portal 2 Support HOT 1
- Metamod 2.0 - build 1297 no download HOT 1
- TF2 "Detected engine 15 but could not load: The specified module could not be found."
- this line causes build failure on gcc-11
- Iosoccer metamod stable (Linux)
- Dota 2 error with Metamod 2.0 HOT 2
- SourceHook (GCC): `maybe-uninitialized` warning
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 metamod-source.