Tremulous Forum
Community => Servers => Topic started 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?
-
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 :(
-
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?
-
!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.
-
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.
-
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
-
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?
-
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).
-
I have a question on this topic, when you make commands, is there any way to make arguments for the commands?
-
no
-
(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.