Tremulous Forum

Community => Servers => Topic started by: tojimaru on January 27, 2008, 11:30:12 pm

Title: I NEED SERIOUS HELP ON COMMANDS
Post by: tojimaru on January 27, 2008, 11:30:12 pm
Please help me with my questions. My first question is, How do you put commands in a server. I mean, I read alot of manuals and stuff, but i just don't understand. I want to know when you make a cfg file on a command and you edit the admin.dat file, then what do you write in Tremulous to activate that command. And i don't even understand what to write in the cfg file and in admin.dat  PLEASE HELP ME! AND one more thing. How can i save a layout on my server?
 
Title: Re: I Need Serious Help on Commands
Post by: tuple on January 28, 2008, 12:40:38 pm
There's a document on creating server side admin commands here (http://www.mercenariesguild.net/component/option,com_openwiki/Itemid,12/id,making_tjw_admin_commands/lang,en/) that also links to a bunch of "out of the box" admin commands for some common uses.

Make sure you are adding the commands to the admin.dat when the server is not running.  At each map change, tremded rewrites the admin.dat, so if you have modified the file without running the !readconfig command on the tremded server, those changes will be overwritten.

You should check the commands in the individual command files you are creating, if they will not run as printed on the tremded server console, they will not run as an admin command.

Also, you may want to check your caps button, it appears to be stuck :(
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: tojimaru on January 28, 2008, 02:44:36 pm
oh. So I need to add the commands when the server is off, and I need to put in !readconfig right when i start my server?
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: Rocinante on January 28, 2008, 03:10:36 pm
!readconfig is one of the first commands run when the server starts.  The problem is, as Tuple said, mapchanges: The server writes out admin.dat from memory, and when the next map loads it does a !readconfig.  So if you're editing the file and the map changes, your edits are lost.

You can either stop the server and do your edits, or do them quickly and !readconfig on the server console before the next map starts.  But if a map changes while you're editing, you may have to start over.
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: tojimaru on January 29, 2008, 01:48:42 am
I tried what you guys said and it worked! Thank you so much. But now I have another question. How do I make !register and !admintest work? Please tell me.
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: David on February 02, 2008, 02:19:27 pm
Depends if the QVM your using supports them.
admintest should be in all of them, but isn't really needed anyway.
The best QVM around with all the cool features is here: http://www.mercenariesguild.net/patches/?do=details&task_id=93
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: tojimaru on February 03, 2008, 10:14:06 pm
ok. Thank You David. and now i have yet another question. What file do you go and where is the file located that changes the maps? And how do i modify that file to make it change to the maps that i want it to?

Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: Undeference on February 05, 2008, 03:19:06 am
ok. Thank You David. and now i have yet another question. What file do you go and where is the file located that changes the maps? And how do i modify that file to make it change to the maps that i want it to?
That is not related to this thread and should probably have really been a new thread, though I think that question is answered in a sticky and I know it is in the manual (http://www.tremulous.net/manual/#x1-150003.4).
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: AlphaBetaAdmin on April 24, 2008, 01:53:36 am
I have a question on this topic, when you make commands, is there any way to make arguments for the commands?
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: kevlarman on April 24, 2008, 02:04:52 am
no
Title: Re: I NEED SERIOUS HELP ON COMMANDS
Post by: Paradox on April 28, 2008, 12:47:18 am
(http://paradoxdgn.com/junk/seriouscat.jpg)

And as for your question alphabetaadmin, there is a patch that supports paramiters and arguments in admin.dat commands, not sure how many qvms have it. I think pg might, but you would have to ask google to be sure. He claims its in there.