Title: Auto completion in the console? Post by: riwa 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.
Title: Re: Auto completion in the console? Post by: Case 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? Title: Re: Auto completion in the console? Post by: Neon_Knight 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)
Title: Re: Auto completion in the console? Post by: Case 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 insightfulTitle: Re: Auto completion in the console? Post by: sago007 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. Title: Re: Auto completion in the console? Post by: Case on March 29, 2009, 08:47:10 AM Where can I find autocompletion in the cgame stuff?
Title: Re: Auto completion in the console? Post by: sago007 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.Title: Re: Auto completion in the console? Post by: Case on March 29, 2009, 10:25:33 AM After grepping for it, I found all the definitions in cl_keys.c
|