Commit Graph
321 Commits
Author SHA1 Message Date
aurhat a78eb73ffe Clear mapstartonce alias on quit 2014-12-31 16:43:30 +01:00
ac-stef 2a6b8fb234 track missing models without "nomodel"-crutch
* missing models now have their own list "mdlnotfound".
* also added a few comments (looks silly, though)
2014-11-26 21:23:59 +01:00
ac-stef 6ede08d011 keep the last five versions of saved.cfg and init.cfg
Renames the existing saved.cfg to saved-old-1.cfg (and an existing -1 to
-2, and so on) before the new saved.cfg is written.

This should help in cases where players mess up their config, because the
config is deleted with a five-game-starts delay.
2014-11-02 23:17:00 +01:00
ac-stef 3bbe1f9555 fix mandatory client logfile
The logfile can't be created before the commandline arguments are parsed,
because before that, the home directory is unknown. This patch logs
into a memory buffer which is then copied to the logfile as soon as
the logfile is created after processing the commandline arguments.

The memory buffer is created during the initialisation of global variables,
and destroyed after the logfile is created.
2014-10-06 12:43:32 +02:00
ac-stef fabfb73c83 added mandatory client log file
- a client will now write all os console messages to "clientlog.txt"
- at every game start, the log file gets rotated (with five old logs kept)
- commandline parameter "-N" can be used to limit the number of lines
  (after the lines are logged, the file is closed)
2014-09-22 00:24:09 +02:00
ac-stef 3606a4200c print more version info during init
also fixed parsing the audio device string
2014-07-26 11:19:36 +02:00
aurhatandac-stef 79943778e7 Show list of demos in "Download demo" menu 2014-07-08 19:02:17 +02:00
ac-stef b0649b5ea5 multiple map buffers for map editing: "xmaps"
An xmap holds everything related to map editing at a certain moment: it is
a map editing snapshot. It contains the name, the header, the geometry,
the entities, the extra headers, the undo/redo data and the cameraposition
from the moment, the snapshot was taken.

Xmaps are held in memory and, if persistentxmaps is set to "1", are saved
at game end and restored at game start.

xmap_list
  lists all xmaps currently in memory

xmap_store <nickname>
  create a snapshot and store it under the given nickname
  (nicknames have to qualify as valid filenames)

xmap_restore <nickname>
  restores the named snapshot. Also creates a backup snapshot of the
  current editing data.

xmap_restore
  restores the last automatic backup snapshot. Automatic snapshots are
  taken, a) before a snapshot is restored, b) before a new map is loaded
  (if there were unsaved edits on the map) and c) when the game ends (if
  there were unsaved edits).

xmap_delete <nickname>
  deletes the named snapshot.

Unsaved edits are flagged in the HUD with an "U" in the lower right
corner of the screen.

The files with the persistent xmaps are stored in mapediting/xmaps. After
they were restored at game start, the files are moved to
mapediting/xmaps/backups. Xmap files are cubescript files.
2014-05-15 17:34:25 +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 GAUTHERONandac-stef 4fd4e09f43 Added AC icon to SDL window (fixes #29)
As zeSKB reported, there was no icon for the game window.
This should now be fixed. We might want to make it transparent in the future,
but we would have to make sure it will be supported by any system.
2014-05-14 14:28:54 +02:00
Pascal de BruijnandPascal de Bruijn 7482f259cf main: guard against rnd(0) in rndmapname
starting ac_client from the wrong working directory, where
packages/maps/official/*.cgz globs to an empty list, we
trigger a SIGFPE because of rnd(0):

Program received signal SIGFPE, Arithmetic exception.
0x000000000044d37d in rndmapname () at main.cpp:897
897	        char *map = newstring(maps[rnd(maps.length())]);
2014-03-27 18:20:21 +01:00
Ronald Reagan 1caf38e898 Added command line history. New file 'history' used in the config folder 2014-01-23 12:09:05 -08:00
Lucas GAUTHERON 1f9fae3779 autodownload: find best server after 100 gamestarts
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7544 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-09-21 08:10:41 +00:00
Lucas GAUTHERON a7a1e46bcc merged branch
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7382 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-22 19:49:21 +00:00
Ronald Reagan 2a626b2344 togglegrap to togglegrap, also moved it to a more sane location.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7379 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-03-22 04:32:50 +00:00
Cristian Vlasceanu 3d332a398d Tentative fix for autoscreenshot not showing the score board.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7239 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-20 05:54:55 +00:00
Bukz 7480f036d3 persistidents fixes (plz review/test)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7213 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-02-16 01:43:47 +00:00
aerkefiende 138e1a1acb The random map will be picked from the packages/maps/official dir instead of a list
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7133 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-22 21:39:18 +00:00
aerkefiende 71d427da2f new variable /protocol according to /version
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7120 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-20 14:23:56 +00:00
Lucas GAUTHERON 71f3e3815b save kill messages into saved.cfg instead of a separate file (client)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7030 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2013-01-05 22:28:52 +00:00
Lucas GAUTHERON 54d4d949e4 autoscreenshot fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6998 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-12-27 10:39:48 +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
Bukz 20baa2d298 ac_avenue
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6838 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-06-16 22:17:10 +00:00
sireus bd9a5b801a fixed windows build errors
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6796 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-04-25 17:31:20 +00:00
sireus 34e56ae7d1 use var lang instead of alias LANG, and some cleanup in language detection
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6774 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2012-03-30 12:44:07 +00:00
sireus 77c2dd3944 fixed some issues found by cppcheck
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6740 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-12-19 21:02:57 +00:00
Lucas GAUTHERON 297f679840 scoreboard fixes/improvements, kick/ban action fixes (wip. TODO: get tks client side)
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6639 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-09-04 15:35:15 +00:00
RandumKiwi 55f5407339 more font
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6609 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-08-21 11:32:08 +00:00
Lucas GAUTHERON 6d7da51f4c rewind/setmr bug fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6543 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-24 13:25:19 +00:00
Lucas GAUTHERON 22909543ad min maxfps = 25
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6533 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-13 12:22:38 +00:00
sireus c6c1d224c5 screenshot scaling
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6508 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-06-05 20:39:45 +00:00
Lucas GAUTHERON a886bca798 compatibility.cfg to keep compatibility with older "cubescripts"..
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6461 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-23 19:08:06 +00:00
Lee Salzman c8ae61fe8d GL_UNPACK_ALIGNMENT -> GL_PACK_ALIGNMENT
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6443 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-16 13:08:57 +00:00
Lucas GAUTHERON 414572e574 rewind a demo, set time remaining
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6424 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-14 12:11:51 +00:00
sireus a89b9f2dab pave the way for hi-res textures
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6416 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-05-10 20:03:06 +00:00
Bukz 9aa5981b31 native alias "afterinit" - executed immediately after saved.cfg is loaded
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6371 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-27 14:21:22 +00:00
Lucas GAUTHERON aec37282f8 kill messages cfg editable in game, and separated from server config
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6347 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-25 23:23:02 +00:00
Lee Salzman 222029426c gamma 100 uses default gamma
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6238 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-12 04:54:47 +00:00
Bukz 7fe276fcbf mapnames struct update
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6230 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-09 03:35:06 +00:00
Lucas GAUTHERON 19574271f7 custom kill messages fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6216 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-04-06 12:43:37 +00:00
aerkefiende 9a5a453386 deleting old commented code
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6170 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-03-30 19:08:26 +00:00
Lee Salzman a2eb5b870a parsecommandline cleanups
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6096 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-13 15:46:01 +00:00
Lee Salzman 1cc07e6b96 remove SDL_win32_main.c
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6093 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-12 17:50:14 +00:00
flowtron a83856a1d2 preload scope.png
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6057 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-02-05 09:44:31 +00:00
flowtron 0b63d7d07e new shotgun behaviour
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6012 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-01-17 18:27:53 +00:00
Lee Salzman 32d96b2be4 fix weirdness in random numbers and ray creation
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6005 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2011-01-15 21:20:31 +00:00
flowtron 6dbfd9d63a fix-attempt for samsat (and others?) not getting scoreboard on autoscreenshot - it's probably useless redunancy though.
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5954 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-12-14 19:29:23 +00:00
aerkefiende 75b71ca05b URL protocol: assaultcube://
Now assaultcube://example.org:28763 works as port definition as well.

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5914 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-11-20 15:21:45 +00:00
aerkefiende bd7e1e3574 URL protocol: assaultcube://
Some fixup

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5913 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-11-20 15:01:09 +00:00
flowtron 05ecb19c4f makkE's sane JPEG settings
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5895 e016b1c5-ed68-44aa-a2f7-31cac88cffde
2010-11-19 18:46:43 +00:00