Author Topic: Custom Commands!  (Read 4233 times)

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
Custom Commands!
« on: January 23, 2009, 04:18:23 am »
How can I make custom commands?

For example, if I typed /base, then I would return to my team's base?

Or if I typed !base.

That sort of thing...

Please let me know!

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: Custom Commands!
« Reply #1 on: January 23, 2009, 05:56:44 am »
Edit the qvm

∧OMG ENTROPY∧

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Custom Commands!
« Reply #2 on: January 23, 2009, 07:25:21 am »
Or if you are a beginner you could edit the source code and recompile instead of editing the qvm directly.

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: Custom Commands!
« Reply #3 on: January 23, 2009, 08:33:18 am »
In fact, outside of being a genius at hex editing, that would be the only way.

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
Re: Custom Commands!
« Reply #4 on: January 24, 2009, 12:04:18 am »
Edit the qvm

What is the qvm and how do I edit it?

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Custom Commands!
« Reply #5 on: January 24, 2009, 03:43:48 pm »
Download the source.  Poke around in game/g_admin.c, and then compile.
Dump the new game.qvm over the one your server currently uses.
There are guides on compiling on windows around here.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: Custom Commands!
« Reply #6 on: January 25, 2009, 07:56:06 am »
Open the QVM in a hex editor, pick the line you like, and replace everything with F. If you do so correctly, and are the luckiest person in the world, you may just have a usable qvm.

∧OMG ENTROPY∧

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Custom Commands!
« Reply #7 on: January 25, 2009, 01:40:46 pm »
If you switch strings for strings of equal length, then you can get away with it.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.