Tremulous Forum

Community => Servers => Topic started by: twilight on April 10, 2007, 03:43:13 am

Title: Making Admin Commands
Post by: twilight on April 10, 2007, 03:43:13 am
So I'm trying to make admin commands...I made the .cfg files and added the command blocks to the admin.dat file but the file keeps overwriting itself. Any help?
Title: Making Admin Commands
Post by: [NubS] Rabbitt on April 10, 2007, 04:15:25 am
I actually just read your other thread and had been wondering about this so i went ahead and did the same thing but i once i enter my server and !help i see the commands but when i try to use them i get unknown cmd.
Im not understanding whats wrong.
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 04:19:44 am
well I can use the commands listed in help fine...but I can't make my own because the admin.dat file keeps overwriting itself and erases the command blocks
Title: Making Admin Commands
Post by: [NubS] Rabbitt on April 10, 2007, 04:38:18 am
Wonder why you cant make your own are you changing the name of each file so it doesnt over write.
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 04:42:24 am
am I changing the name of each file? Which do you mean? I have a seperate .cfg file for each command
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 05:06:06 am
ok it seems to only overwrite when I ban someone or something...but the commadns still aren't working....idk what to do
Title: Making Admin Commands
Post by: [NubS] Rabbitt on April 10, 2007, 05:08:27 am
I wish i had an answer for you.
Im still trying to figure out why my commands arent working at all.
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 05:10:40 am
I've followed the instructions in this forum:

http://tremulous.net/phpBB2/viewtopic.php?t=3786

I just can't add any commands beside the basic ones seen when executed !help

your commands aren't working? try executing them like:

/rcon [password] ![command]
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 05:44:34 am
are custom commands entered differently?
Title: Making Admin Commands
Post by: Angelwinged Devil on April 10, 2007, 07:38:02 am
I tried making admin commands too, after saving admin.dat, waiting till map changes and !readconfig just deletes the command from the file or makes !readconfig unable to work.
Title: Making Admin Commands
Post by: Paradox on April 10, 2007, 04:50:20 pm
Make them appear after the levels, but before the admins. If you make it anywhere else, when the file is updated, it will be overwritten.
Title: Making Admin Commands
Post by: twilight on April 10, 2007, 05:42:05 pm
ok well they're not being overwritten anymore but the commands still aren't working...I have the command blocks in the admin.dat and all the .cfg files in the same directory...but nothing is working. If the command is h3, for example, I still enter the command as !h3, right?
Title: Making Admin Commands
Post by: Angelwinged Devil on April 11, 2007, 09:47:54 am
doh, thanks paradox, I was told to put it at the end of the file >_>, should have followed my own instincts instead.