Commit Graph
49 Commits
Author SHA1 Message Date
ac-stef 661ee6eff2 distinguish between files and directories
listfiles now optionally sorts the list and removes doubles
2017-06-12 18:17:15 +02:00
ac-stef 2bc8936680 cleanup killmessages
* remove server-side custom killmessages (log files need to be uniform)
* clean up client-side custom killmessages
2017-05-22 20:19:15 +02:00
ac-stef 5e638565f8 cleanup
- un-inline stuff that really doesn't need to be
- unify weapon id checks
- shrink guns
2017-05-02 21:38:58 +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
ac-stef 4a9ae84613 add hashes for map files on server 2016-08-26 14:28:54 +02:00
ac-stef 89f1f69eec readmapsthread
server: load all maps into memory, scan for more maps
in the background
2016-08-26 14:27:51 +02:00
ac-stef 32ffd3a4cd replace non-thread-safe functions
replace all uses of strtok, localtime, gmtime and readdir

on platforms without safe versions, use homebrew or unsafe...
2016-02-28 23:14:47 +01:00
ac-stef 826499c12d enable gcc to check arguments of printf-like functions
Check printf-like functions like conoutf, if format strings and argument
lists match.

This commit also fixes a lot of code parts that actually had mismatching
argument lists - or did things, that this check does not like.

numtime() was rewritten in an ugly but very portable fashion (it's
recommended to stay away from "long long" format entries, because errors
usually only come up at runtime).

(some code was copied from sauer)
2015-08-02 19:40:41 +02:00
aurhat 170f377262 Fix gonext command and do it random
Commit fixes broken "gonext" command, among other things reading time
from maprot, and it does random result of this command.
It also removes get_next() function, because it messes up the maprot,
so shouldn't be used.
2014-11-05 19:19:33 +01:00
ac-stef 16bf7c01cf fix string lengths for server kill messages
this fixes several problems with some global variables, since they no
longer get overwritten by null bytes from this oh so important function...
2014-08-29 19:12:04 +02:00
ac-stef eb60302e67 cleanup
- fix possible crash in conc (but it's still an ugly hack)
- fix noob usage of strcmp
- flag some memory leaks (it would be nice, if the author(s) would clean
   up the mess himself)
- fix crash in substr
- whitespace cleanup

there are plenty more memory leaks in command.cpp - for example, every
goto in cubescript does not clean up anything
2014-05-14 22:54:37 +02:00
Lucas GAUTHERON c626bb6419 oops
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7493 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-28 18:03:49 +00:00
Lucas GAUTHERON 2f55903ad0 messy patch tmp revert
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7491 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-27 17:25:21 +00:00
Lucas GAUTHERON 624dd348d7 make the server store more map data (more accurate pickup calculations)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7487 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-05-26 16:40:57 +00:00
Lucas GAUTHERON f757023ae9 warning fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6654 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-17 07:04:05 +00:00
Lucas GAUTHERON 5a67575974 minor fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6653 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-16 20:51:57 +00:00
aerkefiende 06f73f4627 Replaced Tabs with 4 spaces in every source file
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6561 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-07-31 15:44:57 +00:00
Rafael Barreto 32712318da doing it better... (still testing the exploit, tbh)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6494 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-04 14:14:37 +00:00
Rafael Barreto a8401fd1e3 fixing that obvious map requirements exploit... (no more exploits for the next 6 months...)
@ other devs: check my fix... I expect to not block any good map

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6490 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-03 21:19:44 +00:00
sireus 7b88ae44aa that's a float
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6466 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-27 14:33:03 +00:00
Lucas GAUTHERON 2fffcb6f1a killmessage simplification.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6453 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-21 08:21:48 +00:00
sireus eeec7a668c fixed bug where clients would end up (attempting to) load a different map path than the server, if the map-name contained slashes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6290 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-20 00:11:55 +00:00
sireus 12fbbe5e9f ...and it should be static as well
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6241 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-12 22:35:34 +00:00
sireus bba618a67b needs to be const, or doom ensues
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6240 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-12 22:28:27 +00:00
Lucas GAUTHERON 8fc68ac5ac bug fixes (again)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6219 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-06 14:06:06 +00:00
Lucas GAUTHERON aee1d4f1f2 adding custom kill messages support
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6215 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-06 12:21:18 +00:00
Rafael Barreto 29bea67da1 making the map quality requisites more transparent: 1) "MAP CHECK FAIL" messages in the server logs; 2) console messages to the client (WiP).
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5769 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-10-19 12:28:17 +00:00
flowtron a4133904ec fix sendmap leaving CFG empty if not in COOP
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5698 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-09-26 14:33:32 +00:00
Rafael Barreto 9325b67f1a clean up, some commands from kirin (thank you for the work), some anticheat compatibilities, balance teams saner check, check for map quality in the maprot, and more clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5651 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-17 15:03:41 +00:00
Rafael Barreto 7e1be3ed29 gonext command (the client requests to the server for the next map/mode in the map rotation)
/gonext 0 ---> next map/mode no matter the player number
/gonext 1 ---> the player number matters

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5613 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-13 23:10:47 +00:00
Rafael Barreto 001baa1731 bug fix: disconnect when ignoring or mute, disrupt password connection force attempts; adds: whereami and go_to (useful for edit), logs about items (allowing the clips to be 3 cubes distant), and clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5593 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-10 04:54:16 +00:00
Rafael Barreto accc3e6b91 connectadmin pass, force control, ban time, weak bans, and so on
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5580 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-08-08 22:00:40 +00:00
flowtron 94dc526837 lots of whitespace
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5265 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-07-02 16:49:20 +00:00
Rafael Barreto 2e9c12bf65 findpattern tool and clean up
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5141 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-04 19:50:03 +00:00
Rafael Barreto 2157072cc7 forbidden speech dictionary, deny coop for read only maps, and some suggestions from sam about client/server crashes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5138 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-06-04 00:42:58 +00:00
Lee Salzman 49949046ab serverconfigfile crash fixes and voting fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5127 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-31 21:53:06 +00:00
Lee Salzman 09466ff2ac avoid usage of ntohl/htonl
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5105 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-30 01:12:37 +00:00
flowtron c42b53cbce I_HELMET
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4899 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-17 18:24:17 +00:00
Lee Salzman b2355b9523 buffer deletion fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4808 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-04 20:08:21 +00:00
Lee Salzman a161b18a53 empty configsets check
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4806 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-05-04 20:01:37 +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 e8157fd098 mapbuffer sendmap cleanup
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4766 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-01-13 17:41:56 +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 6e7a51b3db VC warning fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4689 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-11-07 06:35:12 +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 e107a6e6b7 fix compiler warnings
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4565 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-07-03 10:02:59 +00:00
ac_stef e0bfc59ecf reduced client-side maprot to a singleplayer maprot
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4563 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-07-02 23:01:10 +00:00
ac_stef d0a30b2050 map revisions fixed; server source reorg #2
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4560 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-07-02 00:28:54 +00:00
ac_stef 470cae55f1 server source reorg
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4559 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2009-07-01 17:15:52 +00:00