Author Topic: Custom admin commands listed but not working  (Read 4344 times)

Mr. Samsa

  • Posts: 2
  • Turrets: +0/-0
Custom admin commands listed but not working
« on: April 15, 2007, 11:41:33 pm »
Hi all

I am running a server with risujin-avenger-svn848 and have a pretty good setup and everything is working well, but I am having trouble with my Custom commands I have just made. I got help with it from Mercenaries Guild Wiki admin commands, but am stuck with having the commands listed when I type !help in-game, but they do not function as i had set CFG files.

I made the .CFG files by copying the autogen.cfg file and just clearing it and adding what I wanted.

An example of my  Gravity 0.cfg file that isnt working.

set g_gravity 0
cp "Planet Core EMPTY!! Gravity lowered to 0"

Gravity 0.cfg file is in the same folder (C:\Documents and Settings\Somebody\Local Settings\Application Data\Tremulous\base) as the ADMIN.DAT.

now the command I put IN admin.dat  to make it work is:

[command]
command = Gravity 0
exec    = exec Gravity 0.cfg
desc    = Turns off Gravity
levels  = 4 5

That is all I thought I must do, but im sure I am missing something or I am just stupid and I misspelled something :P

I thank you for any help.

Caveman

  • Guest
Custom admin commands listed but not working
« Reply #1 on: April 15, 2007, 11:54:30 pm »
Don't use filenames with spaces in them .)

tuple

  • Posts: 833
  • Turrets: +97/-80
Custom admin commands listed but not working
« Reply #2 on: April 16, 2007, 12:07:36 am »
Avoid commands with spaces in them too.

Here's a list of more admin commands for your pleasure :D

http://mercenariesguild.net/index.php?option=com_openwiki&Itemid=46&id=wiki:admin_commands

Mr. Samsa

  • Posts: 2
  • Turrets: +0/-0
Custom admin commands listed but not working
« Reply #3 on: April 16, 2007, 04:48:09 am »
thanks

Thats the Mercenaries site I used for reference!

curlymatt

  • Posts: 1
  • Turrets: +0/-0
Syntax error in custom commands
« Reply #4 on: May 04, 2007, 07:00:50 pm »
I'm trying to do the same and I've followed the tutorial to a T.  When I load up my server the old commands work flawlessly, but despite my best efforts the new ones don't.  I can see them in the /help command and read their function, but when I try to type them in I get "unknown command" and in the console I get a "syntax error"

I've checked and rechecked the formatting on my custom commands in admin.dat and in my .cfg files.  Does anyone have a sample admin.dat that I could puruse with custom commands to check my formatting against something that works?  Any help would be appreciated.

tuple

  • Posts: 833
  • Turrets: +97/-80
Custom admin commands listed but not working
« Reply #5 on: May 04, 2007, 07:22:32 pm »
actually, the contents of the admin.dat file that is listed in the link above came out of my admin.dat file, and always worked.  You best bet is to post one of the commands from admin.dat, and the contents of the config.  TBO, since the help stuff is in admin.dat and the actual commands they run are in the config file, I get the sneaky suspicion that the .cfg files are in the wrong place.  That is really just a wild guess though.

Angelwinged Devil

  • Posts: 65
  • Turrets: +0/-0
Custom admin commands listed but not working
« Reply #6 on: May 09, 2007, 04:02:09 pm »
Quote from: "Caveman"
Don't use filenames with spaces in them .)


I think it works ok if he use quotation.

But what do I know I can't even get them working, they get deleted everytime I do !readconfig XD
y hobby is to pwn
personal slaves: Taiyo, xinef