Author Topic: I NEED SERIOUS HELP ON COMMANDS  (Read 5438 times)

tojimaru

  • Posts: 81
  • Turrets: +6/-6
I NEED SERIOUS HELP ON COMMANDS
« 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?
 
« Last Edit: January 28, 2008, 12:06:47 am by tojimaru »

tuple

  • Posts: 833
  • Turrets: +97/-80
Re: I Need Serious Help on Commands
« Reply #1 on: January 28, 2008, 12:40:38 pm »
There's a document on creating server side admin commands here 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 :(

tojimaru

  • Posts: 81
  • Turrets: +6/-6
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #2 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?

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #3 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.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

tojimaru

  • Posts: 81
  • Turrets: +6/-6
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #4 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.
« Last Edit: February 01, 2008, 02:58:54 pm by tojimaru »

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #5 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
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.

tojimaru

  • Posts: 81
  • Turrets: +6/-6
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #6 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?


Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #7 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

AlphaBetaAdmin

  • Posts: 63
  • Turrets: +2/-11
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #8 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?

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #9 on: April 24, 2008, 02:04:52 am »
no
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: I NEED SERIOUS HELP ON COMMANDS
« Reply #10 on: April 28, 2008, 12:47:18 am »


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.

∧OMG ENTROPY∧