Tremulous Forum
Mods => Modding Center => Topic started by: PartyTyr on February 03, 2008, 08:06:22 pm
-
Hello,
I am trying to build tremded to make small mod of my own.
I'm on Ubuntu (amd64).
The problem is, the game builds, but the .qvm files are not created (instead there are .so files - like game.so).
And the new tremded binary is anyway using the old .qvm's (from tremulous-data - base/something.pk3) so the game play is not alerted.
So, how to either
- make the server use game.so etc instead looking for game.qvm
- how to build *.qvm
As for building .qvm's apparently there is some tool q3lcc needed, which doesnt seem trivial to install on linux (esp. 64 bit) so is there a way to use .so's instead?
-
As far as i know, Tremded reads .so files perfectly. You were checking the build/blah/vm/ folder, right?
-
Hello,
I am trying to build tremded to make small mod of my own.
I'm on Ubuntu (amd64).
The problem is, the game builds, but the .qvm files are not created (instead there are .so files - like game.so).
And the new tremded binary is anyway using the old .qvm's (from tremulous-data - base/something.pk3) so the game play is not alerted.
So, how to either
- make the server use game.so etc instead looking for game.qvm
- how to build *.qvm
As for building .qvm's apparently there is some tool q3lcc needed, which doesnt seem trivial to install on linux (esp. 64 bit) so is there a way to use .so's instead?
q3lcc is in the source tree, unless you downloaded the source from debian/ubuntu (which you shouldn't, the 1.1 source is useless for running a server), which revision are you building from?
-
The downside with .so files is that you can't change them on the fly - requires a server restart (while a qvm can be swapped out mid game and will load the new one on the next map).
q3lcc, I thought, was compiled when you run 'make' - at the very least I never installed it myself anywhere, and it's always been there when make needed it for that step. But it could be that it doesn't compile on x86_64 platforms, I'll admit to my ignorance of the details. Did you make sure to edit the top-level Makefile and tell it to build a QVM?
Pre-posting edit: Damn you kevlarman with your fast fingers. Oh well my post still applies too :P
-
Yes, Im using debian/ubuntu sources.
What is the url of official, "vanilla" tremulous sources?
Or an SVN prefferably?
-
svn://svn.icculus.org/tremulous/trunk
You'll want to look around at some other sources of information to figure out what version you want; if you try to compile $HEAD you'll probably get unusable output for most things you'd want to do, and there's backport patches around which can be applied to various revisions to get 1.1-compatible output.
Best idea is probably to get the revision of a popular QVM already existing (such as Lakitu7's (http://www.mercenariesguild.net/patches/?do=details&task_id=122)) and work from there, starting with the backport patch used to make it 1.1 friendly.
-
The downside with .so files is that you can't change them on the fly
So I keep seeing, but I've never had a problem with that. Admittedly, I haven't tried it on everything out there or with an older tremded.
</off-topic>