Oh, duh, I only had one ogg file in there, it works now thanks man. Works perfectly now :D<br><br><div><span class="gmail_quote">On 2/17/07, <b class="gmail_sendername">Rainer Klaffenboeck</b> <<a href="mailto:rainer.klaffenboeck@inode.at">
rainer.klaffenboeck@inode.at</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">add to Field_CompleteCommand()<br><br> else if( !Q_stricmp(baseCmd, "ogg" ) &&
<br> completionArgument == 2 )<br> {<br> Field_CompleteFilename( "ogg", "ogg", qtrue );<br> }<br><br>worked fine when i just tried it...listed all .ogg file starting in ogg/
<br><br>Jorge Pena wrote:<br>> Thanks, but that's what I said. I added my command in there just as<br>> the map command is there and the tab completion works, but it only<br>> does just that, complete the filename, I want it to list all the files
<br>> like /map <TAB> does, where it lists all the maps it can find. I think<br>> the function we both found is only for tab completion when you do<br>> something like /map my<TAB> (Completes it to /map mymap).
<br>><br>> Also, do you know where the map command is handled? I've been looking<br>> but can't find anything. Nevermind I just found it, sv_ccmds.c,<br>> SV_Map_f. Doesn't seem like it does what I'm saying though.
<br>><br>> Thanks for the help so far but I think you misunderstood me, that or<br>> you thought what I thought haha (That that function is what I wanted),<br>> if you still don't understand please let me know and I'll try to
<br>> clarify! :)<br>><br>> Thanks again!<br>><br>> On 2/17/07, *Rainer Klaffenboeck* <<a href="mailto:rainer.klaffenboeck@inode.at">rainer.klaffenboeck@inode.at</a><br>> <mailto:<a href="mailto:rainer.klaffenboeck@inode.at">
rainer.klaffenboeck@inode.at</a>>> wrote:<br>><br>> qcommon/common.c/Field_CompleteCommand()<br>><br>> Have fun,<br>> Hobbes<br>><br>> Jorge Pena wrote:<br>> > Hey do any of you guys know where the tab completion for the /map
<br>> > command is handled? I've been searching on and off and haven't found<br>> > anything. Basically I want to take a look at it to incorporate<br>> it into<br>> > another command I want to make. I found Field_CompleteCommand, and I
<br>> > added my command to that and it seems to correctly 'tab<br>> complete' but<br>> > it doesn't do what I want. Basically, I want it to output a list of<br>> > files I have in a directory called /ogg (Or anywhere), like the /map
<br>> > command does when you type /map space <TAB>, it lists all the maps,<br>> > pretty much like that, I've been searching and searching but can't<br>> > find anything, I'd really appreciate any help!
<br>><br>><br>><br>><br><br><br><br></blockquote></div><br>