Tremulous Forum

Community => Servers => Topic started by: infestor1 on January 23, 2009, 04:18:23 am

Title: Custom Commands!
Post by: infestor1 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!
Title: Re: Custom Commands!
Post by: Paradox on January 23, 2009, 05:56:44 am
Edit the qvm
Title: Re: Custom Commands!
Post by: gimhael 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.
Title: Re: Custom Commands!
Post by: Lakitu7 on January 23, 2009, 08:33:18 am
In fact, outside of being a genius at hex editing, that would be the only way.
Title: Re: Custom Commands!
Post by: infestor1 on January 24, 2009, 12:04:18 am
Edit the qvm

What is the qvm and how do I edit it?
Title: Re: Custom Commands!
Post by: David 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.
Title: Re: Custom Commands!
Post by: Paradox 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.
Title: Re: Custom Commands!
Post by: David on January 25, 2009, 01:40:46 pm
If you switch strings for strings of equal length, then you can get away with it.