Author Topic: How to edit a game.qvm file under Mac?  (Read 7780 times)

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
How to edit a game.qvm file under Mac?
« on: May 05, 2008, 09:50:51 pm »
I want to edit an existing game.qvm file so it influences game variables like ABUILDER_BUILD_REPEAT and DEFAULT_HUMAN_BUILDPOINTS (defined in tremulous.h). Is this possible, and if so, how do I do it?

If I can't edit it, I'll settle for compiling a new one. But I want it to include commands like /share, /donate, !designate, !denybuild, !slap, etc.
« Last Edit: May 05, 2008, 09:52:42 pm by (Farmer)Azrael »
:dretch: What'd you expect from a creature the size of a foot?

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
2 questions about game.qvm patching (under Mac)
« Reply #1 on: May 05, 2008, 09:59:25 pm »
How do I patch features into an existing game.qvm file? Also, how do I write patches?
:dretch: What'd you expect from a creature the size of a foot?

blackwolf-dave

  • Posts: 12
  • Turrets: +4/-0
Re: How to edit a game.qvm file under Mac?
« Reply #2 on: May 05, 2008, 10:08:31 pm »
Hey Az its dave from that bot server.. To answer your question, I believe you can edit most if not all of those things in server.cfg and by making some minor modifications to your folders without doing anything involving your .QVM, but as far as I know it could be completely different on macs.

(Forgive me if I am wrong but what I gather is that you want to edit the buildpoints etc and you want it to be done automatically when a map starts without needing an admin to edit them with commands.)

Assuming I am correct this is how I solved it (keep in mind I am using Windows XP, so I dont know if this helps but hey, I tried.)

http://tremulous.net/forum/index.php?topic=8036.0

As for the addition of commands, I have no idea.

Oh and my server is back up if you were wondering about it. I believe it is renamed to Dretch Bot server or something now...

Goodluck,

Dave

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: How to edit a game.qvm file under Mac?
« Reply #3 on: May 05, 2008, 11:01:30 pm »
Merged topics - please only post the same question in one location.

As for how to do what you want, there's plenty of resources in this particular board already which describe how to build a QVM from source and how to apply patches to it.  You can't edit the file directly, you edit the source code and compile it.

Patching, and compiling, is not something someone can just "explain" how to do.  There's a lot to learn to make it happen, and if you're not the patient type who is open to learning new things you're better off running a QVM that someone else compiled already - or asking someone who does know how to do it if they'll make the changes for you.  If you are the type to learn, then there's plenty of resources around the Internet that explain how to patch source code and how to compile it.  However I think that compiling QVMs on a Mac is broken - benmachine can chime in with whether or not that's actually true, assuming he sees this thread.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

(Farmer)Azrael

  • Posts: 17
  • Turrets: +0/-6
Re: How to edit a game.qvm file under Mac?
« Reply #4 on: May 06, 2008, 12:52:30 am »
Okay, thank you. But blackwolf-dave solved my question... =D
:dretch: What'd you expect from a creature the size of a foot?

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: How to edit a game.qvm file under Mac?
« Reply #5 on: May 06, 2008, 05:39:35 pm »
However I think that compiling QVMs on a Mac is broken - benmachine can chime in with whether or not that's actually true, assuming he sees this thread.
Hello. I know this is pretty much solved but I wanted to give my insight on the matter regardless:
Compiling on 10.4 intel is fine since about r813, as far as I know. Compiling 10.4 PPC has been iffy and I can't be bothered to track down which revisions are okay but it should work recently. On both platforms you'll have to manually re-enable the QVM building in the Makefile.
Compiling 10.5 (Leopard) won't work at all before r1053, although the patch to fix it is probably quite small (have a look at http://svn.icculus.org/quake3?view=rev&revision=1238. QVMs since then have been broken, but I found the issue recently and submitted a fix to ioq3, which has unfortunately not yet been merged into Tremulous. See http://svn.icculus.org/quake3?view=rev&revision=1326 and http://svn.icculus.org/quake3?view=rev&revision=1327
« Last Edit: May 08, 2008, 06:28:39 pm by benmachine »
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: How to edit a game.qvm file under Mac?
« Reply #6 on: May 08, 2008, 12:15:05 am »
10.4 ppc works fine for me!  However, I do have to apply a patch for pre-svn 103X. (I am guessing as to the revision...)  I also have a patch to make post-svn 104X work better. (Again, a guess as to the exact number...)