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