Commit Graph
57 Commits
Author SHA1 Message Date
ac-stef 57093ed70c rewrite doc command parser
- properly break statements into words
- pick statement where cursor is
- detect unmatched braces + indicator
- fix huge memory leak
- add cs ident details
- add debug view (broken into words)
- menu entries for the settings

  docidentverbose 0|1|2|3

    enables ident details or statement analyser

DOCREF docidentverbose
2017-06-23 12:48:17 +02:00
ac-stef 83d0199867 command cleanup
changed commands:

  strstr haystack needle

    now returns position of needle in haystack (counting from 1)
    or zero, if not found

  substr string start len

    now counts negative length from total length
    "substr text 1 -2" now returns the text without first and last char

  strreplace text search replace

    no longer restricted to 260 char stringlengths

removed commands:

  swapelements, strpos (can be scripted, if required)

DOCREF strstr substr
DOCREF swapelements strpos
2017-06-07 23:20:00 +02:00
ac-stef dbcb040eeb menu code cleanup
* fix some memory leaks
* rename stuff
* fix crash

Removed commands and variables:

  chmenumdl (replaced by menumdl)

  scorefont (replaced by "menufont score mono")

  menuitemvar (better handled with fully dynamic menus)

Changed commands:

  menufont menu font

    Sets the font for a specific menu. If menu is "", the currently
    initialised menu is used. Example: menufont score mono

  menumdl menu mdl anim rotspeed scale

    Assumes the function of the previous chmenumdl. If menu is "", the
    currently initialised menu is used. Specifies, which model to render
    and how. If only menu is specified, no model is rendered.

DOCREF chmenumdl scorefont menufont menumdl menuitemvar
2017-06-06 13:17:20 +02:00
ac-stef c97461a0f5 docs fixes and cleanup
- cleanup scoreboard menu code
- clientlog info messages for debug binaries only
- have debug binaries check for easy docs errors
- docinvalid now also checks for broken references
2017-05-24 20:11:11 +02:00
aurhat 8bc1a0121b Display description of references in menu footer 2017-05-21 21:43:33 +02:00
ac-stef 967fd62077 cleanup 2017-04-26 16:14:39 +02:00
ac-stef 8e08cddaa7 improve cutcolorstring
now takes the width of characters into account

also: fix wraparound for docrefs
2017-04-24 21:48:57 +02:00
ac-stef 066c820231 add menu output for reference searches
changed command:

  docfind <pattern> <silent>

    Searches for pattern in all reference entries. If <silent> is zero or
    omitted, all found references are listed.

    A table of all found entries is returned as result. For each entry,
    the index of the doc entry string that contains the pattern is listed.

new command:

  getdoc <ref> <idx>

    Returns a string of the doc entry specified by <ref>. String index
    numbers match with the result of docfind.

      0   name
      1   description
      2-  remarks

DOCREF docfind getdoc
2017-04-24 19:51:40 +02:00
ac-stef 78380dc45d fix docref
* now restricted to command references
* some parameter checks added

  docref <reference command>
    adds a reference to another command to the current commands
    description

  docrefvisible 0|1
    if set to 0, docrefs are not rendered (default 1)

DOCREF docref docrefvisible
2017-04-24 19:51:40 +02:00
aurhat 0525981799 Limit docskip to doclines offset and reset it when docs disappears 2017-03-20 22:44:18 +01:00
aurhat 72dfcd73fe Cleanup
"showminremain" enabled by default, "fovcompat" removed.

DOCREF showminremain fovcompat
2016-10-14 21:49:53 +02:00
ac-stef a6bffc1858 new command looplisti
same as looplist, but it automatically counts the loops in "i", starting
with 0.

Example:

  a = [u v w] ; b = [x y z]
  looplisti $a m [echo $m (at $b $i) $i]

  u x 0
  v y 1
  w z 2

DOCREF looplisti
2016-09-02 21:58:39 +02:00
Frank LENORMANDandac-stef e268794af7 some fixes 2015-07-18 01:25:18 +02:00
aurhat 9c0f99f2a1 Cleanup
Remarks:
1. Changed order in keycmds lets to keep alphabetical order in saved.cfg .
2. Earlier long information in docs about arguments of command could be
invisible for low aspect ratio (example: "weapon" command), now it's fixed.
2015-07-04 11:30:58 +02:00
ac-stef 32db3e5e88 new options for saved.cfg
Defaults to omitting variables from saved.cfg, that are still at default
value. By setting omitunchangeddefaults to zero, those variables get
written, but commented out. The variable "groupvariables" sets the number
of variables with similar names, that can be grouped on one line. Setting
it to zero will additionally write min, max and default values and a
short description of the variable to file.

In general, variables, that are still at default value, will not be
restored from saved.cfg, so when the default in the game is changed, all
clients will use that new default. This way, testers don't have to erase
their saved.cfg as often.

DOCREF omitunchangeddefaults groupvariables
2015-03-06 14:01:52 +01:00
Lucas GAUTHERON 87c77d4419 forgot to commit this
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7419 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-25 21:18:15 +00:00
aerkefiende 5dfb39545d Improved tab completion made by Felix-The-Ghost
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6923 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-11-07 22:05:19 +00:00
sireus d335f003b9 restored docwriteref functionality
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6910 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 23:18:20 +00:00
sireus b33116712c sane(r) command signatures (warning: huge commit)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6908 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-10-06 22:49:49 +00:00
Lee Salzman e36eee0a60 remember to change argument format when adding new command arguments
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5650 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-17 08:18:06 +00:00
Rafael Barreto a8c21d4775 docs "fixed" (issue with win32), v-man docs.cfg again, item spawn fixed (i think), and avoiding player stucking
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5647 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-17 01:13:12 +00:00
Alejandro V. Garcia eeaf9ee023 fix for firefox nagging about namespace in the autogenerated_base_reference.xml file created by the docwritebaseref command
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5480 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-30 11:31:15 +00:00
Lee Salzman 11f5d981a9 undoing broken change
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4820 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-07 19:36:34 +00:00
flowtron 95f6461492 enhancing internal doc-analysis
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4815 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-07 19:22:51 +00:00
Lee Salzman 0a352e793b removing old vector typedefs
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4788 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-03-11 23:19:42 +00:00
Lee Salzman be94c703f2 setsize -> shrink
setsizenodelete -> setsize
deletecontentsa -> deletearrays
deletecontentsp -> deletecontents
vrealloc -> growbuf



git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4787 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-03-11 23:06:26 +00:00
Lee Salzman 9256ee374b support for loading from zip files
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4717 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-08 00:53:19 +00:00
Lee Salzman e725e5ed8c string function cleanups
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4714 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-07 22:44:32 +00:00
Lee Salzman 54cc44c3db revising pch setup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4690 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-07 06:42:37 +00:00
ac_stef f1e879e7fd akimbo bug fixed; some new bugs added
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4598 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-08-05 21:21:57 +00:00
ac_stef 050772c523 16 minor fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4153 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-02-09 13:40:44 +00:00
driAn 141cf9fb86 doc cleanups
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3691 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-11-20 21:28:58 +00:00
Lee Salzman 4a40d26725 floating-point mouse sensitivity
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3352 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-31 00:50:13 +00:00
driAn a809703ea7 fixed doc export
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3139 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-18 14:41:29 +00:00
Lee Salzman b80bbb88d3 backported text rendering from sauer
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2873 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-10-10 03:00:53 +00:00
Lee Salzman af6c5eb918 improved lan searching
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2643 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-16 05:46:40 +00:00
Lee Salzman cc6173460d hashtable fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2610 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-09-15 03:41:12 +00:00
Lee Salzman 116dda1414 format command
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2198 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-07-23 18:42:32 +00:00
Lee Salzman 856646b4c9 allow GL extension checking from cfgs
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1973 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-05-14 22:15:45 +00:00
Lee Salzman 36af9edb91 min/max fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1569 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2008-01-06 06:51:04 +00:00
Lee Salzman eb8523ea85 path cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1527 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-30 02:55:46 +00:00
Lee Salzman afad80be3e *** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1525 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-30 00:01:46 +00:00
driAn e87a167c93 firstrun script, new menu items, lanconnect fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1512 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-29 16:54:44 +00:00
driAn da4a5ddfe6 spawning in bot modes fixed, damageblend lock fixed, reloading locks weapon switch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1507 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-27 15:14:53 +00:00
Lee Salzman a46fa45901 *** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-26 08:44:59 +00:00
driAn 9c3e74cbdf huge weapon-code cleanup (buggy!), pch, demo fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1475 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-12-24 21:38:53 +00:00
Lee Salzman a13aadb796 *** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1177 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-07-26 01:17:04 +00:00
Lee Salzman 540fa18cb9 *** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@998 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-14 19:29:22 +00:00
driAn fd2ef397a2 demo
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@997 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-14 18:43:59 +00:00
driAn 2dd2224a7a secure maps
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@995 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2007-05-10 19:26:32 +00:00