Tremulous Forum
Community => Servers => Topic started by: twilight on April 10, 2007, 10:57:45 pm
-
So I have my command blocks in admin.dat with the .cfg files in the same directory, but the commands dont' seem to be working. Any help? If a command is named h3, for example, is it exucuted by !h3?
-
Is there something I can do with !readconfig to add the commands?
-
You need to be more specific if you want help :)
Check here (http://mercenariesguild.net/index.php?option=com_openwiki&Itemid=46&id=making_tjw_admin_commands)
-
more specific? idk how....I put the command blocks into admin.dat...and made the .cfg files...but dont know how to execute the commands. or it just isn't working
-
The problem could be the location of the admin.dat or .cfg files you are editing, some of the specific code in the command block in admin.dat, some of the specific code within the .cfg file...
I haven't helped you at all, partly cause I've only reiterated what you already know. Without having more specifics, I can only say "something is wrong" which doesn't help.
Lets start with this, what are the contents of the .cfg file and where is it located? No, don't say "with admin.dat". I want to know the full path, such as C:/Documents and Settings..." :) and copy/paste the contents of the cfg file. Hell, while you're at it copy/paste the command block, It could be a typo there too.
use the code tag, which is [ code ] and [ / code ] (without the spaces) so your code isn't mangled by phpbb when posting the contents of config files..
edit: !readconfig is just that, it does nothing more. When you do !help do your commands show up? (assuming the command block has the desc set for the command that is.)
-
ok thx for trying to help. the path is ~/Library/App Support/Tremulous/Base
I have many .cfg files...one for each command. An exaple is enableff.cfg and the contents of that are:
set g_friendlyfire 1
cp "Friendly Fire Enabled"
I enter the command blocks in admin.dat, but I think this happens when I run !readconfig, it overwrites them and comes out with only two which read as follows:
[command]
command = atcsdev exec = exec
exec =
desc =
levels =
[command]
command = hs2 exec = exec = 2
exec =
desc =
levels =
A command block I normally enter looks like this:
[command]
command = enableff
exec = exec enableff.cfg
desc = Enable Friendly Fire
levels = 4 5
-
Ok. If you are editing admin.dat and changes are made to it before you do a readconfig, your saved changes will vanish. So, say you just saved admin.dat and someone on your server call a kick vote that bans for a few minutes and that vote passes. The kick vote addition overwrites all of your changes (as I understand it).
Your best bet is to either shut down your server when making changes to admin.dat (not always possible, I know). Edit a copy of admin.dat and copy it over when you are ready to run !readconfig.
Personally, what I do is prepare my additions, copy them, open admin.dat and add them, save and then run !readconfig.
If all else fails, try making your changes when the server is shut down and see if they appear (or get mangled) when you start it back up again.
-
ok so I shut down the server...made the changes to admin.dat...saved 'em...started the server and ran !readconfig.
The commands blocks are apparently still there but still nothing. !readconfig still says it only read 2 commands
-
I strongly suspect you are editing the wrong admin.dat location. I'm looking for specifically where it is at by default.
It looks like you are using windows, is this correct? On Linux I can tell you exactly where it's at:
~/.tremulous/base/admin.dat
-
i'm using mac and the location it's at is ~/Library/Application Supprt/Tremulous/Base
-
The [command] blocks seem bugged, every time i try adding them, they get deleted shortly after, i have tried before the levels, after the levels, after the admins, after everything, and it still doesnt work.
-
I've never had a problem with command blocks except the server overwriting them. Perhaps some of these problems are build specific.
-
so hopefully when 1.2 comes out it'll work correctly?
-
[command]
exec !ban 1;!ban 2;!ban 3;!ban 4;!ban 5;!ban 6;!ban 7;!ban 8;!ban 9;!ban 10
cmd skillit
desc Make some good old fashioned eggs
level 1 2 3 4 5 6