Author Topic: [command] block help  (Read 5859 times)

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« 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?
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #1 on: April 11, 2007, 02:10:49 am »
Is there something I can do with !readconfig to add the commands?
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

tuple

  • Posts: 833
  • Turrets: +97/-80
[command] block help
« Reply #2 on: April 11, 2007, 05:11:19 am »
You need to be more specific if you want help :)

Check here

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #3 on: April 11, 2007, 09:25:32 am »
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
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

tuple

  • Posts: 833
  • Turrets: +97/-80
[command] block help
« Reply #4 on: April 11, 2007, 01:07:37 pm »
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.

Code: [Select]
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.)

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #5 on: April 11, 2007, 06:21:30 pm »
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
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

tuple

  • Posts: 833
  • Turrets: +97/-80
[command] block help
« Reply #6 on: April 11, 2007, 07:28:55 pm »
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.

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #7 on: April 11, 2007, 07:47:52 pm »
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
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

tuple

  • Posts: 833
  • Turrets: +97/-80
[command] block help
« Reply #8 on: April 11, 2007, 08:22:10 pm »
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

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #9 on: April 11, 2007, 09:22:02 pm »
i'm using mac and the location it's at is ~/Library/Application Supprt/Tremulous/Base
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
[command] block help
« Reply #10 on: April 11, 2007, 10:20:19 pm »
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.

∧OMG ENTROPY∧

tuple

  • Posts: 833
  • Turrets: +97/-80
[command] block help
« Reply #11 on: April 11, 2007, 10:34:11 pm »
I've never had a problem with command blocks except the server overwriting them.  Perhaps some of these problems are build specific.

twilight

  • Posts: 107
  • Turrets: +0/-0
[command] block help
« Reply #12 on: April 11, 2007, 10:52:54 pm »
so hopefully when 1.2 comes out it'll work correctly?
rder of Resistance Clan Leader

Check us out at http://ResistanceOrder.Cjb.In

Rawr

  • Posts: 918
  • Turrets: +1/-1
[command] block help
« Reply #13 on: April 12, 2007, 03:26:12 am »
[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
img]http://dvclan.org/statsig/statsig.php/3826/4.jpg[/img]