For all us console-junkies out there ...
... ever wished you could TAB-complete "yellowarmour" for a "newent yellowarmour" ??? ... now you can! :)
To install simply unpack this into your sauerbraten folder and add
exec cmdcomplete.cfg
to your autoexec.cfg.
The given setup gives you TAB-completion on "newent", "entfind", "connect" and "showgui";
so if you have e.g. a favourite server you often connect to you just need to add a 0-byte file to data/complete for it; say it's address is server.sauer.rok then the file should be called server.sauer.rok.srv, if it's a static IP ... like - for example - 123.123.123.123 then the file would be 123.123.123.123.srv ... you get the picture!?!
Likewise for menus you regularly open - extension "gui" in that case.
If you would like other commands to auto-complete too, then simply add them to the cmdcomplete.cfg using the scheme of those already there - just pick an existing ending (if appropriate) or select a new one for yourself - anything remotely useful for the community will be gladly added to this package (of course with attribution to the contributor) - just drop me a line!
Enjoy!
Glyphosate built his scripting version of what AssaultCube does internally (using XML data files) - he provides us with an online help.
Nice work ... and an excellent example of the usage of cmdcomplete (even if I say so myself)!
So check out Generic Console Help.
To use it simply add these two lines to cmdcomplete.cfg after unpacking his ZIP:
cmdcomplete h hlp
cmdcomplete hs hlp
Then you can call anything from /h alias
to /h while
for your online help pleasure.