Pages: [1]
  Print  
Author Topic: Auto completion in the console?  (Read 8705 times)
riwa
Half-Nub


Cakes 0
Posts: 53


1337 h4xx0r


« on: March 29, 2009, 07:41:16 AM »

I've read somewhere that oa features autocomplete but I can't get it to work fully. It's the map names when doing /callvote map map that doesn't work (when I do /devmap map it does work.
Logged

Well, I don't care if it's God's own personal anti-son-of-a-bitch machine, or a giant hula hoop, we're not gonna let 'em have it! What we will let 'em have is a belly full of lead, and a pool of their own blood to drown in!
....

....Am I right, Marines?
....Damn right I am!
Case
Member


Cakes -3
Posts: 175



WWW
« Reply #1 on: March 29, 2009, 08:04:28 AM »

right now the autocompletion only works for the commands "/this" will work but switches don't "/this dont".
It would be nice to have autocompletion on switches, map names, and ?player names?
Logged
Neon_Knight
In the year 3000
***

Cakes 49
Posts: 3775


Trickster God.


« Reply #2 on: March 29, 2009, 08:25:08 AM »

Map names have autocompletion, just write "/map oa_" for example, and press tab. This only works AFAIK on the normal client, not on legacy. (I haven't tried the deprecated client)
Logged


"Detailed" is nice, but if it gets in the way of clarity, it ceases being a nice addition and becomes a problem. - TVT
Want to contribute? Read this.
Case
Member


Cakes -3
Posts: 175



WWW
« Reply #3 on: March 29, 2009, 08:41:35 AM »

whoa, I wonder why it doesn't work for callvote too now...
Map names have autocompletion, just write "/map oa_" for example, and press tab. This only works AFAIK on the normal client, not on legacy. (I haven't tried the deprecated client)
+1 insightful
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #4 on: March 29, 2009, 08:42:51 AM »

callvote does not have auto completion. Auto completion used to be hardcoded however there have been improvements to auto completion in later versions, so soon cgame might be able to inject stuff into auto completion.

The auto completion does have some limitations. While "/rcon map" has auto completion it will list your local maps rather than the servers.
Logged

There are nothing offending in my posts.
Case
Member


Cakes -3
Posts: 175



WWW
« Reply #5 on: March 29, 2009, 08:47:10 AM »

Where can I find autocompletion in the cgame stuff?
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #6 on: March 29, 2009, 08:55:09 AM »

Where can I find autocompletion in the cgame stuff?
I don't know if you can yet. When I first looked at the ioquake3 auto complete code it had a comment that it was currently hard coded and that it should be changed in the future. It has later been recoded but I have not checked if it is possible to define new commands in the cgame code. There are no examples in the current cgame code.
Logged

There are nothing offending in my posts.
Case
Member


Cakes -3
Posts: 175



WWW
« Reply #7 on: March 29, 2009, 10:25:33 AM »

After grepping for it, I found all the definitions in cl_keys.c
Logged
Pages: [1]
  Print  
 
Jump to: