Tremulous Forum

Community => Servers => Topic started by: robert on June 21, 2007, 05:04:06 am

Title: Was Wondering
Post by: robert on June 21, 2007, 05:04:06 am
is there any way to make rcon commands so they are admin commands like !gravity 500

if so then how i need a guide to do it
Title: Was Wondering
Post by: Oblivion on June 21, 2007, 01:46:54 pm
hmm yea here are some commands here.  If you dont understand how to do them.  I am not going to explain here at the moment.  I am about to leave for work, so someone else may beat me to it.  So here are commands.
Check that link.

http://mercenariesguild.net/index.php?option=com_openwiki&Itemid=46&id=wiki:admin_commands
Title: Was Wondering
Post by: tuple on June 21, 2007, 01:58:52 pm
And here (http://www.mercenariesguild.net/component/option,com_openwiki/Itemid,12/id,making_tjw_admin_commands/lang,en/) is the docs on how to create them :)
Title: Was Wondering
Post by: Death On Ice on June 22, 2007, 12:21:39 am
I think that he means admin commands that have arguements, like the new !restart command, in which you can do !restart switchteams and !restart keepteams.

I would like very much to be able to do this as well.
Title: Was Wondering
Post by: Evlesoa on June 22, 2007, 12:27:16 am
He means commands that do this

Player: !Gravity 500
Server: Gravity has been changed to 500

that what he means... and yea thats pretty easy!
Title: Was Wondering
Post by: David on June 22, 2007, 01:44:39 am
oh?  easy?
if so, would you care to explain how?
Title: Was Wondering
Post by: Plague Bringer on June 22, 2007, 02:01:20 am
Instead of asking him to explain, why don't you.

And it is quite easy, I have read over most of the MG guides on those topics. I couldn't tell you how to do it right now. I'm not a server op and I haven't read through MG's guides for a while, but I do remember that they're easy.

Just because you know something is easy, doesn't mean you know or remember how to do it.
Title: Was Wondering
Post by: kevlarman on June 22, 2007, 02:16:53 am
Quote from: "Plague Bringer"
Instead of asking him to explain, why don't you.

And it is quite easy, I have read over most of the MG guides on those topics. I couldn't tell you how to do it right now. I'm not a server op and I haven't read through MG's guides for a while, but I do remember that they're easy.

Just because you know something is easy, doesn't mean you know or remember how to do it.
david can't explain it and neither can evlesoa, because it's not possible without compiling a custom game.qvm
Title: Was Wondering
Post by: Plague Bringer on June 22, 2007, 02:26:53 am
Making an admin command? You sure about that?
Title: Was Wondering
Post by: Exclamation on June 22, 2007, 02:40:32 am
Quote from: "Plague Bringer"
Making an admin command? You sure about that?

Tuple posted the link on how to make admin commands.

What the OP wants is an admin command that accepts arguments. Im guessing this is what requires a custom qvm.
Title: Was Wondering
Post by: Plague Bringer on June 22, 2007, 02:52:31 am
Or he could make an admin command for every variable.

That'd be a tad tedious, though.
Title: Was Wondering
Post by: Death On Ice on June 22, 2007, 04:01:25 am
Wha.. You can make admin commands with variables?! (I.e.: !gravity 400 and !gravity 500 will both set the gravity to those integers)

Also, I have compiled a game.qvm from SVN, how would I patch it / make a patch that would allow commands such as this with arguements?
Title: Was Wondering
Post by: robert on June 22, 2007, 05:01:23 am
ty oblivion and tuple they worked
Title: Was Wondering
Post by: tuple on June 22, 2007, 12:25:57 pm
Death on Ice:
I know of no way to get an admin command to accept a variable from the command line.  I don't think its possible to create one without some patch to the source.  TBO I have less than no idea what that would entail.  

Others(you know who you are): If you don't know what you are talking about, it's best not to open your mouth and let everyone know.
Title: Was Wondering
Post by: David on June 22, 2007, 02:21:36 pm
Quote from: "Death On Ice"
Also, I have compiled a game.qvm from SVN, how would I patch it / make a patch that would allow commands such as this with arguements?


Look at the diff for tjw's version, see how he added things like !map.
Title: Was Wondering
Post by: Oblivion on June 22, 2007, 05:25:15 pm
Quote from: "robert"
ty oblivion and tuple they worked

No problem man.