blocks.gif
Navigation
 

icon_home.gif Home
icon_community.gif Community
tree-T.gif Forums
tree-T.gif Feeds
tree-T.gif Tutorials
tree-T.gif Surveys
icon_poll.gif Enemy Territory
tree-T.gif Server Rules
icon_members.gif Site
tree-T.gif Statistics
tree-L.gif Sitemap

 

blocks.gif
ET - QW Status
 

 

blocks.gif
ET Jaymod - Status
 

 

blocks.gif
TS Block
 

BBA TeamSpeak Viewer

 

 
Buffalo Bad Ass: Forums
 


  Buffalo Bad Asses :: View topic - Aliases for console commands?
 
Aliases for console commands?

 
Post new topic   Reply to topic    Buffalo Bad Asses Forum Index -> FAQ's & Game Help
View previous topic :: View next topic  
Author Message
JJJunkk
Newbie
Newbie


Joined: Apr 13, 2007
Posts: 2

Status: Offline

PostPosted: Wed Aug 06, 2008 2:40 am    Post subject: Aliases for console commands? Reply with quote

Is it possible to alias console commands so they can be used as a shortcut?

In my config file I'd like to have something like this:

alias bba1 "connect bba1.badassservers.net:27960"

So that when I pull up a console, I can do this:

/bba1

and connect directly to the server.

I tried various ways of doing it, and it doesn't seem to work. Is it possible to create aliases in ET?
Back to top
View user's profile Send private message
NoucFeanor
Official BBA Spammer
Official BBA Spammer


Joined: Oct 11, 2006
Posts: 608
Location: Fort Worth, Texas
Status: Offline

PostPosted: Wed Aug 06, 2008 5:38 am    Post subject: Reply with quote

Not sure about this. But you might be able to do it via exec.cfg

Have something like
connect bba1.badassservers.net:27960

in a cfg. named mmm bba1 then type /connect bba1.cfg

Dunno though, I never tried anything like that.
Back to top
View user's profile Send private message Send e-mail
Geek_Geoff
Clan Member
Clan Member


Joined: Apr 18, 2007
Posts: 137
Location: In front of my computer eating hot chips
Status: Offline

PostPosted: Wed Aug 06, 2008 3:28 pm    Post subject: Reply with quote

You can't do it exactly like that, but you could bind a key to do it for you.

For example, here is what you would do to bind a key for that purpose:

You don't need the "" or the // or the port number.

To do this correctly, all you have to do is write in your config file: bind key connect bba1.badassservers.net

Where key is any key that you want to use that isn't already in use.

For server 2, just replace the 1 with a 2.

So for an actual bind, here is one: bind F8 connect bba1.badassservers.net

See, in your words, a console alias would just be another exec/config file, but you have to always type "/exec filename" every time you want execute the command.

Another thing you can do is create an exec/config file to just have:

connect bba1.badassservers.net (name that bba1)
connect bba2.badassservers.net (name that bba2)

If you do this, you will have to type in the console "/exec bba1" or "/exec bba2"

Both methods will work, but the binding of a key is much easier and less typing. If you use many of your keys already, use the F keys as many of them are free.
_________________
Efforts and courage are not enough without purpose and direction. - J.F.K.
Back to top
View user's profile Send private message Yahoo Messenger
cadaver
BBA Wannabe
BBA Wannabe


Joined: May 19, 2007
Posts: 101
Location: Middle-Earth, New Zealand
Status: Offline

PostPosted: Wed Aug 06, 2008 9:59 pm    Post subject: . Reply with quote

lol that's a good way of doing it wtg

i just open a notepad with /connect BBA1.BadAssServers.net and /connect BBA2.BadAssServers.net - along with a few other notes about ET that i haven't created a bind for - otherwise i forget what i've done a bind for, or else press one when i wasn't meant to i.e 'even teams please' when they're already even and look like an idiot .....

any way is good as long as you join the BBA servers and have fun fragging wtg
Back to top
View user's profile Send private message MSN Messenger
JJJunkk
Newbie
Newbie


Joined: Apr 13, 2007
Posts: 2

Status: Offline

PostPosted: Wed Aug 06, 2008 11:35 pm    Post subject: Reply with quote

Thanks for the pointers. This is what I ended up doing.

In "autoexec.cfg":
Code:

bind F5 "exec myservers.cfg"

in "myservers.cfg":
Code:

set LoadFunctions "exec functions.cfg"

set Server1 "connect bba1.badassservers.net:27960"
set Server2 "connect bba2.badassservers.net:27960"

bind F1 "vstr Server1; vstr LoadFunctions"
bind F2 "vstr Server2; vstr LoadFunctions"

The default function keys are listed in "functions.cfg". eg:
Code:

bind F1 "vote yes"
bind F2 "vote no"
bind F3 "ready"
bind F4 "notready"
bind F11 "autoscreenshot"
bind F12 "autorecord"


Basically F5 loads a bank of new function bindings (in myservers.cfg), each connecting to a different server. After connecting, the original bindings of the function keys are reloaded from functions.cfg. The same setup could be used for any "bank" of bindings you'd want to use.
Back to top
View user's profile Send private message
ferapont
BBA ShouldBe
BBA ShouldBe


Joined: Sep 16, 2009
Posts: 262
Location: Seattle
Status: Offline

PostPosted: Sat Apr 24, 2010 5:06 pm    Post subject: Reply with quote

Quote:
set Server1 "connect bba1.badassservers.net:27960"
set Server2 "connect bba2.badassservers.net:27960"

bind F1 "vstr Server1; vstr LoadFunctions"
bind F2 "vstr Server2; vstr LoadFunctions"


Why not make it a toggle and save yourself a key?
Code:
set Server1 "connect bba1.badassservers.net:27960;set ServerToggle vstr Server2"
set Server2 "connect bba2.badassservers.net:27960;set ServerToggle vstr Server1"
set ServerToggle vstr Server1
bind F1 "vstr ServerToggle"

I think thats how you would do it. You could toggle everything!!!!!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Buffalo Bad Asses Forum Index -> FAQ's & Game Help All times are GMT - 6 Hours
Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group
Version 2.1 by Nuke Cops © 2003 http://www.nukecops.com
Techra-Dark theme pack by Kenetix

 

Forums ©