Tremulous Forum

Community => Servers => Topic started by: sSopris on September 29, 2007, 11:13:10 pm

Title: Custom commands (restated)
Post by: sSopris on September 29, 2007, 11:13:10 pm
I'm trying to make !map a custom command because I don't have it but I don't know what to put in the tcmd file.

I have "map" but what do I put that will make the console use whatever the player inputs?
Title: Custom commands (restated)
Post by: Death On Ice on September 30, 2007, 12:04:22 am
Already done. The patch is part of Lakitu7's qvm.
Title: Custom commands (restated)
Post by: kevlarman on September 30, 2007, 12:10:37 am
Quote from: "Death On Ice"
Already done. The patch is part of Lakitu7's qvm.
it's in svn >.>
Title: Custom commands (restated)
Post by: sSopris on September 30, 2007, 12:51:19 am
Is there a way to have slap and layout commands but still keep Lakitu7's game.qvm?

His game.qvm doesn't have either of those.
Title: Custom commands (restated)
Post by: Death On Ice on September 30, 2007, 01:25:32 am
Oooh, my bad. I must have not taken his pre-compiled qvm. I probably compiled SVN and used his patch >.>
Title: Custom commands (restated)
Post by: sSopris on September 30, 2007, 06:39:56 pm
Ok let me restate or repeat the question.

In a .tcmd file, can I type something in that will be a variable for whatever the player inputs or whichever player uses the command.

Example of a variable for player input in .tcmd file:

map <whatever map player types>

Input when using this command should look like:

!map karith2 or !map pulse_102
---------------
Example of a variable for player's name in .tcmd file:

m <name of player who uses the command>

Input when using this command should look like:

UnnamedPlayer: !description
(and then the server would message that player whatever someone wanted it to message)

Thank you, I appreciate your help so far
Title: Custom commands (restated)
Post by: kevlarman on September 30, 2007, 10:03:40 pm
to do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.
Title: Custom commands (restated)
Post by: benmachine on September 30, 2007, 11:07:42 pm
Quote from: "kevlarman"
to do that you need a custom game.qvm, since g_admin [command] blocks can't take arguments. !map has already been implemented since around the same time as the rest of g_admin.

!map has actually only been around since tjw made his own layout system
(revision 886) (http://svn.icculus.org/tremulous?rev=886&view=rev)
although of course there's always been /callvote map niveus; !passvote
Title: Custom commands (restated)
Post by: Amanieu on October 08, 2007, 04:29:45 am
I created a patch which allows arguments to be passed to admin.dat commands:http://
http://www.mercenariesguild.net/patches/?do=details&task_id=100
Title: Custom commands (restated)
Post by: benmachine on October 08, 2007, 04:30:13 pm
Quote from: "Amanieu"
I created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100

I'm in ur post, fixin ur URIs
Title: Custom commands (restated)
Post by: Death On Ice on October 09, 2007, 12:08:33 am
Quote from: "benmachine"
Quote from: "Amanieu"
I created a patch which allows arguments to be passed to admin.dat commands: http://www.mercenariesguild.net/patches/?do=details&task_id=100

I'm in ur post, fixin ur URIs


I'm in ur post, fixin ur spellings

URL, not I
Title: Custom commands (restated)
Post by: Undeference on October 09, 2007, 12:52:57 am
Quote from: "Death On Ice"
I'm in ur post, fixin ur spellings

URL, not I
FYI, a URL (http://en.wikipedia.org/wiki/URL) is a type of URI (http://en.wikipedia.org/wiki/URI). And then there are URNs... this is what you get when you let TBL participate on RFCs. (See "Relationship to URL and URN" on the URI article.)

30000 ninja edits!!!
Title: Custom commands (restated)
Post by: Death On Ice on October 09, 2007, 01:29:24 am
Sorry, Just doing it for the continuation of the series.

You should have said it too, next_ghost

I'm in ur post, fixin ur errors
Title: Custom commands (restated)
Post by: benmachine on October 09, 2007, 07:09:35 pm
Quote from: "Death On Ice"
You should have said it too, Undeference


I'm in ur post, fixin ur errors
Title: Custom commands (restated)
Post by: mooseberry on October 10, 2007, 12:41:22 am
Quote from: "benmachine"
Quote from: "Death On Ice"
You should have said it too, Undeference


I'm in ur post, fixin ur errors


(http://farm3.static.flickr.com/2226/1527350198_5872ba5f21_o.jpg)